/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * 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 * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIGPYTHON #define SWIGPYTHON #endif #define SWIG_DIRECTORS #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 defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # 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 /* 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 #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) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { 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 { 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"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { 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) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(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 #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) #define Py_hash_t long #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 Py_ssize_t 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) { Py_ssize_t 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 { 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 { Py_ssize_t 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; #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME PyObject * SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)v; if (!sobj->dict) sobj->dict = PyDict_New(); Py_INCREF(sobj->dict); return sobj->dict; } #endif 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; /* PyObject_CallFunction() has the potential to silently drop the active active exception. In cases of unnamed temporary variable or where we just finished iterating over a generator StopIteration will be active right now, and this needs to remain true upon return from SwigPyObject_dealloc. So save and restore. */ PyObject *val = NULL, *type = NULL, *tb = NULL; PyErr_Fetch(&val, &type, &tb); 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)); } if (!res) PyErr_WriteUnraisable(destroy); PyErr_Restore(val, type, tb); 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)) { PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); 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 *)"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_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 >= 0x03050000 /* 3.5 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ #elif 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 = { #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_tag */ #endif #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ #if PY_VERSION_HEX >= 0x02050000 0, /* tp_prev */ #endif 0 /* 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 = { #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_tag */ #endif #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ #if PY_VERSION_HEX >= 0x02050000 0, /* tp_prev */ #endif 0 /* 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 = ((PyTypeObject*) data->newargs)->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; #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; 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 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) /* ----------------------------------------------------------------------------- * director_common.swg * * This file contains support for director classes which is common between * languages. * ----------------------------------------------------------------------------- */ /* Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the 'Swig' namespace. This could be useful for multi-modules projects. */ #ifdef SWIG_DIRECTOR_STATIC /* Force anonymous (static) namespace */ #define Swig #endif /* ----------------------------------------------------------------------------- * director.swg * * This file contains support for director classes so that Python proxy * methods can be called from C++. * ----------------------------------------------------------------------------- */ #ifndef SWIG_DIRECTOR_PYTHON_HEADER_ #define SWIG_DIRECTOR_PYTHON_HEADER_ #include #include #include #include #include /* Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual table', and avoid multiple GetAttr calls to retrieve the python methods. */ #ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifndef SWIG_PYTHON_DIRECTOR_VTABLE #define SWIG_PYTHON_DIRECTOR_VTABLE #endif #endif /* Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the Undefined Exception Handler provided by swig. */ #ifndef SWIG_DIRECTOR_NO_UEH #ifndef SWIG_DIRECTOR_UEH #define SWIG_DIRECTOR_UEH #endif #endif /* Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the native C++ RTTI and dynamic_cast<>. But be aware that directors could stop working when using this option. */ #ifdef SWIG_DIRECTOR_NORTTI /* When we don't use the native C++ RTTI, we implement a minimal one only for Directors. */ # ifndef SWIG_DIRECTOR_RTDIR # define SWIG_DIRECTOR_RTDIR namespace Swig { class Director; SWIGINTERN std::map& get_rtdir_map() { static std::map rtdir_map; return rtdir_map; } SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) { get_rtdir_map()[vptr] = rtdir; } SWIGINTERNINLINE Director *get_rtdir(void *vptr) { std::map::const_iterator pos = get_rtdir_map().find(vptr); Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0; return rtdir; } } # endif /* SWIG_DIRECTOR_RTDIR */ # define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast(ARG)) # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast(ARG1), ARG2) #else # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast(ARG) # define SWIG_DIRECTOR_RGTR(ARG1, ARG2) #endif /* SWIG_DIRECTOR_NORTTI */ extern "C" { struct swig_type_info; } namespace Swig { /* memory handler */ struct GCItem { virtual ~GCItem() {} virtual int get_own() const { return 0; } }; struct GCItem_var { GCItem_var(GCItem *item = 0) : _item(item) { } GCItem_var& operator=(GCItem *item) { GCItem *tmp = _item; _item = item; delete tmp; return *this; } ~GCItem_var() { delete _item; } GCItem * operator->() const { return _item; } private: GCItem *_item; }; struct GCItem_Object : GCItem { GCItem_Object(int own) : _own(own) { } virtual ~GCItem_Object() { } int get_own() const { return _own; } private: int _own; }; template struct GCItem_T : GCItem { GCItem_T(Type *ptr) : _ptr(ptr) { } virtual ~GCItem_T() { delete _ptr; } private: Type *_ptr; }; template struct GCArray_T : GCItem { GCArray_T(Type *ptr) : _ptr(ptr) { } virtual ~GCArray_T() { delete[] _ptr; } private: Type *_ptr; }; /* base class for director exceptions */ class DirectorException : public std::exception { protected: std::string swig_msg; public: DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (msg[0]) { swig_msg += " "; swig_msg += msg; } if (!PyErr_Occurred()) { PyErr_SetString(error, what()); } SWIG_PYTHON_THREAD_END_BLOCK; } virtual ~DirectorException() throw() { } /* Deprecated, use what() instead */ const char *getMessage() const { return what(); } const char *what() const throw() { return swig_msg.c_str(); } static void raise(PyObject *error, const char *msg) { throw DirectorException(error, msg); } static void raise(const char *msg) { raise(PyExc_RuntimeError, msg); } }; /* unknown exception handler */ class UnknownExceptionHandler { #ifdef SWIG_DIRECTOR_UEH static void handler() { try { throw; } catch (DirectorException& e) { std::cerr << "SWIG Director exception caught:" << std::endl << e.what() << std::endl; } catch (std::exception& e) { std::cerr << "std::exception caught: "<< e.what() << std::endl; } catch (...) { std::cerr << "Unknown exception caught." << std::endl; } std::cerr << std::endl << "Python interpreter traceback:" << std::endl; PyErr_Print(); std::cerr << std::endl; std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl << std::endl << "Exception is being re-thrown, program will likely abort/terminate." << std::endl; throw; } public: std::unexpected_handler old; UnknownExceptionHandler(std::unexpected_handler nh = handler) { old = std::set_unexpected(nh); } ~UnknownExceptionHandler() { std::set_unexpected(old); } #endif }; /* type mismatch in the return value from a python method call */ class DirectorTypeMismatchException : public DirectorException { public: DirectorTypeMismatchException(PyObject *error, const char *msg="") : DirectorException(error, "SWIG director type mismatch", msg) { } DirectorTypeMismatchException(const char *msg="") : DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) { } static void raise(PyObject *error, const char *msg) { throw DirectorTypeMismatchException(error, msg); } static void raise(const char *msg) { throw DirectorTypeMismatchException(msg); } }; /* any python exception that occurs during a director method call */ class DirectorMethodException : public DirectorException { public: DirectorMethodException(const char *msg = "") : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) { } static void raise(const char *msg) { throw DirectorMethodException(msg); } }; /* attempt to call a pure virtual method via a director method */ class DirectorPureVirtualException : public DirectorException { public: DirectorPureVirtualException(const char *msg = "") : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) { } static void raise(const char *msg) { throw DirectorPureVirtualException(msg); } }; #if defined(SWIG_PYTHON_THREADS) /* __THREAD__ is the old macro to activate some thread support */ # if !defined(__THREAD__) # define __THREAD__ 1 # endif #endif #ifdef __THREAD__ # include "pythread.h" class Guard { PyThread_type_lock &mutex_; public: Guard(PyThread_type_lock & mutex) : mutex_(mutex) { PyThread_acquire_lock(mutex_, WAIT_LOCK); } ~Guard() { PyThread_release_lock(mutex_); } }; # define SWIG_GUARD(mutex) Guard _guard(mutex) #else # define SWIG_GUARD(mutex) #endif /* director base class */ class Director { private: /* pointer to the wrapped python object */ PyObject *swig_self; /* flag indicating whether the object is owned by python or c++ */ mutable bool swig_disown_flag; /* decrement the reference count of the wrapped python object */ void swig_decref() const { if (swig_disown_flag) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_DECREF(swig_self); SWIG_PYTHON_THREAD_END_BLOCK; } } public: /* wrap a python object. */ Director(PyObject *self) : swig_self(self), swig_disown_flag(false) { } /* discard our reference at destruction */ virtual ~Director() { swig_decref(); } /* return a pointer to the wrapped python object */ PyObject *swig_get_self() const { return swig_self; } /* acquire ownership of the wrapped python object (the sense of "disown" is from python) */ void swig_disown() const { if (!swig_disown_flag) { swig_disown_flag=true; swig_incref(); } } /* increase the reference count of the wrapped python object */ void swig_incref() const { if (swig_disown_flag) { Py_INCREF(swig_self); } } /* methods to implement pseudo protected director members */ virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const { return true; } virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const { } /* ownership management */ private: typedef std::map swig_ownership_map; mutable swig_ownership_map swig_owner; #ifdef __THREAD__ static PyThread_type_lock swig_mutex_own; #endif public: template void swig_acquire_ownership_array(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCArray_T(vptr); } } template void swig_acquire_ownership(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_T(vptr); } } void swig_acquire_ownership_obj(void *vptr, int own) const { if (vptr && own) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_Object(own); } } int swig_release_ownership(void *vptr) const { int own = 0; if (vptr) { SWIG_GUARD(swig_mutex_own); swig_ownership_map::iterator iter = swig_owner.find(vptr); if (iter != swig_owner.end()) { own = iter->second->get_own(); swig_owner.erase(iter); } } return own; } template static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) { SwigPyObject *sobj = (SwigPyObject *)pyobj; sobj->own = 0; Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast(sobj->ptr)); if (d) d->swig_disown(); return PyWeakref_NewProxy(pyobj, NULL); } }; #ifdef __THREAD__ PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock(); #endif } #endif /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_AddProcessToWatchEvent swig_types[0] #define SWIGTYPE_p_Application swig_types[1] #define SWIGTYPE_p_Application_Pointer swig_types[2] #define SWIGTYPE_p_ImageBaseType swig_types[3] #define SWIGTYPE_p_KWIML_INT_int16_t swig_types[4] #define SWIGTYPE_p_KWIML_INT_int32_t swig_types[5] #define SWIGTYPE_p_KWIML_INT_int64_t swig_types[6] #define SWIGTYPE_p_KWIML_INT_int8_t swig_types[7] #define SWIGTYPE_p_KWIML_INT_uint16_t swig_types[8] #define SWIGTYPE_p_KWIML_INT_uint32_t swig_types[9] #define SWIGTYPE_p_KWIML_INT_uint64_t swig_types[10] #define SWIGTYPE_p_KWIML_INT_uint8_t swig_types[11] #define SWIGTYPE_p_KeywordlistMap swig_types[12] #define SWIGTYPE_p_KeywordlistMapSizeType swig_types[13] #define SWIGTYPE_p_Logger swig_types[14] #define SWIGTYPE_p_NumericTraitsT_double_t__RealType swig_types[15] #define SWIGTYPE_p_Parameter swig_types[16] #define SWIGTYPE_p_ProgressReporterManager swig_types[17] #define SWIGTYPE_p_ProgressReporterManager_Pointer swig_types[18] #define SWIGTYPE_p_PythonLogOutput swig_types[19] #define SWIGTYPE_p_PythonLogOutput_Pointer swig_types[20] #define SWIGTYPE_p_RealValueType swig_types[21] #define SWIGTYPE_p_Registry swig_types[22] #define SWIGTYPE_p_allocator_type swig_types[23] #define SWIGTYPE_p_char swig_types[24] #define SWIGTYPE_p_const_reference swig_types[25] #define SWIGTYPE_p_difference_type swig_types[26] #define SWIGTYPE_p_double swig_types[27] #define SWIGTYPE_p_int swig_types[28] #define SWIGTYPE_p_itkAbortCheckEvent swig_types[29] #define SWIGTYPE_p_itkAnyEvent swig_types[30] #define SWIGTYPE_p_itkCommand swig_types[31] #define SWIGTYPE_p_itkCommand_Pointer swig_types[32] #define SWIGTYPE_p_itkDeleteEvent swig_types[33] #define SWIGTYPE_p_itkEndEvent swig_types[34] #define SWIGTYPE_p_itkEndPickEvent swig_types[35] #define SWIGTYPE_p_itkEventObject swig_types[36] #define SWIGTYPE_p_itkExitEvent swig_types[37] #define SWIGTYPE_p_itkIndent swig_types[38] #define SWIGTYPE_p_itkIterationEvent swig_types[39] #define SWIGTYPE_p_itkLightObject swig_types[40] #define SWIGTYPE_p_itkLightObject_Pointer swig_types[41] #define SWIGTYPE_p_itkLogOutput swig_types[42] #define SWIGTYPE_p_itkMetaDataDictionary swig_types[43] #define SWIGTYPE_p_itkMetaDataObjectBase swig_types[44] #define SWIGTYPE_p_itkMetaDataObjectBase_Pointer swig_types[45] #define SWIGTYPE_p_itkModifiedEvent swig_types[46] #define SWIGTYPE_p_itkNoEvent swig_types[47] #define SWIGTYPE_p_itkObject swig_types[48] #define SWIGTYPE_p_itkObjectFactoryBase swig_types[49] #define SWIGTYPE_p_itkObjectFactoryBase_Pointer swig_types[50] #define SWIGTYPE_p_itkObject_Pointer swig_types[51] #define SWIGTYPE_p_itkPickEvent swig_types[52] #define SWIGTYPE_p_itkProcessObject swig_types[53] #define SWIGTYPE_p_itkProcessObject_Pointer swig_types[54] #define SWIGTYPE_p_itkProgressEvent swig_types[55] #define SWIGTYPE_p_itkPyCommand swig_types[56] #define SWIGTYPE_p_itkPyCommand_Pointer swig_types[57] #define SWIGTYPE_p_itkStartEvent swig_types[58] #define SWIGTYPE_p_itkStartPickEvent swig_types[59] #define SWIGTYPE_p_itkUserEvent swig_types[60] #define SWIGTYPE_p_itk__FixedArrayT_double_2_t swig_types[61] #define SWIGTYPE_p_itk__ImageRegionT_2_t swig_types[62] #define SWIGTYPE_p_itk__IndexT_2_t swig_types[63] #define SWIGTYPE_p_itk__PointT_double_2_t swig_types[64] #define SWIGTYPE_p_itk__SizeT_2_t swig_types[65] #define SWIGTYPE_p_itk__VectorT_double_2_t swig_types[66] #define SWIGTYPE_p_key_type swig_types[67] #define SWIGTYPE_p_long swig_types[68] #define SWIGTYPE_p_mapped_type swig_types[69] #define SWIGTYPE_p_otb__ImageKeywordlist swig_types[70] #define SWIGTYPE_p_otb__OTB_GCP swig_types[71] #define SWIGTYPE_p_otb__SwigPrintCallback swig_types[72] #define SWIGTYPE_p_otb__VectorDataKeywordlist swig_types[73] #define SWIGTYPE_p_otb__Wrapper__ComplexImagePixelType swig_types[74] #define SWIGTYPE_p_otb__Wrapper__ImagePixelType swig_types[75] #define SWIGTYPE_p_otb__Wrapper__ParameterGroup swig_types[76] #define SWIGTYPE_p_otb__Wrapper__ParameterType swig_types[77] #define SWIGTYPE_p_otb__Wrapper__Role swig_types[78] #define SWIGTYPE_p_otb__Wrapper__UserLevel swig_types[79] #define SWIGTYPE_p_p_PyObject swig_types[80] #define SWIGTYPE_p_p_double swig_types[81] #define SWIGTYPE_p_p_float swig_types[82] #define SWIGTYPE_p_p_int swig_types[83] #define SWIGTYPE_p_p_short swig_types[84] #define SWIGTYPE_p_p_std__complexT_double_t swig_types[85] #define SWIGTYPE_p_p_std__complexT_float_t swig_types[86] #define SWIGTYPE_p_p_unsigned_char swig_types[87] #define SWIGTYPE_p_p_unsigned_int swig_types[88] #define SWIGTYPE_p_p_unsigned_short swig_types[89] #define SWIGTYPE_p_ptrdiff_t swig_types[90] #define SWIGTYPE_p_reference swig_types[91] #define SWIGTYPE_p_size_t swig_types[92] #define SWIGTYPE_p_size_type swig_types[93] #define SWIGTYPE_p_std__allocatorT_bool_t swig_types[94] #define SWIGTYPE_p_std__allocatorT_double_t swig_types[95] #define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t swig_types[96] #define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[97] #define SWIGTYPE_p_std__complexT_double_t swig_types[98] #define SWIGTYPE_p_std__complexT_float_t swig_types[99] #define SWIGTYPE_p_std__invalid_argument swig_types[100] #define SWIGTYPE_p_std__lessT_std__string_t swig_types[101] #define SWIGTYPE_p_std__listT_bool_t swig_types[102] #define SWIGTYPE_p_std__listT_itkLightObject_Pointer_t swig_types[103] #define SWIGTYPE_p_std__listT_itkObjectFactoryBase_p_t swig_types[104] #define SWIGTYPE_p_std__listT_std__string_t swig_types[105] #define SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t swig_types[106] #define SWIGTYPE_p_std__ostream swig_types[107] #define SWIGTYPE_p_std__type_info swig_types[108] #define SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t swig_types[109] #define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[110] #define SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t swig_types[111] #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[112] #define SWIGTYPE_p_swig__SwigPyIterator swig_types[113] #define SWIGTYPE_p_unsigned_int swig_types[114] #define SWIGTYPE_p_unsigned_long swig_types[115] #define SWIGTYPE_p_value_type swig_types[116] static swig_type_info *swig_types[118]; static swig_module_info swig_module = {swig_types, 117, 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):= _otbApplication.so ------------------------------------------------*/ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_init PyInit__otbApplication #else # define SWIG_init init_otbApplication #endif #define SWIG_name "_otbApplication" #define SWIGVERSION 0x030012 #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) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; SWIG_PYTHON_THREAD_END_BLOCK; return *this; } ~SwigPtr_PyObject() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XDECREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } 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; } }; } #include "itkBase.includes" #include "otbWrapperSWIGIncludes.h" #include // std::string #include #define SWIG_FILE_WITH_INIT #include #include #if PY_VERSION_HEX >= 0x03020000 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj)) #else # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) #endif #include #include #if defined(__GNUC__) # if __GNUC__ == 2 && __GNUC_MINOR <= 96 # define SWIG_STD_NOMODERN_STL # endif #endif #include namespace swig { struct stop_iteration { }; struct SwigPyIterator { private: SwigPtr_PyObject _seq; protected: SwigPyIterator(PyObject *seq) : _seq(seq) { } public: virtual ~SwigPyIterator() {} // Access iterator method, required by Python virtual PyObject *value() const = 0; // Forward iterator method, required by Python virtual SwigPyIterator *incr(size_t n = 1) = 0; // Backward iterator method, very common in C++, but not required in Python virtual SwigPyIterator *decr(size_t /*n*/ = 1) { throw stop_iteration(); } // Random access iterator methods, but not required in Python virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const { throw std::invalid_argument("operation not supported"); } virtual bool equal (const SwigPyIterator &/*x*/) const { throw std::invalid_argument("operation not supported"); } // C++ common/needed methods virtual SwigPyIterator *copy() const = 0; PyObject *next() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads PyObject *obj = value(); incr(); SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads return obj; } /* Make an alias for Python 3.x */ PyObject *__next__() { return next(); } PyObject *previous() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads decr(); PyObject *obj = value(); SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads return obj; } SwigPyIterator *advance(ptrdiff_t n) { return (n > 0) ? incr(n) : decr(-n); } bool operator == (const SwigPyIterator& x) const { return equal(x); } bool operator != (const SwigPyIterator& x) const { return ! operator==(x); } SwigPyIterator& operator += (ptrdiff_t n) { return *advance(n); } SwigPyIterator& operator -= (ptrdiff_t n) { return *advance(-n); } SwigPyIterator* operator + (ptrdiff_t n) const { return copy()->advance(n); } SwigPyIterator* operator - (ptrdiff_t n) const { return copy()->advance(-n); } ptrdiff_t operator - (const SwigPyIterator& x) const { return x.distance(*this); } static swig_type_info* descriptor() { static int init = 0; static swig_type_info* desc = 0; if (!init) { desc = SWIG_TypeQuery("swig::SwigPyIterator *"); init = 1; } return desc; } }; #if defined(SWIGPYTHON_BUILTIN) inline PyObject* make_output_iterator_builtin (PyObject *pyself) { Py_INCREF(pyself); return pyself; } #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; #if PY_VERSION_HEX < 0x03000000 } else if (PyInt_Check(obj)) { if (val) *val = (double) PyInt_AsLong(obj); return SWIG_OK; #endif } 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_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(); return SWIG_OverflowError; } } #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; } #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 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) # define SWIG_LONG_LONG_AVAILABLE #endif #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERN int SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) { int res = SWIG_TypeError; if (PyLong_Check(obj)) { unsigned long long v = PyLong_AsUnsignedLongLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); res = SWIG_OverflowError; } } else { unsigned long v; res = SWIG_AsVal_unsigned_SS_long (obj,&v); if (SWIG_IsOK(res)) { if (val) *val = v; return res; } } #ifdef SWIG_PYTHON_CAST_MODE { const double mant_max = 1LL << DBL_MANT_DIG; double d; res = SWIG_AsVal_double (obj,&d); if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max)) return SWIG_OverflowError; if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { if (val) *val = (unsigned long long)(d); return SWIG_AddCast(res); } res = SWIG_TypeError; } #endif return res; } #endif SWIGINTERNINLINE int SWIG_AsVal_size_t (PyObject * obj, size_t *val) { int res = SWIG_TypeError; #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(size_t) <= sizeof(unsigned long)) { #endif unsigned long v; res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); #ifdef SWIG_LONG_LONG_AVAILABLE } else if (sizeof(size_t) <= sizeof(unsigned long long)) { unsigned long long v; res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); } #endif return res; } #define SWIG_From_long PyInt_FromLong #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERNINLINE PyObject* SWIG_From_long_SS_long (long long value) { return ((value < LONG_MIN) || (value > LONG_MAX)) ? PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value)); } #endif SWIGINTERNINLINE PyObject * SWIG_From_ptrdiff_t (ptrdiff_t value) { #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(ptrdiff_t) <= sizeof(long)) { #endif return SWIG_From_long (static_cast< long >(value)); #ifdef SWIG_LONG_LONG_AVAILABLE } else { /* assume sizeof(ptrdiff_t) <= sizeof(long long) */ return SWIG_From_long_SS_long (static_cast< long long >(value)); } #endif } SWIGINTERNINLINE PyObject* SWIG_From_bool (bool value) { return PyBool_FromLong(value ? 1 : 0); } SWIGINTERN int SWIG_AsVal_long (PyObject *obj, long* val) { #if PY_VERSION_HEX < 0x03000000 if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; } else #endif if (PyLong_Check(obj)) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); return SWIG_OverflowError; } } #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; } #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERN int SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) { int res = SWIG_TypeError; if (PyLong_Check(obj)) { long long v = PyLong_AsLongLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); res = SWIG_OverflowError; } } else { long v; res = SWIG_AsVal_long (obj,&v); if (SWIG_IsOK(res)) { if (val) *val = v; return res; } } #ifdef SWIG_PYTHON_CAST_MODE { const double mant_max = 1LL << DBL_MANT_DIG; const double mant_min = -mant_max; double d; res = SWIG_AsVal_double (obj,&d); if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max)) return SWIG_OverflowError; if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { if (val) *val = (long long)(d); return SWIG_AddCast(res); } res = SWIG_TypeError; } #endif return res; } #endif SWIGINTERNINLINE int SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) { int res = SWIG_TypeError; #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(ptrdiff_t) <= sizeof(long)) { #endif long v; res = SWIG_AsVal_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v); #ifdef SWIG_LONG_LONG_AVAILABLE } else if (sizeof(ptrdiff_t) <= sizeof(long long)) { long long v; res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v); } #endif return res; } #include #include #include #include #include #include namespace swig { template struct noconst_traits { typedef Type noconst_type; }; template struct noconst_traits { typedef Type noconst_type; }; /* type categories */ struct pointer_category { }; struct value_category { }; /* General traits that provides type_name and type_info */ template struct traits { }; template inline const char* type_name() { return traits::noconst_type >::type_name(); } template struct traits_info { static swig_type_info *type_query(std::string name) { name += " *"; return SWIG_TypeQuery(name.c_str()); } static swig_type_info *type_info() { static swig_type_info *info = type_query(type_name()); return info; } }; /* Partial specialization for pointers (traits_info) */ template struct traits_info { static swig_type_info *type_query(std::string name) { name += " *"; return SWIG_TypeQuery(name.c_str()); } static swig_type_info *type_info() { static swig_type_info *info = type_query(type_name()); return info; } }; template inline swig_type_info *type_info() { return traits_info::type_info(); } /* Partial specialization for pointers (traits) */ template struct traits { typedef pointer_category category; static std::string make_ptr_name(const char* name) { std::string ptrname = name; ptrname += " *"; return ptrname; } static const char* type_name() { static std::string name = make_ptr_name(swig::type_name()); return name.c_str(); } }; template struct traits_as { }; template struct traits_check { }; } namespace swig { /* Traits that provides the from method */ template struct traits_from_ptr { static PyObject *from(Type *val, int owner = 0) { return SWIG_InternalNewPointerObj(val, type_info(), owner); } }; template struct traits_from { static PyObject *from(const Type& val) { return traits_from_ptr::from(new Type(val), 1); } }; template struct traits_from { static PyObject *from(Type* val) { return traits_from_ptr::from(val, 0); } }; template struct traits_from { static PyObject *from(const Type* val) { return traits_from_ptr::from(const_cast(val), 0); } }; template inline PyObject *from(const Type& val) { return traits_from::from(val); } template inline PyObject *from_ptr(Type* val, int owner) { return traits_from_ptr::from(val, owner); } /* Traits that provides the asval/as/check method */ template struct traits_asptr { static int asptr(PyObject *obj, Type **val) { Type *p; swig_type_info *descriptor = type_info(); int res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR; if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } }; template inline int asptr(PyObject *obj, Type **vptr) { return traits_asptr::asptr(obj, vptr); } template struct traits_asval { static int asval(PyObject *obj, Type *val) { if (val) { Type *p = 0; int res = traits_asptr::asptr(obj, &p); if (!SWIG_IsOK(res)) return res; if (p) { typedef typename noconst_traits::noconst_type noconst_type; *(const_cast(val)) = *p; if (SWIG_IsNewObj(res)){ delete p; res = SWIG_DelNewMask(res); } return res; } else { return SWIG_ERROR; } } else { return traits_asptr::asptr(obj, (Type **)(0)); } } }; template struct traits_asval { static int asval(PyObject *obj, Type **val) { if (val) { typedef typename noconst_traits::noconst_type noconst_type; noconst_type *p = 0; int res = traits_asptr::asptr(obj, &p); if (SWIG_IsOK(res)) { *(const_cast(val)) = p; } return res; } else { return traits_asptr::asptr(obj, (Type **)(0)); } } }; template inline int asval(PyObject *obj, Type *val) { return traits_asval::asval(obj, val); } template struct traits_as { static Type as(PyObject *obj, bool throw_error) { Type v; int res = asval(obj, &v); if (!obj || !SWIG_IsOK(res)) { if (!PyErr_Occurred()) { ::SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); } return v; } }; template struct traits_as { static Type as(PyObject *obj, bool throw_error) { Type *v = 0; int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); if (SWIG_IsOK(res) && v) { if (SWIG_IsNewObj(res)) { Type r(*v); delete v; return r; } else { return *v; } } else { // Uninitialized return value, no Type() constructor required. static Type *v_def = (Type*) malloc(sizeof(Type)); if (!PyErr_Occurred()) { SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); memset(v_def,0,sizeof(Type)); return *v_def; } } }; template struct traits_as { static Type* as(PyObject *obj, bool throw_error) { Type *v = 0; int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); if (SWIG_IsOK(res)) { return v; } else { if (!PyErr_Occurred()) { SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); return 0; } } }; template inline Type as(PyObject *obj, bool te = false) { return traits_as::category>::as(obj, te); } template struct traits_check { static bool check(PyObject *obj) { int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR; return SWIG_IsOK(res) ? true : false; } }; template struct traits_check { static bool check(PyObject *obj) { int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR; return SWIG_IsOK(res) ? true : false; } }; template inline bool check(PyObject *obj) { return traits_check::category>::check(obj); } } #include namespace std { template <> struct less { bool operator()(PyObject * v, PyObject *w) const { bool res; SWIG_PYTHON_THREAD_BEGIN_BLOCK; res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false; /* This may fall into a case of inconsistent eg. ObjA > ObjX > ObjB but ObjA < ObjB */ if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) ) { /* Objects can't be compared, this mostly occurred in Python 3.0 */ /* Compare their ptr directly for a workaround */ res = (v < w); PyErr_Clear(); } SWIG_PYTHON_THREAD_END_BLOCK; return res; } }; template <> struct less { bool operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const { return std::less()(v, w); } }; template <> struct less { bool operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const { return std::less()(v, w); } }; } namespace swig { template <> struct traits { typedef value_category category; static const char* type_name() { return "PyObject *"; } }; template <> struct traits_asval { typedef PyObject * value_type; static int asval(PyObject *obj, value_type *val) { if (val) *val = obj; return SWIG_OK; } }; template <> struct traits_check { static bool check(PyObject *) { return true; } }; template <> struct traits_from { typedef PyObject * value_type; static PyObject *from(const value_type& val) { Py_XINCREF(val); return val; } }; } namespace swig { template inline size_t check_index(Difference i, size_t size, bool insert = false) { if ( i < 0 ) { if ((size_t) (-i) <= size) return (size_t) (i + size); } else if ( (size_t) i < size ) { return (size_t) i; } else if (insert && ((size_t) i == size)) { return size; } throw std::out_of_range("index out of range"); } template void slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) { if (step == 0) { throw std::invalid_argument("slice step cannot be zero"); } else if (step > 0) { // Required range: 0 <= i < size, 0 <= j < size, i <= j if (i < 0) { ii = 0; } else if (i < (Difference)size) { ii = i; } else if (insert && (i >= (Difference)size)) { ii = (Difference)size; } if (j < 0) { jj = 0; } else { jj = (j < (Difference)size) ? j : (Difference)size; } if (jj < ii) jj = ii; } else { // Required range: -1 <= i < size-1, -1 <= j < size-1, i >= j if (i < -1) { ii = -1; } else if (i < (Difference) size) { ii = i; } else if (i >= (Difference)(size-1)) { ii = (Difference)(size-1); } if (j < -1) { jj = -1; } else { jj = (j < (Difference)size ) ? j : (Difference)(size-1); } if (ii < jj) ii = jj; } } template inline typename Sequence::iterator getpos(Sequence* self, Difference i) { typename Sequence::iterator pos = self->begin(); std::advance(pos, check_index(i,self->size())); return pos; } template inline typename Sequence::const_iterator cgetpos(const Sequence* self, Difference i) { typename Sequence::const_iterator pos = self->begin(); std::advance(pos, check_index(i,self->size())); return pos; } template inline void erase(Sequence* seq, const typename Sequence::iterator& position) { seq->erase(position); } template struct traits_reserve { static void reserve(Sequence & /*seq*/, typename Sequence::size_type /*n*/) { // This should be specialized for types that support reserve } }; template inline Sequence* getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj); if (step > 0) { typename Sequence::const_iterator sb = self->begin(); typename Sequence::const_iterator se = self->begin(); std::advance(sb,ii); std::advance(se,jj); if (step == 1) { return new Sequence(sb, se); } else { Sequence *sequence = new Sequence(); swig::traits_reserve::reserve(*sequence, (jj - ii + step - 1) / step); typename Sequence::const_iterator it = sb; while (it!=se) { sequence->push_back(*it); for (Py_ssize_t c=0; c::reserve(*sequence, (ii - jj - step - 1) / -step); typename Sequence::const_reverse_iterator sb = self->rbegin(); typename Sequence::const_reverse_iterator se = self->rbegin(); std::advance(sb,size-ii-1); std::advance(se,size-jj-1); typename Sequence::const_reverse_iterator it = sb; while (it!=se) { sequence->push_back(*it); for (Py_ssize_t c=0; c<-step && it!=se; ++c) it++; } return sequence; } } template inline void setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj, true); if (step > 0) { if (step == 1) { size_t ssize = jj - ii; if (ssize <= is.size()) { // expanding/staying the same size swig::traits_reserve::reserve(*self, self->size() - ssize + is.size()); typename Sequence::iterator sb = self->begin(); typename InputSeq::const_iterator isit = is.begin(); std::advance(sb,ii); std::advance(isit, jj - ii); self->insert(std::copy(is.begin(), isit, sb), isit, is.end()); } else { // shrinking typename Sequence::iterator sb = self->begin(); typename Sequence::iterator se = self->begin(); std::advance(sb,ii); std::advance(se,jj); self->erase(sb,se); sb = self->begin(); std::advance(sb,ii); self->insert(sb, is.begin(), is.end()); } } else { size_t replacecount = (jj - ii + step - 1) / step; if (is.size() != replacecount) { char msg[1024]; sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); throw std::invalid_argument(msg); } typename Sequence::const_iterator isit = is.begin(); typename Sequence::iterator it = self->begin(); std::advance(it,ii); for (size_t rc=0; rcend(); ++c) it++; } } } else { size_t replacecount = (ii - jj - step - 1) / -step; if (is.size() != replacecount) { char msg[1024]; sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); throw std::invalid_argument(msg); } typename Sequence::const_iterator isit = is.begin(); typename Sequence::reverse_iterator it = self->rbegin(); std::advance(it,size-ii-1); for (size_t rc=0; rcrend(); ++c) it++; } } } template inline void delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj, true); if (step > 0) { typename Sequence::iterator sb = self->begin(); std::advance(sb,ii); if (step == 1) { typename Sequence::iterator se = self->begin(); std::advance(se,jj); self->erase(sb,se); } else { typename Sequence::iterator it = sb; size_t delcount = (jj - ii + step - 1) / step; while (delcount) { it = self->erase(it); for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c) it++; delcount--; } } } else { typename Sequence::reverse_iterator sb = self->rbegin(); std::advance(sb,size-ii-1); typename Sequence::reverse_iterator it = sb; size_t delcount = (ii - jj - step - 1) / -step; while (delcount) { it = typename Sequence::reverse_iterator(self->erase((++it).base())); for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c) it++; delcount--; } } } } #if defined(__SUNPRO_CC) && defined(_RWSTD_VER) # if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL) # define SWIG_STD_NOITERATOR_TRAITS_STL # endif #endif #if !defined(SWIG_STD_NOITERATOR_TRAITS_STL) #include #else namespace std { template struct iterator_traits { typedef ptrdiff_t difference_type; typedef typename Iterator::value_type value_type; }; template struct iterator_traits<__reverse_bi_iterator > { typedef Distance difference_type; typedef T value_type; }; template struct iterator_traits { typedef T value_type; typedef ptrdiff_t difference_type; }; template inline typename iterator_traits<_InputIterator>::difference_type distance(_InputIterator __first, _InputIterator __last) { typename iterator_traits<_InputIterator>::difference_type __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } } #endif namespace swig { template class SwigPyIterator_T : public SwigPyIterator { public: typedef OutIterator out_iterator; typedef typename std::iterator_traits::value_type value_type; typedef SwigPyIterator_T self_type; SwigPyIterator_T(out_iterator curr, PyObject *seq) : SwigPyIterator(seq), current(curr) { } const out_iterator& get_current() const { return current; } bool equal (const SwigPyIterator &iter) const { const self_type *iters = dynamic_cast(&iter); if (iters) { return (current == iters->get_current()); } else { throw std::invalid_argument("bad iterator type"); } } ptrdiff_t distance(const SwigPyIterator &iter) const { const self_type *iters = dynamic_cast(&iter); if (iters) { return std::distance(current, iters->get_current()); } else { throw std::invalid_argument("bad iterator type"); } } protected: out_iterator current; }; template struct from_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v); } }; template::value_type, typename FromOper = from_oper > class SwigPyIteratorOpen_T : public SwigPyIterator_T { public: FromOper from; typedef OutIterator out_iterator; typedef ValueType value_type; typedef SwigPyIterator_T base; typedef SwigPyIteratorOpen_T self_type; SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq) : SwigPyIterator_T(curr, seq) { } PyObject *value() const { return from(static_cast(*(base::current))); } SwigPyIterator *copy() const { return new self_type(*this); } SwigPyIterator *incr(size_t n = 1) { while (n--) { ++base::current; } return this; } SwigPyIterator *decr(size_t n = 1) { while (n--) { --base::current; } return this; } }; template::value_type, typename FromOper = from_oper > class SwigPyIteratorClosed_T : public SwigPyIterator_T { public: FromOper from; typedef OutIterator out_iterator; typedef ValueType value_type; typedef SwigPyIterator_T base; typedef SwigPyIteratorClosed_T self_type; SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq) : SwigPyIterator_T(curr, seq), begin(first), end(last) { } PyObject *value() const { if (base::current == end) { throw stop_iteration(); } else { return from(static_cast(*(base::current))); } } SwigPyIterator *copy() const { return new self_type(*this); } SwigPyIterator *incr(size_t n = 1) { while (n--) { if (base::current == end) { throw stop_iteration(); } else { ++base::current; } } return this; } SwigPyIterator *decr(size_t n = 1) { while (n--) { if (base::current == begin) { throw stop_iteration(); } else { --base::current; } } return this; } private: out_iterator begin; out_iterator end; }; template inline SwigPyIterator* make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0) { return new SwigPyIteratorClosed_T(current, begin, end, seq); } template inline SwigPyIterator* make_output_iterator(const OutIter& current, PyObject *seq = 0) { return new SwigPyIteratorOpen_T(current, seq); } } namespace swig { template struct SwigPySequence_Ref { SwigPySequence_Ref(PyObject* seq, Py_ssize_t index) : _seq(seq), _index(index) { } operator T () const { swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index); try { return swig::as(item, true); } catch (std::exception& e) { char msg[1024]; sprintf(msg, "in sequence element %d ", (int)_index); if (!PyErr_Occurred()) { ::SWIG_Error(SWIG_TypeError, swig::type_name()); } SWIG_Python_AddErrorMsg(msg); SWIG_Python_AddErrorMsg(e.what()); throw; } } SwigPySequence_Ref& operator=(const T& v) { PySequence_SetItem(_seq, _index, swig::from(v)); return *this; } private: PyObject* _seq; Py_ssize_t _index; }; template struct SwigPySequence_ArrowProxy { SwigPySequence_ArrowProxy(const T& x): m_value(x) {} const T* operator->() const { return &m_value; } operator const T*() const { return &m_value; } T m_value; }; template struct SwigPySequence_InputIterator { typedef SwigPySequence_InputIterator self; typedef std::random_access_iterator_tag iterator_category; typedef Reference reference; typedef T value_type; typedef T* pointer; typedef Py_ssize_t difference_type; SwigPySequence_InputIterator() { } SwigPySequence_InputIterator(PyObject* seq, Py_ssize_t index) : _seq(seq), _index(index) { } reference operator*() const { return reference(_seq, _index); } SwigPySequence_ArrowProxy operator->() const { return SwigPySequence_ArrowProxy(operator*()); } bool operator==(const self& ri) const { return (_index == ri._index) && (_seq == ri._seq); } bool operator!=(const self& ri) const { return !(operator==(ri)); } self& operator ++ () { ++_index; return *this; } self& operator -- () { --_index; return *this; } self& operator += (difference_type n) { _index += n; return *this; } self operator +(difference_type n) const { return self(_seq, _index + n); } self& operator -= (difference_type n) { _index -= n; return *this; } self operator -(difference_type n) const { return self(_seq, _index - n); } difference_type operator - (const self& ri) const { return _index - ri._index; } bool operator < (const self& ri) const { return _index < ri._index; } reference operator[](difference_type n) const { return reference(_seq, _index + n); } private: PyObject* _seq; difference_type _index; }; // STL container wrapper around a Python sequence template struct SwigPySequence_Cont { typedef SwigPySequence_Ref reference; typedef const SwigPySequence_Ref const_reference; typedef T value_type; typedef T* pointer; typedef Py_ssize_t difference_type; typedef size_t size_type; typedef const pointer const_pointer; typedef SwigPySequence_InputIterator iterator; typedef SwigPySequence_InputIterator const_iterator; SwigPySequence_Cont(PyObject* seq) : _seq(0) { if (!PySequence_Check(seq)) { throw std::invalid_argument("a sequence is expected"); } _seq = seq; Py_INCREF(_seq); } ~SwigPySequence_Cont() { Py_XDECREF(_seq); } size_type size() const { return static_cast(PySequence_Size(_seq)); } bool empty() const { return size() == 0; } iterator begin() { return iterator(_seq, 0); } const_iterator begin() const { return const_iterator(_seq, 0); } iterator end() { return iterator(_seq, size()); } const_iterator end() const { return const_iterator(_seq, size()); } reference operator[](difference_type n) { return reference(_seq, n); } const_reference operator[](difference_type n) const { return const_reference(_seq, n); } bool check(bool set_err = true) const { Py_ssize_t s = size(); for (Py_ssize_t i = 0; i < s; ++i) { swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i); if (!swig::check(item)) { if (set_err) { char msg[1024]; sprintf(msg, "in sequence element %d", (int)i); SWIG_Error(SWIG_RuntimeError, msg); } return false; } } return true; } private: PyObject* _seq; }; } 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; } SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) if (PyBytes_Check(obj)) #else if (PyUnicode_Check(obj)) #endif #else if (PyString_Check(obj)) #endif { char *cstr; Py_ssize_t len; #if PY_VERSION_HEX>=0x03000000 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 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); if(alloc) *alloc = SWIG_NEWOBJ; #endif PyBytes_AsStringAndSize(obj, &cstr, &len); #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 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) *cptr = PyBytes_AsString(obj); #else assert(0); /* Should never reach here with Unicode strings in Python 3 */ #endif #else *cptr = SWIG_Python_str_AsChar(obj); #endif } } if (psize) *psize = len + 1; #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) Py_XDECREF(obj); #endif return SWIG_OK; } else { #if defined(SWIG_PYTHON_2_UNICODE) #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" #endif #if PY_VERSION_HEX<0x03000000 if (PyUnicode_Check(obj)) { char *cstr; Py_ssize_t len; if (!alloc && cptr) { return SWIG_RuntimeError; } obj = PyUnicode_AsUTF8String(obj); if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { if (cptr) { if (alloc) *alloc = SWIG_NEWOBJ; *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1))); } if (psize) *psize = len + 1; Py_XDECREF(obj); return SWIG_OK; } else { Py_XDECREF(obj); } } #endif #endif 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_AsPtr_std_string (PyObject * obj, std::string **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new std::string(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("std::string" " *"); init = 1; } if (descriptor) { std::string *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } SWIGINTERN int SWIG_AsVal_std_string (PyObject * obj, std::string *val) { std::string* v = (std::string *) 0; int res = SWIG_AsPtr_std_string (obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { delete v; res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } 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 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); #else #if PY_VERSION_HEX >= 0x03010000 return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape"); #else return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); #endif #endif #else return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); #endif } } else { return SWIG_Py_Void(); } } SWIGINTERNINLINE PyObject * SWIG_From_std_string (const std::string& s) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } namespace swig { template <> struct traits< std::string > { typedef value_category category; static const char* type_name() { return"std::string"; } }; template <> struct traits_asval< std::string > { typedef std::string value_type; static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_std_string (obj, val); } }; template <> struct traits_from< std::string > { typedef std::string value_type; static PyObject *from(const value_type& val) { return SWIG_From_std_string (val); } }; } namespace swig { template inline void assign(const SwigPySeq& swigpyseq, Seq* seq) { // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented typedef typename SwigPySeq::value_type value_type; typename SwigPySeq::const_iterator it = swigpyseq.begin(); for (;it != swigpyseq.end(); ++it) { seq->insert(seq->end(),(value_type)(*it)); } } template struct traits_asptr_stdseq { typedef Seq sequence; typedef T value_type; static int asptr(PyObject *obj, sequence **seq) { if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) { sequence *p; swig_type_info *descriptor = swig::type_info(); if (descriptor && SWIG_IsOK(::SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0))) { if (seq) *seq = p; return SWIG_OLDOBJ; } } else if (PySequence_Check(obj)) { try { SwigPySequence_Cont swigpyseq(obj); if (seq) { sequence *pseq = new sequence(); assign(swigpyseq, pseq); *seq = pseq; return SWIG_NEWOBJ; } else { return swigpyseq.check() ? SWIG_OK : SWIG_ERROR; } } catch (std::exception& e) { if (seq) { if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, e.what()); } } return SWIG_ERROR; } } return SWIG_ERROR; } }; template struct traits_from_stdseq { typedef Seq sequence; typedef T value_type; typedef typename Seq::size_type size_type; typedef typename sequence::const_iterator const_iterator; static PyObject *from(const sequence& seq) { #ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS swig_type_info *desc = swig::type_info(); if (desc && desc->clientdata) { return SWIG_InternalNewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN); } #endif size_type size = seq.size(); if (size <= (size_type)INT_MAX) { PyObject *obj = PyTuple_New((Py_ssize_t)size); Py_ssize_t i = 0; for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) { PyTuple_SetItem(obj,i,swig::from(*it)); } return obj; } else { PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python"); return NULL; } } }; } namespace swig { template struct traits_reserve > { static void reserve(std::vector &seq, typename std::vector::size_type n) { seq.reserve(n); } }; template struct traits_asptr > { static int asptr(PyObject *obj, std::vector **vec) { return traits_asptr_stdseq >::asptr(obj, vec); } }; template struct traits_from > { static PyObject *from(const std::vector& vec) { return traits_from_stdseq >::from(vec); } }; } namespace swig { template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "std::string" "," "std::allocator< std::string >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_string_Sg__iterator(std::vector< std::string > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector< std::string > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_std_string_Sg____bool__(std::vector< std::string > const *self){ return !(self->empty()); } SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){ return self->size(); } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_long (unsigned long value) { return (value > LONG_MAX) ? PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); } #ifdef SWIG_LONG_LONG_AVAILABLE SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) { return (value > LONG_MAX) ? PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value)); } #endif SWIGINTERNINLINE PyObject * SWIG_From_size_t (size_t value) { #ifdef SWIG_LONG_LONG_AVAILABLE if (sizeof(size_t) <= sizeof(unsigned long)) { #endif return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); #ifdef SWIG_LONG_LONG_AVAILABLE } else { /* assume sizeof(size_t) <= sizeof(unsigned long long) */ return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value)); } #endif } SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ swig::setslice(self, i, j, 1, std::vector< std::string,std::allocator< std::string > >()); } SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i){ swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< std::string,std::allocator< std::string > >::difference_type id = i; std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice,std::vector< std::string,std::allocator< std::string > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< std::string,std::allocator< std::string > >::difference_type id = i; std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< std::string,std::allocator< std::string > >::difference_type id = i; std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< std::string,std::allocator< std::string > >::difference_type id = i; std::vector< std::string,std::allocator< std::string > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector< std::string,std::allocator< std::string > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector< std::string > *self,std::vector< std::string >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator first,std::vector< std::string >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::size_type n,std::vector< std::string >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template struct traits_asptr > { typedef std::pair value_type; static int get_pair(PyObject* first, PyObject* second, std::pair **val) { if (val) { value_type *vp = (new std::pair()); T *pfirst = &(vp->first); int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) { delete vp; return res1; } U *psecond = &(vp->second); int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) { delete vp; return res2; } *val = vp; return SWIG_AddNewMask(res1 > res2 ? res1 : res2); } else { T *pfirst = 0; int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = 0; int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; return res1 > res2 ? res1 : res2; } } static int asptr(PyObject *obj, std::pair **val) { int res = SWIG_ERROR; if (PyTuple_Check(obj)) { if (PyTuple_GET_SIZE(obj) == 2) { res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val); } } else if (PySequence_Check(obj)) { if (PySequence_Size(obj) == 2) { swig::SwigVar_PyObject first = PySequence_GetItem(obj,0); swig::SwigVar_PyObject second = PySequence_GetItem(obj,1); res = get_pair(first, second, val); } } else { value_type *p; swig_type_info *descriptor = swig::type_info(); res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR; if (SWIG_IsOK(res) && val) *val = p; } return res; } }; template struct traits_from > { static PyObject *from(const std::pair& val) { PyObject* obj = PyTuple_New(2); PyTuple_SetItem(obj,0,swig::from(val.first)); PyTuple_SetItem(obj,1,swig::from(val.second)); return obj; } }; } namespace swig { template <> struct traits > { typedef pointer_category category; static const char* type_name() { return "std::pair<" "std::string" "," "std::string" " >"; } }; } namespace swig { template struct from_key_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v.first); } }; template struct from_value_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v.second); } }; template struct SwigPyMapIterator_T : SwigPyIteratorClosed_T { SwigPyMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyIteratorClosed_T(curr, first, last, seq) { } }; template > struct SwigPyMapKeyIterator_T : SwigPyMapIterator_T { SwigPyMapKeyIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyMapIterator_T(curr, first, last, seq) { } }; template inline SwigPyIterator* make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0) { return new SwigPyMapKeyIterator_T(current, begin, end, seq); } template > struct SwigPyMapValueITerator_T : SwigPyMapIterator_T { SwigPyMapValueITerator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyMapIterator_T(curr, first, last, seq) { } }; template inline SwigPyIterator* make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0) { return new SwigPyMapValueITerator_T(current, begin, end, seq); } } namespace swig { template inline void assign(const SwigPySeq& swigpyseq, std::map *map) { typedef typename std::map::value_type value_type; typename SwigPySeq::const_iterator it = swigpyseq.begin(); for (;it != swigpyseq.end(); ++it) { map->insert(value_type(it->first, it->second)); } } template struct traits_asptr > { typedef std::map map_type; static int asptr(PyObject *obj, map_type **val) { int res = SWIG_ERROR; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (PyDict_Check(obj)) { SwigVar_PyObject items = PyObject_CallMethod(obj,(char *)"items",NULL); #if PY_VERSION_HEX >= 0x03000000 /* In Python 3.x the ".items()" method returns a dict_items object */ items = PySequence_Fast(items, ".items() didn't return a sequence!"); #endif res = traits_asptr_stdseq >::asptr(items, val); } else { map_type *p; swig_type_info *descriptor = swig::type_info(); res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR; if (SWIG_IsOK(res) && val) *val = p; } SWIG_PYTHON_THREAD_END_BLOCK; return res; } }; template struct traits_from > { typedef std::map map_type; typedef typename map_type::const_iterator const_iterator; typedef typename map_type::size_type size_type; static PyObject *asdict(const map_type& map) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; size_type size = map.size(); Py_ssize_t pysize = (size <= (size_type) INT_MAX) ? (Py_ssize_t) size : -1; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject *obj = PyDict_New(); for (const_iterator i= map.begin(); i!= map.end(); ++i) { swig::SwigVar_PyObject key = swig::from(i->first); swig::SwigVar_PyObject val = swig::from(i->second); PyDict_SetItem(obj, key, val); } SWIG_PYTHON_THREAD_END_BLOCK; return obj; } static PyObject *from(const map_type& map) { swig_type_info *desc = swig::type_info(); if (desc && desc->clientdata) { return SWIG_InternalNewPointerObj(new map_type(map), desc, SWIG_POINTER_OWN); } else { return asdict(map); } } }; } namespace swig { template <> struct traits, std::allocator< std::pair< std::string const,std::string > > > > { typedef pointer_category category; static const char* type_name() { return "std::map<" "std::string" "," "std::string" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::string > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____nonzero__(std::map< std::string,std::string > const *self){ return !(self->empty()); } SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____bool__(std::map< std::string,std::string > const *self){ return !(self->empty()); } SWIGINTERN std::map< std::string,std::string >::size_type std_map_Sl_std_string_Sc_std_string_Sg____len__(std::map< std::string,std::string > const *self){ return self->size(); } SWIGINTERN std::map< std::string,std::string >::mapped_type const &std_map_Sl_std_string_Sc_std_string_Sg____getitem__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->find(key); if (i != self->end()) return i->second; else throw std::out_of_range("key not found"); } SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____delitem__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::iterator i = self->find(key); if (i != self->end()) self->erase(i); else throw std::out_of_range("key not found"); } SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg__has_key(std::map< std::string,std::string > const *self,std::map< std::string,std::string >::key_type const &key){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->find(key); return i != self->end(); } SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__keys(std::map< std::string,std::string > *self){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size(); Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type) INT_MAX) ? (Py_ssize_t) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* keyList = PyList_New(pysize); std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin(); for (Py_ssize_t j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(keyList, j, swig::from(i->first)); } SWIG_PYTHON_THREAD_END_BLOCK; return keyList; } SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__values(std::map< std::string,std::string > *self){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size(); Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type) INT_MAX) ? (Py_ssize_t) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* valList = PyList_New(pysize); std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin(); for (Py_ssize_t j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(valList, j, swig::from(i->second)); } SWIG_PYTHON_THREAD_END_BLOCK; return valList; } SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__items(std::map< std::string,std::string > *self){ std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size(); Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type) INT_MAX) ? (Py_ssize_t) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* itemList = PyList_New(pysize); std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin(); for (Py_ssize_t j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(itemList, j, swig::from(*i)); } SWIG_PYTHON_THREAD_END_BLOCK; return itemList; } SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____contains__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){ return self->find(key) != self->end(); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__key_iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__value_iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_0(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){ self->erase(key); } SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_1(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key,std::map< std::string,std::string >::mapped_type const &x){ (*self)[key] = x; } SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__asdict(std::map< std::string,std::string > *self){ return swig::traits_from< std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > >::asdict(*self); } SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_1(std::map< std::string,std::string > *self,std::map< std::string,std::string >::iterator position){ self->erase(position); } SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_2(std::map< std::string,std::string > *self,std::map< std::string,std::string >::iterator first,std::map< std::string,std::string >::iterator last){ self->erase(first, last); } SWIGINTERN int SWIG_AsVal_bool (PyObject *obj, bool *val) { int r; if (!PyBool_Check(obj)) return SWIG_ERROR; r = PyObject_IsTrue(obj); if (r == -1) return SWIG_ERROR; if (val) *val = r ? true : false; return SWIG_OK; } namespace swig { template <> struct traits< bool > { typedef value_category category; static const char* type_name() { return"bool"; } }; template <> struct traits_asval< bool > { typedef bool value_type; static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_bool (obj, val); } }; template <> struct traits_from< bool > { typedef bool value_type; static PyObject *from(const value_type& val) { return SWIG_From_bool (val); } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_bool_Sg__iterator(std::vector< bool > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_bool_Sg____nonzero__(std::vector< bool > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_bool_Sg____bool__(std::vector< bool > const *self){ return !(self->empty()); } SWIGINTERN std::vector< bool >::size_type std_vector_Sl_bool_Sg____len__(std::vector< bool > const *self){ return self->size(); } SWIGINTERN std::vector< bool,std::allocator< bool > > *std_vector_Sl_bool_Sg____getslice__(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_bool_Sg____setslice____SWIG_0(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){ swig::setslice(self, i, j, 1, std::vector >()); } SWIGINTERN void std_vector_Sl_bool_Sg____setslice____SWIG_1(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j,std::vector< bool,std::allocator< bool > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_bool_Sg____delslice__(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_bool_Sg____delitem____SWIG_0(std::vector< bool > *self,std::vector< bool >::difference_type i){ swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< bool,std::allocator< bool > > *std_vector_Sl_bool_Sg____getitem____SWIG_0(std::vector< bool > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_0(std::vector< bool > *self,PySliceObject *slice,std::vector< bool,std::allocator< bool > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_1(std::vector< bool > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_bool_Sg____delitem____SWIG_1(std::vector< bool > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< bool >::value_type std_vector_Sl_bool_Sg____getitem____SWIG_1(std::vector< bool > *self,std::vector< bool >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_2(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN std::vector< bool >::value_type std_vector_Sl_bool_Sg__pop(std::vector< bool > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN void std_vector_Sl_bool_Sg__append(std::vector< bool > *self,std::vector< bool >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__erase__SWIG_0(std::vector< bool > *self,std::vector< bool >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__erase__SWIG_1(std::vector< bool > *self,std::vector< bool >::iterator first,std::vector< bool >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__insert__SWIG_0(std::vector< bool > *self,std::vector< bool >::iterator pos,std::vector< bool >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_bool_Sg__insert__SWIG_1(std::vector< bool > *self,std::vector< bool >::iterator pos,std::vector< bool >::size_type n,std::vector< bool >::value_type x){ self->insert(pos, n, x); } #define SWIG_From_double PyFloat_FromDouble namespace swig { template <> struct traits< double > { typedef value_category category; static const char* type_name() { return"double"; } }; template <> struct traits_asval< double > { typedef double value_type; static int asval(PyObject *obj, value_type *val) { return SWIG_AsVal_double (obj, val); } }; template <> struct traits_from< double > { typedef double value_type; static PyObject *from(const value_type& val) { return SWIG_From_double (val); } }; } namespace swig { template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "double" "," "std::allocator< double >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_double_Sg__iterator(std::vector< double > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_double_Sg____bool__(std::vector< double > const *self){ return !(self->empty()); } SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){ return self->size(); } SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){ swig::setslice(self, i, j, 1, std::vector< double,std::allocator< double > >()); } SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_1(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i){ swig::erase(self, swig::getpos(self, i)); } SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getitem____SWIG_0(std::vector< double > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< double,std::allocator< double > >::difference_type id = i; std::vector< double,std::allocator< double > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_0(std::vector< double > *self,PySliceObject *slice,std::vector< double,std::allocator< double > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< double,std::allocator< double > >::difference_type id = i; std::vector< double,std::allocator< double > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< double,std::allocator< double > >::difference_type id = i; std::vector< double,std::allocator< double > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector< double,std::allocator< double > >::difference_type id = i; std::vector< double,std::allocator< double > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem____SWIG_1(std::vector< double > const *self,std::vector< double >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_2(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN std::vector< double >::value_type std_vector_Sl_double_Sg__pop(std::vector< double > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector< double,std::allocator< double > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN void std_vector_Sl_double_Sg__append(std::vector< double > *self,std::vector< double >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_1(std::vector< double > *self,std::vector< double >::iterator first,std::vector< double >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__insert__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_double_Sg__insert__SWIG_1(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::size_type n,std::vector< double >::value_type const &x){ self->insert(pos, n, x); } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_int (unsigned int value) { return PyInt_FromSize_t((size_t) value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned int >(v); } } return res; } SWIGINTERN int SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > USHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned short >(v); } } return res; } 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; } SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERN std::string itkLightObject_ToString(itkLightObject *self){ std::ostringstream o; self->Print(o); return o.str(); } SWIGINTERN void delete_itkLightObject(itkLightObject *self){ self->UnRegister(); } SWIGINTERN void delete_itkObject(itkObject *self){ self->UnRegister(); } SWIGINTERN void delete_itkProcessObject(itkProcessObject *self){ self->UnRegister(); } SWIGINTERN void delete_itkObjectFactoryBase(itkObjectFactoryBase *self){ self->UnRegister(); } SWIGINTERN void delete_itkMetaDataObjectBase(itkMetaDataObjectBase *self){ self->UnRegister(); } SWIGINTERN int itkMetaDataDictionary_GetType(itkMetaDataDictionary *self,std::string const &key){ return (int) otb::Wrapper::MetaDataHelper::GetType(key); } SWIGINTERNINLINE PyObject* SWIG_From_int (int value) { return PyInt_FromLong((long) value); } SWIGINTERN std::string itkMetaDataDictionary_GetString(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetString(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetString(itkMetaDataDictionary *self,std::string const &key,std::string const &val){ otb::Wrapper::MetaDataHelper::SetString(* self,key,val); } SWIGINTERN unsigned int itkMetaDataDictionary_GetInt(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetInt(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetInt(itkMetaDataDictionary *self,std::string const &key,unsigned int val){ otb::Wrapper::MetaDataHelper::SetInt(* self,key,val); } SWIGINTERN double itkMetaDataDictionary_GetDouble(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetDouble(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetDouble(itkMetaDataDictionary *self,std::string const &key,double val){ otb::Wrapper::MetaDataHelper::SetDouble(* self,key,val); } SWIGINTERN otb::OTB_GCP itkMetaDataDictionary_GetGCP(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetGCP(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetGCP(itkMetaDataDictionary *self,std::string const &key,otb::OTB_GCP const &val){ otb::Wrapper::MetaDataHelper::SetGCP(* self,key,val); } SWIGINTERN std::vector< double,std::allocator< double > > itkMetaDataDictionary_GetVector(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetVector(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetVector(itkMetaDataDictionary *self,std::string const &key,std::vector< double,std::allocator< double > > const &val){ otb::Wrapper::MetaDataHelper::SetVector(* self,key,val); } SWIGINTERN otb::ImageKeywordlist itkMetaDataDictionary_GetImageKWL(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetImageKWL(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetImageKWL(itkMetaDataDictionary *self,std::string const &key,otb::ImageKeywordlist const &val){ otb::Wrapper::MetaDataHelper::SetImageKWL(* self,key,val); } SWIGINTERN otb::VectorDataKeywordlist itkMetaDataDictionary_GetVectorDataKWL(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetVectorDataKWL(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetVectorDataKWL(itkMetaDataDictionary *self,std::string const &key,otb::VectorDataKeywordlist const &val){ otb::Wrapper::MetaDataHelper::SetVectorDataKWL(* self,key,val); } SWIGINTERN std::vector< bool,std::allocator< bool > > itkMetaDataDictionary_GetBoolVector(itkMetaDataDictionary *self,std::string const &key){ return otb::Wrapper::MetaDataHelper::GetBoolVector(* self,key); } SWIGINTERN void itkMetaDataDictionary_SetBoolVector(itkMetaDataDictionary *self,std::string const &key,std::vector< bool,std::allocator< bool > > const &val){ otb::Wrapper::MetaDataHelper::SetBoolVector(* self,key,val); } SWIGINTERN void delete_itkCommand(itkCommand *self){ self->UnRegister(); } #ifndef SWIG_FILE_WITH_INIT #define NO_IMPORT_ARRAY #endif #include "stdio.h" #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include #include "otbPythonLogOutput.h" #include "otbSwigPrintCallback.h" SWIGINTERN void delete_PythonLogOutput(PythonLogOutput *self){ self->UnRegister(); } SWIGINTERN void delete_ProgressReporterManager(ProgressReporterManager *self){ self->UnRegister(); } /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite /* isfinite() is a macro for C99 */ # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined __cplusplus && __cplusplus >= 201103L /* Use a template so that this works whether isfinite() is std::isfinite() or * in the global namespace. The reality seems to vary between compiler * versions. * * Make sure namespace std exists to avoid compiler warnings. * * extern "C++" is required as this fragment can end up inside an extern "C" { } block */ namespace std { } extern "C++" template inline int SWIG_isfinite_func(T x) { using namespace std; return isfinite(x); } # define SWIG_isfinite(X) (SWIG_isfinite_func(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; } SWIGINTERNINLINE PyObject * SWIG_From_float (float value) { return SWIG_From_double (value); } #if NPY_API_VERSION < 0x00000007 #define NPY_ARRAY_DEFAULT NPY_DEFAULT #define NPY_ARRAY_FARRAY NPY_FARRAY #define NPY_FORTRANORDER NPY_FORTRAN #endif /* Macros to extract array attributes. */ #if NPY_API_VERSION < 0x00000007 #define is_array(a) ((a) && PyArray_Check((PyArrayObject*)a)) #define array_type(a) (int)(PyArray_TYPE((PyArrayObject*)a)) #define array_numdims(a) (((PyArrayObject*)a)->nd) #define array_dimensions(a) (((PyArrayObject*)a)->dimensions) #define array_size(a,i) (((PyArrayObject*)a)->dimensions[i]) #define array_strides(a) (((PyArrayObject*)a)->strides) #define array_stride(a,i) (((PyArrayObject*)a)->strides[i]) #define array_data(a) (((PyArrayObject*)a)->data) #define array_descr(a) (((PyArrayObject*)a)->descr) #define array_flags(a) (((PyArrayObject*)a)->flags) #define array_enableflags(a,f) (((PyArrayObject*)a)->flags) = f #else #define is_array(a) ((a) && PyArray_Check(a)) #define array_type(a) PyArray_TYPE((PyArrayObject*)a) #define array_numdims(a) PyArray_NDIM((PyArrayObject*)a) #define array_dimensions(a) PyArray_DIMS((PyArrayObject*)a) #define array_strides(a) PyArray_STRIDES((PyArrayObject*)a) #define array_stride(a,i) PyArray_STRIDE((PyArrayObject*)a,i) #define array_size(a,i) PyArray_DIM((PyArrayObject*)a,i) #define array_data(a) PyArray_DATA((PyArrayObject*)a) #define array_descr(a) PyArray_DESCR((PyArrayObject*)a) #define array_flags(a) PyArray_FLAGS((PyArrayObject*)a) #define array_enableflags(a,f) PyArray_ENABLEFLAGS((PyArrayObject*)a,f) #endif #define array_is_contiguous(a) (PyArray_ISCONTIGUOUS((PyArrayObject*)a)) #define array_is_native(a) (PyArray_ISNOTSWAPPED((PyArrayObject*)a)) #define array_is_fortran(a) (PyArray_ISFORTRAN((PyArrayObject*)a)) /* Given a PyObject, return a string describing its type. */ const char* pytype_string(PyObject* py_obj) { if (py_obj == NULL ) return "C NULL value"; if (py_obj == Py_None ) return "Python None" ; if (PyCallable_Check(py_obj)) return "callable" ; if (PyString_Check( py_obj)) return "string" ; if (PyInt_Check( py_obj)) return "int" ; if (PyFloat_Check( py_obj)) return "float" ; if (PyDict_Check( py_obj)) return "dict" ; if (PyList_Check( py_obj)) return "list" ; if (PyTuple_Check( py_obj)) return "tuple" ; #if PY_MAJOR_VERSION < 3 if (PyFile_Check( py_obj)) return "file" ; if (PyModule_Check( py_obj)) return "module" ; if (PyInstance_Check(py_obj)) return "instance" ; #endif return "unknown type"; } /* Given a NumPy typecode, return a string describing the type. */ const char* typecode_string(int typecode) { static const char* type_names[25] = {"bool", "byte", "unsigned byte", "short", "unsigned short", "int", "unsigned int", "long", "unsigned long", "long long", "unsigned long long", "float", "double", "long double", "complex float", "complex double", "complex long double", "object", "string", "unicode", "void", "ntypes", "notype", "char", "unknown"}; return typecode < 24 ? type_names[typecode] : type_names[24]; } /* Make sure input has correct numpy type. This now just calls PyArray_EquivTypenums(). */ int type_match(int actual_type, int desired_type) { return PyArray_EquivTypenums(actual_type, desired_type); } #ifdef SWIGPY_USE_CAPSULE void free_cap(PyObject * cap) { void* array = (void*) PyCapsule_GetPointer(cap,SWIGPY_CAPSULE_NAME); if (array != NULL) free(array); } #endif /* Given a PyObject pointer, cast it to a PyArrayObject pointer if * legal. If not, set the python error string appropriately and * return NULL. */ PyArrayObject* obj_to_array_no_conversion(PyObject* input, int typecode) { PyArrayObject* ary = NULL; if (is_array(input) && (typecode == NPY_NOTYPE || PyArray_EquivTypenums(array_type(input), typecode))) { ary = (PyArrayObject*) input; } else if is_array(input) { const char* desired_type = typecode_string(typecode); const char* actual_type = typecode_string(array_type(input)); PyErr_Format(PyExc_TypeError, "Array of type '%s' required. Array of type '%s' given", desired_type, actual_type); ary = NULL; } else { const char* desired_type = typecode_string(typecode); const char* actual_type = pytype_string(input); PyErr_Format(PyExc_TypeError, "Array of type '%s' required. A '%s' was given", desired_type, actual_type); ary = NULL; } return ary; } /* Convert the given PyObject to a NumPy array with the given * typecode. On success, return a valid PyArrayObject* with the * correct type. On failure, the python error string will be set and * the routine returns NULL. */ PyArrayObject* obj_to_array_allow_conversion(PyObject* input, int typecode, int* is_new_object) { PyArrayObject* ary = NULL; PyObject* py_obj; if (is_array(input) && (typecode == NPY_NOTYPE || PyArray_EquivTypenums(array_type(input),typecode))) { ary = (PyArrayObject*) input; *is_new_object = 0; } else { py_obj = PyArray_FROMANY(input, typecode, 0, 0, NPY_ARRAY_DEFAULT); /* If NULL, PyArray_FromObject will have set python error value.*/ ary = (PyArrayObject*) py_obj; *is_new_object = 1; } return ary; } /* Given a PyArrayObject, check to see if it is contiguous. If so, * return the input pointer and flag it as not a new object. If it is * not contiguous, create a new PyArrayObject using the original data, * flag it as a new object and return the pointer. */ PyArrayObject* make_contiguous(PyArrayObject* ary, int* is_new_object, int min_dims, int max_dims) { PyArrayObject* result; if (array_is_contiguous(ary)) { result = ary; *is_new_object = 0; } else { result = (PyArrayObject*) PyArray_ContiguousFromObject((PyObject*)ary, array_type(ary), min_dims, max_dims); *is_new_object = 1; } return result; } /* Given a PyArrayObject, check to see if it is Fortran-contiguous. * If so, return the input pointer, but do not flag it as not a new * object. If it is not Fortran-contiguous, create a new * PyArrayObject using the original data, flag it as a new object * and return the pointer. */ PyArrayObject* make_fortran(PyArrayObject* ary, int* is_new_object) { PyArrayObject* result; if (array_is_fortran(ary)) { result = ary; *is_new_object = 0; } else { Py_INCREF(array_descr(ary)); result = (PyArrayObject*) PyArray_FromArray(ary, array_descr(ary), NPY_FORTRANORDER); *is_new_object = 1; } return result; } /* Convert a given PyObject to a contiguous PyArrayObject of the * specified type. If the input object is not a contiguous * PyArrayObject, a new one will be created and the new object flag * will be set. */ PyArrayObject* obj_to_array_contiguous_allow_conversion(PyObject* input, int typecode, int* is_new_object) { int is_new1 = 0; int is_new2 = 0; PyArrayObject* ary2; PyArrayObject* ary1 = obj_to_array_allow_conversion(input, typecode, &is_new1); if (ary1) { ary2 = make_contiguous(ary1, &is_new2, 0, 0); if ( is_new1 && is_new2) { Py_DECREF(ary1); } ary1 = ary2; } *is_new_object = is_new1 || is_new2; return ary1; } /* Convert a given PyObject to a Fortran-ordered PyArrayObject of the * specified type. If the input object is not a Fortran-ordered * PyArrayObject, a new one will be created and the new object flag * will be set. */ PyArrayObject* obj_to_array_fortran_allow_conversion(PyObject* input, int typecode, int* is_new_object) { int is_new1 = 0; int is_new2 = 0; PyArrayObject* ary2; PyArrayObject* ary1 = obj_to_array_allow_conversion(input, typecode, &is_new1); if (ary1) { ary2 = make_fortran(ary1, &is_new2); if (is_new1 && is_new2) { Py_DECREF(ary1); } ary1 = ary2; } *is_new_object = is_new1 || is_new2; return ary1; } /* Test whether a python object is contiguous. If array is * contiguous, return 1. Otherwise, set the python error string and * return 0. */ int require_contiguous(PyArrayObject* ary) { int contiguous = 1; if (!array_is_contiguous(ary)) { PyErr_SetString(PyExc_TypeError, "Array must be contiguous. A non-contiguous array was given"); contiguous = 0; } return contiguous; } /* Require that a numpy array is not byte-swapped. If the array is * not byte-swapped, return 1. Otherwise, set the python error string * and return 0. */ int require_native(PyArrayObject* ary) { int native = 1; if (!array_is_native(ary)) { PyErr_SetString(PyExc_TypeError, "Array must have native byteorder. " "A byte-swapped array was given"); native = 0; } return native; } /* Require the given PyArrayObject to have a specified number of * dimensions. If the array has the specified number of dimensions, * return 1. Otherwise, set the python error string and return 0. */ int require_dimensions(PyArrayObject* ary, int exact_dimensions) { int success = 1; if (array_numdims(ary) != exact_dimensions) { PyErr_Format(PyExc_TypeError, "Array must have %d dimensions. Given array has %d dimensions", exact_dimensions, array_numdims(ary)); success = 0; } return success; } /* Require the given PyArrayObject to have one of a list of specified * number of dimensions. If the array has one of the specified number * of dimensions, return 1. Otherwise, set the python error string * and return 0. */ int require_dimensions_n(PyArrayObject* ary, int* exact_dimensions, int n) { int success = 0; int i; char dims_str[255] = ""; char s[255]; for (i = 0; i < n && !success; i++) { if (array_numdims(ary) == exact_dimensions[i]) { success = 1; } } if (!success) { for (i = 0; i < n-1; i++) { sprintf(s, "%d, ", exact_dimensions[i]); strcat(dims_str,s); } sprintf(s, " or %d", exact_dimensions[n-1]); strcat(dims_str,s); PyErr_Format(PyExc_TypeError, "Array must have %s dimensions. Given array has %d dimensions", dims_str, array_numdims(ary)); } return success; } /* Require the given PyArrayObject to have a specified shape. If the * array has the specified shape, return 1. Otherwise, set the python * error string and return 0. */ int require_size(PyArrayObject* ary, npy_intp* size, int n) { int i; int success = 1; int len; char desired_dims[255] = "["; char s[255]; char actual_dims[255] = "["; for(i=0; i < n;i++) { if (size[i] != -1 && size[i] != array_size(ary,i)) { success = 0; } } if (!success) { for (i = 0; i < n; i++) { if (size[i] == -1) { sprintf(s, "*,"); } else { sprintf(s, "%ld,", (long int)size[i]); } strcat(desired_dims,s); } len = strlen(desired_dims); desired_dims[len-1] = ']'; for (i = 0; i < n; i++) { sprintf(s, "%ld,", (long int)array_size(ary,i)); strcat(actual_dims,s); } len = strlen(actual_dims); actual_dims[len-1] = ']'; PyErr_Format(PyExc_TypeError, "Array must have shape of %s. Given array has shape of %s", desired_dims, actual_dims); } return success; } /* Require the given PyArrayObject to to be Fortran ordered. If the * the PyArrayObject is already Fortran ordered, do nothing. Else, * set the Fortran ordering flag and recompute the strides. */ int require_fortran(PyArrayObject* ary) { int success = 1; int nd = array_numdims(ary); int i; npy_intp * strides = array_strides(ary); if (array_is_fortran(ary)) return success; /* Set the Fortran ordered flag */ array_enableflags(ary,NPY_ARRAY_FARRAY); /* Recompute the strides */ strides[0] = strides[nd-1]; for (i=1; i < nd; ++i) strides[i] = strides[i-1] * array_size(ary,i-1); return success; } SWIGINTERN ImageBaseType *Application_SetVectorImageFromUInt8NumpyArray_(Application *self,std::string pkey,int idx,unsigned char *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromInt16NumpyArray_(Application *self,std::string pkey,int idx,short *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromUInt16NumpyArray_(Application *self,std::string pkey,int idx,unsigned short *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromInt32NumpyArray_(Application *self,std::string pkey,int idx,int *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromUInt32NumpyArray_(Application *self,std::string pkey,int idx,unsigned int *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromFloatNumpyArray_(Application *self,std::string pkey,int idx,float *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromDoubleNumpyArray_(Application *self,std::string pkey,int idx,double *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromCFloatNumpyArray_(Application *self,std::string pkey,int idx,std::complex< float > *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage> ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetVectorImageFromCDoubleNumpyArray_(Application *self,std::string pkey,int idx,std::complex< double > *buffer,int dim1,int dim2,int dim3){ typedef otb::VectorImage> ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromUInt8NumpyArray_(Application *self,std::string pkey,int idx,unsigned char *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromInt16NumpyArray_(Application *self,std::string pkey,int idx,short *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromUInt16NumpyArray_(Application *self,std::string pkey,int idx,unsigned short *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromInt32NumpyArray_(Application *self,std::string pkey,int idx,int *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromUInt32NumpyArray_(Application *self,std::string pkey,int idx,unsigned int *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromFloatNumpyArray_(Application *self,std::string pkey,int idx,float *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromDoubleNumpyArray_(Application *self,std::string pkey,int idx,double *buffer,int dim1,int dim2,int dim3){ typedef otb::Image ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromCFloatNumpyArray_(Application *self,std::string pkey,int idx,std::complex< float > *buffer,int dim1,int dim2,int dim3){ typedef otb::Image> ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN ImageBaseType *Application_SetImageFromCDoubleNumpyArray_(Application *self,std::string pkey,int idx,std::complex< double > *buffer,int dim1,int dim2,int dim3){ typedef otb::Image> ImageType; ImageType::Pointer output = ImageType::New(); unsigned int numberOfPixels = dim1 * dim2 * dim3; ImageType::RegionType region; region.SetIndex(0, 0); region.SetIndex(1, 0); region.SetSize( 0, dim2); region.SetSize( 1, dim1); output->SetNumberOfComponentsPerPixel(dim3); output->SetRegions(region); output->GetPixelContainer()->SetImportPointer(buffer, numberOfPixels, false); self->SetParameterImageBase(pkey,output.GetPointer(),idx); return output.GetPointer(); } SWIGINTERN void Application_GetVectorImageAsUInt8NumpyArray_(Application *self,std::string pkey,unsigned char **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsInt16NumpyArray_(Application *self,std::string pkey,short **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsUInt16NumpyArray_(Application *self,std::string pkey,unsigned short **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsInt32NumpyArray_(Application *self,std::string pkey,int **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsUInt32NumpyArray_(Application *self,std::string pkey,unsigned int **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsFloatNumpyArray_(Application *self,std::string pkey,float **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsDoubleNumpyArray_(Application *self,std::string pkey,double **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image* imgDown = dynamic_cast< otb::Image* >(img); if (imgDown) *buffer = reinterpret_cast(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsCFloatNumpyArray_(Application *self,std::string pkey,std::complex< float > **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage,2> LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast*>(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image,2>* imgDown = dynamic_cast< otb::Image,2>* >(img); if (imgDown) *buffer = reinterpret_cast*>(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN void Application_GetVectorImageAsCDoubleNumpyArray_(Application *self,std::string pkey,std::complex< double > **buffer,int *dim1,int *dim2,int *dim3){ ImageBaseType *img = self->GetParameterOutputImage(pkey); img->Update(); unsigned int nbComp = img->GetNumberOfComponentsPerPixel(); ImageBaseType::RegionType region = img->GetBufferedRegion(); ImageBaseType::SizeType size = region.GetSize(); *dim1 = region.GetSize(1); *dim2 = region.GetSize(0); *dim3 = nbComp; std::string className(img->GetNameOfClass()); if (className == "VectorImage") { typedef otb::VectorImage,2> LocalVectorImageType; LocalVectorImageType* imgDown = dynamic_cast(img); if (imgDown) *buffer = reinterpret_cast*>(imgDown->GetBufferPointer()); else std::cerr << "VectorImage type doesn't match" << std::endl; } else { if (nbComp == 1) { otb::Image,2>* imgDown = dynamic_cast< otb::Image,2>* >(img); if (imgDown) *buffer = reinterpret_cast*>(imgDown->GetBufferPointer()); else std::cerr << "Image type doesn't match" << std::endl; } else { std::cerr << "Unhandled number of components in otb::Image (RGB " "and RGBA not supported yet)" << std::endl; } } } SWIGINTERN std::string Application_ConvertPixelTypeToNumpy(Application *self,otb::Wrapper::ImagePixelType pixType){ std::ostringstream oss; switch (pixType) { case otb::Wrapper::ImagePixelType_uint8 : oss << "uint" << (sizeof(unsigned char) * 8); break; case otb::Wrapper::ImagePixelType_int16 : oss << "int" << (sizeof(signed short) * 8); break; case otb::Wrapper::ImagePixelType_uint16 : oss << "uint" << (sizeof(unsigned short) * 8); break; case otb::Wrapper::ImagePixelType_int32 : oss << "int" << (sizeof(signed int) * 8); break; case otb::Wrapper::ImagePixelType_uint32 : oss << "uint" << (sizeof(unsigned int) * 8); break; case otb::Wrapper::ImagePixelType_float : oss << "float" << (sizeof(float) * 8); break; case otb::Wrapper::ImagePixelType_double : oss << "float" << (sizeof(double) * 8); break; case otb::Wrapper::ImagePixelType_cfloat : oss << "complex" << (sizeof(std::complex) * 8); break; case otb::Wrapper::ImagePixelType_cdouble : oss << "complex" << (sizeof(std::complex) * 8); break; default: std::cerr << "Pixel type not handled" << std::endl; break; } return oss.str(); } SWIGINTERN void Application_SetupImageInformation(Application *self,ImageBaseType *img,itk::Point< itk::SpacePrecisionType,2 > origin,itk::Vector< itk::SpacePrecisionType,2 > spacing,itk::Size< 2 > size,itk::ImageRegion< 2 > bufferRegion,itkMetaDataDictionary metadata){ img->SetOrigin(origin); otb::internal::SetSignedSpacing(img, spacing); itk::ImageRegion<2> largest; largest.SetSize(size); img->SetLargestPossibleRegion(largest); if (bufferRegion.GetSize() != img->GetBufferedRegion().GetSize()) { std::cerr << "Given buffered size doesn't match actual buffer size" << std::endl; return; } img->SetRequestedRegion(bufferRegion); img->SetBufferedRegion(bufferRegion); img->SetMetaDataDictionary(metadata); } SWIGINTERN void delete_Application(Application *self){ self->UnRegister(); } #include "itkPyCommand.h" typedef itk::PyCommand itkPyCommand; typedef itk::PyCommand::Pointer itkPyCommand_Pointer; SWIGINTERN void delete_itkPyCommand(itkPyCommand *self){ self->UnRegister(); } /* --------------------------------------------------- * C++ director class methods * --------------------------------------------------- */ #include "otbApplicationPYTHON_wrap.h" SwigDirector_SwigPrintCallback::SwigDirector_SwigPrintCallback(PyObject *self): otb::SwigPrintCallback(), Swig::Director(self) { SWIG_DIRECTOR_RGTR((otb::SwigPrintCallback *)this, this); } SwigDirector_SwigPrintCallback::~SwigDirector_SwigPrintCallback() { } void SwigDirector_SwigPrintCallback::Call(std::string const &arg0) { swig::SwigVar_PyObject obj0; obj0 = SWIG_From_std_string(static_cast< std::string >(arg0)); if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SwigPrintCallback.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 0; const char *const swig_method_name = "Call"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); #else swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"Call", (char *)"(O)" ,(PyObject *)obj0); #endif if (!result) { PyObject *error = PyErr_Occurred(); if (error) { Swig::DirectorMethodException::raise("Error detected when calling 'SwigPrintCallback.Call'"); } } } void SwigDirector_SwigPrintCallback::Flush() { if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SwigPrintCallback.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 1; const char *const swig_method_name = "Flush"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); #else swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "Flush", NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); if (error) { Swig::DirectorMethodException::raise("Error detected when calling 'SwigPrintCallback.Flush'"); } } } bool SwigDirector_SwigPrintCallback::IsInteractive() { bool c_result; if (!swig_get_self()) { Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SwigPrintCallback.__init__."); } #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) const size_t swig_method_index = 2; const char *const swig_method_name = "IsInteractive"; PyObject *method = swig_get_method(swig_method_index, swig_method_name); swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); #else swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "IsInteractive", NULL); #endif if (!result) { PyObject *error = PyErr_Occurred(); if (error) { Swig::DirectorMethodException::raise("Error detected when calling 'SwigPrintCallback.IsInteractive'"); } } bool swig_val; int swig_res = SWIG_AsVal_bool(result, &swig_val); if (!SWIG_IsOK(swig_res)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'"); } c_result = static_cast< bool >(swig_val); return (bool) c_result; } #ifdef __cplusplus extern "C" { #endif SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_SwigPyIterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_SwigPyIterator" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_value: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_value" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); { try { try { result = (swig::SwigPyIterator *)(arg1)->incr(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_incr: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_incr" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (swig::SwigPyIterator *)(arg1)->incr(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_incr: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_incr" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_incr__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator_incr__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::incr(size_t)\n" " swig::SwigPyIterator::incr()\n"); return 0; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); { try { try { result = (swig::SwigPyIterator *)(arg1)->decr(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_decr: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_decr" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (swig::SwigPyIterator *)(arg1)->decr(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_decr: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_decr" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_decr__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator_decr__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::decr(size_t)\n" " swig::SwigPyIterator::decr()\n"); return 0; } SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ptrdiff_t result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); { try { try { result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); } catch(std::invalid_argument &_e) { SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_distance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_distance" ); } } resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); { try { try { result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); } catch(std::invalid_argument &_e) { SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_equal: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_equal" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_copy: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_copy" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (PyObject *)(arg1)->next(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_next: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_next" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (PyObject *)(arg1)->__next__(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___next__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___next__" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); { try { try { result = (PyObject *)(arg1)->previous(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_previous: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_previous" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); { try { try { result = (swig::SwigPyIterator *)(arg1)->advance(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator_advance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator_advance" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); { try { result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___eq__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___eq__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); { try { result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___ne__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___ne__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); { try { try { result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___iadd__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___iadd__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); { try { try { result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___isub__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___isub__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); { try { try { result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___add__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___add__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); { try { try { result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___sub__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___sub__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ptrdiff_t result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); { try { result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPyIterator___sub__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPyIterator___sub__" ); } } resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator___sub____SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator___sub____SWIG_0(self, args); } } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_vectorstring_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_iterator" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (swig::SwigPyIterator *)std_vector_Sl_std_string_Sg__iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___nonzero__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector< std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___nonzero__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___nonzero__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___bool__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (bool)std_vector_Sl_std_string_Sg____bool__((std::vector< std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___bool__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___bool__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___len__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___len__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___len__" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::string,std::allocator< std::string > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___getslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___getslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorstring___getslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { try { try { result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___getslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___getslice__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorstring___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { try { try { std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___setslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectorstring___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorstring___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorstring___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } arg4 = ptr; } { try { try { std_vector_Sl_std_string_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___setslice__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorstring___setslice____SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring___setslice____SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n" " std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___delslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___delslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorstring___delslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'"); } arg3 = static_cast< std::vector< std::string >::difference_type >(val3); { try { try { std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___delslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___delslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); { try { try { std_vector_Sl_std_string_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___getitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___getitem__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorstring___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } arg3 = ptr; } { try { try { std_vector_Sl_std_string_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_std_string_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___setitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_std_string_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorstring___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorstring___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::__delitem__(std::vector< std::string >::difference_type)\n" " std::vector< std::string >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___getitem__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___getitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); { try { try { result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem____SWIG_1((std::vector< std::string > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___getitem__" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorstring___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorstring___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::__getitem__(PySliceObject *)\n" " std::vector< std::string >::__getitem__(std::vector< std::string >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::difference_type arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring___setitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'"); } arg2 = static_cast< std::vector< std::string >::difference_type >(val2); { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorstring___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } arg3 = ptr; } { try { try { std_vector_Sl_std_string_Sg____setitem____SWIG_2(arg1,arg2,(std::string const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorstring___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::__setitem__(PySliceObject *,std::vector< std::string,std::allocator< std::string > > const &)\n" " std::vector< std::string >::__setitem__(PySliceObject *)\n" " std::vector< std::string >::__setitem__(std::vector< std::string >::difference_type,std::vector< std::string >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { try { result = std_vector_Sl_std_string_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_pop: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_pop" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_append" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vectorstring_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } arg2 = ptr; } { try { std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_append: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_append" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_vectorstring__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_vectorstring")) SWIG_fail; { try { result = (std::vector< std::string > *)new std::vector< std::string >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorstring__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectorstring",&obj0)) SWIG_fail; { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorstring" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorstring" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); } arg1 = ptr; } { try { result = (std::vector< std::string > *)new std::vector< std::string >((std::vector< std::string > const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_empty" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (bool)((std::vector< std::string > const *)arg1)->empty(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_empty: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_empty" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = ((std::vector< std::string > const *)arg1)->size(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_size: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_size" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string > *arg2 = 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:vectorstring_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_swap" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vectorstring_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); } arg2 = reinterpret_cast< std::vector< std::string > * >(argp2); { try { (arg1)->swap(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_swap: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_swap" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_begin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (arg1)->begin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_begin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_begin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_end" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (arg1)->end(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_end: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_end" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_rbegin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (arg1)->rbegin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_rbegin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_rbegin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_rend" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (arg1)->rend(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_rend: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_rend" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { (arg1)->clear(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_clear: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_clear" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = ((std::vector< std::string > const *)arg1)->get_allocator(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_get_allocator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_get_allocator" ); } } resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorstring__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectorstring",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorstring" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); } arg1 = static_cast< std::vector< std::string >::size_type >(val1); { try { result = (std::vector< std::string > *)new std::vector< std::string >(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_pop_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { (arg1)->pop_back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_pop_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_pop_back" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } arg2 = static_cast< std::vector< std::string >::size_type >(val2); { try { (arg1)->resize(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_resize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } } { try { result = std_vector_Sl_std_string_Sg__erase__SWIG_0(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; std::vector< std::string >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'"); } } { try { result = std_vector_Sl_std_string_Sg__erase__SWIG_1(arg1,arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectorstring_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectorstring_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::erase(std::vector< std::string >::iterator)\n" " std::vector< std::string >::erase(std::vector< std::string >::iterator,std::vector< std::string >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_vectorstring__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string >::size_type arg1 ; std::vector< std::string >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_vectorstring",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorstring" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'"); } arg1 = static_cast< std::vector< std::string >::size_type >(val1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vectorstring" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorstring" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } arg2 = ptr; } { try { result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_vectorstring(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_vectorstring__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_vectorstring__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_vectorstring__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_vectorstring__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_vectorstring'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::vector()\n" " std::vector< std::string >::vector(std::vector< std::string > const &)\n" " std::vector< std::string >::vector(std::vector< std::string >::size_type)\n" " std::vector< std::string >::vector(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_push_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vectorstring_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); } arg2 = ptr; } { try { (arg1)->push_back((std::vector< std::string >::value_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_push_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_push_back" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_front" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_front: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_front" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_back" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_back" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_assign" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring_assign" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } arg2 = static_cast< std::vector< std::string >::size_type >(val2); { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorstring_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } arg3 = ptr; } { try { (arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_assign: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_assign" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } arg2 = static_cast< std::vector< std::string >::size_type >(val2); { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorstring_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } arg3 = ptr; } { try { (arg1)->resize(arg2,(std::vector< std::string >::value_type const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_resize" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorstring_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::resize(std::vector< std::string >::size_type)\n" " std::vector< std::string >::resize(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; std::vector< std::string >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorstring_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorstring_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); } arg3 = ptr; } { try { result = std_vector_Sl_std_string_Sg__insert__SWIG_0(arg1,arg2,(std::string const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_insert" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::iterator arg2 ; std::vector< std::string >::size_type arg3 ; std::vector< std::string >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectorstring_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorstring_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorstring_insert" "', argument " "3"" of type '" "std::vector< std::string >::size_type""'"); } arg3 = static_cast< std::vector< std::string >::size_type >(val3); { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorstring_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorstring_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); } arg4 = ptr; } { try { std_vector_Sl_std_string_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::string const &)*arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_insert" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorstring_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorstring_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::value_type const &)\n" " std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorstring_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; std::vector< std::string >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorstring_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_reserve" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorstring_reserve" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'"); } arg2 = static_cast< std::vector< std::string >::size_type >(val2); { try { (arg1)->reserve(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_reserve: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_reserve" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorstring_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorstring_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorstring_capacity" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { result = ((std::vector< std::string > const *)arg1)->capacity(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorstring_capacity: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorstring_capacity" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_vectorstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_vectorstring",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorstring" "', argument " "1"" of type '" "std::vector< std::string > *""'"); } arg1 = reinterpret_cast< std::vector< std::string > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_vectorstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_vectorstring" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *vectorstring_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_mapstringstring__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< std::string > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_mapstringstring",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_std__string_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_mapstringstring" "', argument " "1"" of type '" "std::less< std::string > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_mapstringstring" "', argument " "1"" of type '" "std::less< std::string > const &""'"); } arg1 = reinterpret_cast< std::less< std::string > * >(argp1); { try { result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >((std::less< std::string > const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_mapstringstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_mapstringstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____nonzero__((std::map< std::string,std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___nonzero__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___nonzero__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___bool__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____bool__((std::map< std::string,std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___bool__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___bool__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___len__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = std_map_Sl_std_string_Sc_std_string_Sg____len__((std::map< std::string,std::string > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___len__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___len__" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::mapped_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { try { result = (std::map< std::string,std::string >::mapped_type *) &std_map_Sl_std_string_Sc_std_string_Sg____getitem__(arg1,(std::string const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___getitem__" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { try { std_map_Sl_std_string_Sc_std_string_Sg____delitem__(arg1,(std::string const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___delitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_has_key",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_has_key" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_has_key" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_has_key" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (bool)std_map_Sl_std_string_Sc_std_string_Sg__has_key((std::map< std::string,std::string > const *)arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_has_key: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_has_key" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_keys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_keys" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__keys(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_keys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_keys" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_values",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_values" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__values(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_values: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_values" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_items",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_items" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__items(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_items: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_items" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___contains__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring___contains__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___contains__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____contains__(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___contains__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___contains__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_key_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__key_iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_key_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_key_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_value_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__value_iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_value_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_value_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; std::map< std::string,std::string >::mapped_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:mapstringstring___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapstringstring___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::string >::mapped_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::string >::mapped_type const &""'"); } arg3 = ptr; } { try { try { std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::string const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_mapstringstring___setitem____SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_mapstringstring___setitem____SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'mapstringstring___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::map< std::string,std::string >::__setitem__(std::map< std::string,std::string >::key_type const &)\n" " std::map< std::string,std::string >::__setitem__(std::map< std::string,std::string >::key_type const &,std::map< std::string,std::string >::mapped_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_mapstringstring_asdict(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_asdict",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_asdict" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__asdict(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_asdict: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_asdict" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_mapstringstring__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_mapstringstring")) SWIG_fail; { try { result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_mapstringstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_mapstringstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_mapstringstring__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::map< std::string,std::string > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_mapstringstring",&obj0)) SWIG_fail; { std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *ptr = (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_mapstringstring" "', argument " "1"" of type '" "std::map< std::string,std::string > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_mapstringstring" "', argument " "1"" of type '" "std::map< std::string,std::string > const &""'"); } arg1 = ptr; } { try { result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >((std::map< std::string,std::string > const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_mapstringstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_mapstringstring" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_mapstringstring(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_mapstringstring__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_mapstringstring__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_mapstringstring__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_mapstringstring'.\n" " Possible C/C++ prototypes are:\n" " std::map< std::string,std::string >::map(std::less< std::string > const &)\n" " std::map< std::string,std::string >::map()\n" " std::map< std::string,std::string >::map(std::map< std::string,std::string > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_mapstringstring_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_empty" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (bool)((std::map< std::string,std::string > const *)arg1)->empty(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_empty: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_empty" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_size" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = ((std::map< std::string,std::string > const *)arg1)->size(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_size: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_size" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string > *arg2 = 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:mapstringstring_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_swap" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_swap" "', argument " "2"" of type '" "std::map< std::string,std::string > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_swap" "', argument " "2"" of type '" "std::map< std::string,std::string > &""'"); } arg2 = reinterpret_cast< std::map< std::string,std::string > * >(argp2); { try { (arg1)->swap(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_swap: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_swap" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_begin" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (arg1)->begin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_begin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_begin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_end" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (arg1)->end(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_end: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_end" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (arg1)->rbegin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_rbegin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_rbegin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< std::string,std::string >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_rend" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = (arg1)->rend(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_rend: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_rend" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_clear" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { (arg1)->clear(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_clear: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_clear" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::pair< std::string const,std::string > > > result; if (!PyArg_ParseTuple(args,(char *)"O:mapstringstring_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { result = ((std::map< std::string,std::string > const *)arg1)->get_allocator(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_get_allocator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_get_allocator" ); } } resultobj = SWIG_NewPointerObj((new std::map< std::string,std::string >::allocator_type(static_cast< const std::map< std::string,std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (arg1)->erase((std::map< std::string,std::string >::key_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_erase" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_count" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_count" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_count" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = ((std::map< std::string,std::string > const *)arg1)->count((std::map< std::string,std::string >::key_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_count: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_count" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'"); } } { try { std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_1(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_erase" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::iterator arg2 ; std::map< std::string,std::string >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:mapstringstring_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "3"" of type '" "std::map< std::string,std::string >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "mapstringstring_erase" "', argument " "3"" of type '" "std::map< std::string,std::string >::iterator""'"); } } { try { std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_2(arg1,arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_erase" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_mapstringstring_erase__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_mapstringstring_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_mapstringstring_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'mapstringstring_erase'.\n" " Possible C/C++ prototypes are:\n" " std::map< std::string,std::string >::erase(std::map< std::string,std::string >::key_type const &)\n" " std::map< std::string,std::string >::erase(std::map< std::string,std::string >::iterator)\n" " std::map< std::string,std::string >::erase(std::map< std::string,std::string >::iterator,std::map< std::string,std::string >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_mapstringstring_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_find" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_find" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_find" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (arg1)->find((std::map< std::string,std::string >::key_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_find: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_find" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (arg1)->lower_bound((std::map< std::string,std::string >::key_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_lower_bound: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_lower_bound" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_mapstringstring_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; std::map< std::string,std::string >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< std::string,std::string >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:mapstringstring_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapstringstring_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapstringstring_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapstringstring_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); } arg2 = ptr; } { try { result = (arg1)->upper_bound((std::map< std::string,std::string >::key_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication mapstringstring_upper_bound: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication mapstringstring_upper_bound" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_mapstringstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< std::string,std::string > *arg1 = (std::map< std::string,std::string > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_mapstringstring",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_mapstringstring" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); } arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_mapstringstring: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_mapstringstring" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *mapstringstring_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_vectorbool_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_iterator" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (swig::SwigPyIterator *)std_vector_Sl_bool_Sg__iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___nonzero__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (bool)std_vector_Sl_bool_Sg____nonzero__((std::vector< bool > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___nonzero__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___nonzero__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___bool__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (bool)std_vector_Sl_bool_Sg____bool__((std::vector< bool > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___bool__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___bool__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___len__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = std_vector_Sl_bool_Sg____len__((std::vector< bool > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___len__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___len__" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; std::vector< bool >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< bool,std::allocator< bool > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___getslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___getslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool___getslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'"); } arg3 = static_cast< std::vector< bool >::difference_type >(val3); { try { try { result = (std::vector< bool,std::allocator< bool > > *)std_vector_Sl_bool_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___getslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___getslice__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; std::vector< bool >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___setslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___setslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool___setslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'"); } arg3 = static_cast< std::vector< bool >::difference_type >(val3); { try { try { std_vector_Sl_bool_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___setslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; std::vector< bool >::difference_type arg3 ; std::vector< bool,std::allocator< bool > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectorbool___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___setslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___setslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool___setslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'"); } arg3 = static_cast< std::vector< bool >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectorbool___setslice__" "', argument " "4"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorbool___setslice__" "', argument " "4"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } arg4 = ptr; } { try { try { std_vector_Sl_bool_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< bool,std::allocator< bool > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___setslice__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool___setslice____SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorbool___setslice____SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::__setslice__(std::vector< bool >::difference_type,std::vector< bool >::difference_type)\n" " std::vector< bool >::__setslice__(std::vector< bool >::difference_type,std::vector< bool >::difference_type,std::vector< bool,std::allocator< bool > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; std::vector< bool >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___delslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___delslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool___delslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'"); } arg3 = static_cast< std::vector< bool >::difference_type >(val3); { try { try { std_vector_Sl_bool_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___delslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___delslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___delitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___delitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); { try { try { std_vector_Sl_bool_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< bool,std::allocator< bool > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___getitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { result = (std::vector< bool,std::allocator< bool > > *)std_vector_Sl_bool_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___getitem__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< bool,std::allocator< bool > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectorbool___setitem__" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorbool___setitem__" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } arg3 = ptr; } { try { try { std_vector_Sl_bool_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< bool,std::allocator< bool > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_bool_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___setitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___delitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_bool_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorbool___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::__delitem__(std::vector< bool >::difference_type)\n" " std::vector< bool >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< bool >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___getitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___getitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); { try { try { result = (std::vector< bool >::value_type)std_vector_Sl_bool_Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___getitem__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorbool___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::__getitem__(PySliceObject *)\n" " std::vector< bool >::__getitem__(std::vector< bool >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::difference_type arg2 ; std::vector< bool >::value_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool___setitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'"); } arg2 = static_cast< std::vector< bool >::difference_type >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool___setitem__" "', argument " "3"" of type '" "std::vector< bool >::value_type""'"); } arg3 = static_cast< std::vector< bool >::value_type >(val3); { try { try { std_vector_Sl_bool_Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool___setitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectorbool___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectorbool___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::__setitem__(PySliceObject *,std::vector< bool,std::allocator< bool > > const &)\n" " std::vector< bool >::__setitem__(PySliceObject *)\n" " std::vector< bool >::__setitem__(std::vector< bool >::difference_type,std::vector< bool >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_pop" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { try { result = (std::vector< bool >::value_type)std_vector_Sl_bool_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_pop: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_pop" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_append" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_append" "', argument " "2"" of type '" "std::vector< bool >::value_type""'"); } arg2 = static_cast< std::vector< bool >::value_type >(val2); { try { std_vector_Sl_bool_Sg__append(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_append: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_append" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorbool__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_vectorbool")) SWIG_fail; { try { result = (std::vector< bool > *)new std::vector< bool >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorbool: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorbool" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorbool__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< bool > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectorbool",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectorbool" "', argument " "1"" of type '" "std::vector< bool > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectorbool" "', argument " "1"" of type '" "std::vector< bool > const &""'"); } arg1 = ptr; } { try { result = (std::vector< bool > *)new std::vector< bool >((std::vector< bool > const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorbool: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorbool" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_empty" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (bool)((std::vector< bool > const *)arg1)->empty(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_empty: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_empty" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_size" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = ((std::vector< bool > const *)arg1)->size(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_size: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_size" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool > *arg2 = 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:vectorbool_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_swap" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vectorbool_swap" "', argument " "2"" of type '" "std::vector< bool > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectorbool_swap" "', argument " "2"" of type '" "std::vector< bool > &""'"); } arg2 = reinterpret_cast< std::vector< bool > * >(argp2); { try { (arg1)->swap(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_swap: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_swap" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_begin" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (arg1)->begin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_begin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_begin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_end" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (arg1)->end(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_end: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_end" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_rbegin" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (arg1)->rbegin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_rbegin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_rbegin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_rend" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (arg1)->rend(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_rend: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_rend" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_clear" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { (arg1)->clear(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_clear: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_clear" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< bool > > result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_get_allocator" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = ((std::vector< bool > const *)arg1)->get_allocator(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_get_allocator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_get_allocator" ); } } resultobj = SWIG_NewPointerObj((new std::vector< bool >::allocator_type(static_cast< const std::vector< bool >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_bool_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorbool__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectorbool",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorbool" "', argument " "1"" of type '" "std::vector< bool >::size_type""'"); } arg1 = static_cast< std::vector< bool >::size_type >(val1); { try { result = (std::vector< bool > *)new std::vector< bool >(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorbool: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorbool" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_pop_back" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { (arg1)->pop_back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_pop_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_pop_back" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_resize" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_resize" "', argument " "2"" of type '" "std::vector< bool >::size_type""'"); } arg2 = static_cast< std::vector< bool >::size_type >(val2); { try { (arg1)->resize(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_resize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< bool >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_erase" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } } { try { result = std_vector_Sl_bool_Sg__erase__SWIG_0(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::iterator arg2 ; std::vector< bool >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< bool >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_erase" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "3"" of type '" "std::vector< bool >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_erase" "', argument " "3"" of type '" "std::vector< bool >::iterator""'"); } } { try { result = std_vector_Sl_bool_Sg__erase__SWIG_1(arg1,arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectorbool_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectorbool_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::erase(std::vector< bool >::iterator)\n" " std::vector< bool >::erase(std::vector< bool >::iterator,std::vector< bool >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_vectorbool__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool >::size_type arg1 ; std::vector< bool >::value_type arg2 ; size_t val1 ; int ecode1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< bool > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_vectorbool",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectorbool" "', argument " "1"" of type '" "std::vector< bool >::size_type""'"); } arg1 = static_cast< std::vector< bool >::size_type >(val1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vectorbool" "', argument " "2"" of type '" "std::vector< bool >::value_type""'"); } arg2 = static_cast< std::vector< bool >::value_type >(val2); { try { result = (std::vector< bool > *)new std::vector< bool >(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectorbool: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectorbool" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectorbool(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_vectorbool__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_vectorbool__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_vectorbool__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_vectorbool__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_vectorbool'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::vector()\n" " std::vector< bool >::vector(std::vector< bool > const &)\n" " std::vector< bool >::vector(std::vector< bool >::size_type)\n" " std::vector< bool >::vector(std::vector< bool >::size_type,std::vector< bool >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_push_back" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_push_back" "', argument " "2"" of type '" "std::vector< bool >::value_type""'"); } arg2 = static_cast< std::vector< bool >::value_type >(val2); { try { (arg1)->push_back(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_push_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_push_back" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_front" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (std::vector< bool >::value_type)((std::vector< bool > const *)arg1)->front(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_front: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_front" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_back" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = (std::vector< bool >::value_type)((std::vector< bool > const *)arg1)->back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_back" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::size_type arg2 ; std::vector< bool >::value_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_assign" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_assign" "', argument " "2"" of type '" "std::vector< bool >::size_type""'"); } arg2 = static_cast< std::vector< bool >::size_type >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool_assign" "', argument " "3"" of type '" "std::vector< bool >::value_type""'"); } arg3 = static_cast< std::vector< bool >::value_type >(val3); { try { (arg1)->assign(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_assign: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_assign" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::size_type arg2 ; std::vector< bool >::value_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_resize" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_resize" "', argument " "2"" of type '" "std::vector< bool >::size_type""'"); } arg2 = static_cast< std::vector< bool >::size_type >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool_resize" "', argument " "3"" of type '" "std::vector< bool >::value_type""'"); } arg3 = static_cast< std::vector< bool >::value_type >(val3); { try { (arg1)->resize(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_resize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::resize(std::vector< bool >::size_type)\n" " std::vector< bool >::resize(std::vector< bool >::size_type,std::vector< bool >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::iterator arg2 ; std::vector< bool >::value_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< bool >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectorbool_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_insert" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool_insert" "', argument " "3"" of type '" "std::vector< bool >::value_type""'"); } arg3 = static_cast< std::vector< bool >::value_type >(val3); { try { result = std_vector_Sl_bool_Sg__insert__SWIG_0(arg1,arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_insert" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::iterator arg2 ; std::vector< bool >::size_type arg3 ; std::vector< bool >::value_type arg4 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectorbool_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_insert" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectorbool_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectorbool_insert" "', argument " "3"" of type '" "std::vector< bool >::size_type""'"); } arg3 = static_cast< std::vector< bool >::size_type >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "vectorbool_insert" "', argument " "4"" of type '" "std::vector< bool >::value_type""'"); } arg4 = static_cast< std::vector< bool >::value_type >(val4); { try { std_vector_Sl_bool_Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_insert" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectorbool_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectorbool_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< bool >::insert(std::vector< bool >::iterator,std::vector< bool >::value_type)\n" " std::vector< bool >::insert(std::vector< bool >::iterator,std::vector< bool >::size_type,std::vector< bool >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectorbool_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; std::vector< bool >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectorbool_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_reserve" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectorbool_reserve" "', argument " "2"" of type '" "std::vector< bool >::size_type""'"); } arg2 = static_cast< std::vector< bool >::size_type >(val2); { try { (arg1)->reserve(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_reserve: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_reserve" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectorbool_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< bool >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectorbool_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectorbool_capacity" "', argument " "1"" of type '" "std::vector< bool > const *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { result = ((std::vector< bool > const *)arg1)->capacity(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectorbool_capacity: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectorbool_capacity" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_vectorbool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< bool > *arg1 = (std::vector< bool > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_vectorbool",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectorbool" "', argument " "1"" of type '" "std::vector< bool > *""'"); } arg1 = reinterpret_cast< std::vector< bool > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_vectorbool: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_vectorbool" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *vectorbool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_vectordouble_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_iterator" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (swig::SwigPyIterator *)std_vector_Sl_double_Sg__iterator(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_iterator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_iterator" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___nonzero__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___nonzero__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___bool__" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (bool)std_vector_Sl_double_Sg____bool__((std::vector< double > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___bool__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___bool__" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___len__" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___len__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___len__" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; std::vector< double >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< double,std::allocator< double > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); } arg3 = static_cast< std::vector< double >::difference_type >(val3); { try { try { result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___getslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___getslice__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; std::vector< double >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); } arg3 = static_cast< std::vector< double >::difference_type >(val3); { try { try { std_vector_Sl_double_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___setslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; std::vector< double >::difference_type arg3 ; std::vector< double,std::allocator< double > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectordouble___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); } arg3 = static_cast< std::vector< double >::difference_type >(val3); { std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vectordouble___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectordouble___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } arg4 = ptr; } { try { try { std_vector_Sl_double_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___setslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___setslice__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setslice__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble___setslice____SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectordouble___setslice____SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type)\n" " std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type,std::vector< double,std::allocator< double > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; std::vector< double >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'"); } arg3 = static_cast< std::vector< double >::difference_type >(val3); { try { try { std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___delslice__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___delslice__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); { try { try { std_vector_Sl_double_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< double,std::allocator< double > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___getitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___getitem__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< double,std::allocator< double > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vectordouble___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectordouble___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } arg3 = ptr; } { try { try { std_vector_Sl_double_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___setitem__" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_double_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___setitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { try { try { std_vector_Sl_double_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___delitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___delitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___delitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectordouble___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::__delitem__(std::vector< double >::difference_type)\n" " std::vector< double >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< double >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); { try { try { result = (std::vector< double >::value_type *) &std_vector_Sl_double_Sg____getitem____SWIG_1((std::vector< double > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___getitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___getitem__" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___getitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectordouble___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::__getitem__(PySliceObject *)\n" " std::vector< double >::__getitem__(std::vector< double >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::difference_type arg2 ; std::vector< double >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; std::vector< double >::value_type temp3 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'"); } arg2 = static_cast< std::vector< double >::difference_type >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'"); } temp3 = static_cast< std::vector< double >::value_type >(val3); arg3 = &temp3; { try { try { std_vector_Sl_double_Sg____setitem____SWIG_2(arg1,arg2,(double const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble___setitem__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble___setitem__" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble___setitem__(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_vectordouble___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_vectordouble___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::__setitem__(PySliceObject *,std::vector< double,std::allocator< double > > const &)\n" " std::vector< double >::__setitem__(PySliceObject *)\n" " std::vector< double >::__setitem__(std::vector< double >::difference_type,std::vector< double >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_pop" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { try { result = (std::vector< double >::value_type)std_vector_Sl_double_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_pop: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_pop" ); } } resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::vector< double >::value_type temp2 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_append" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_append" "', argument " "2"" of type '" "std::vector< double >::value_type""'"); } temp2 = static_cast< std::vector< double >::value_type >(val2); arg2 = &temp2; { try { std_vector_Sl_double_Sg__append(arg1,(double const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_append: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_append" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectordouble__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_vectordouble")) SWIG_fail; { try { result = (std::vector< double > *)new std::vector< double >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectordouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectordouble" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectordouble__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< double > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectordouble",&obj0)) SWIG_fail; { std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vectordouble" "', argument " "1"" of type '" "std::vector< double > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vectordouble" "', argument " "1"" of type '" "std::vector< double > const &""'"); } arg1 = ptr; } { try { result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectordouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectordouble" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_empty" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (bool)((std::vector< double > const *)arg1)->empty(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_empty: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_empty" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_size" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = ((std::vector< double > const *)arg1)->size(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_size: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_size" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double > *arg2 = 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:vectordouble_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_swap" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vectordouble_swap" "', argument " "2"" of type '" "std::vector< double > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vectordouble_swap" "', argument " "2"" of type '" "std::vector< double > &""'"); } arg2 = reinterpret_cast< std::vector< double > * >(argp2); { try { (arg1)->swap(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_swap: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_swap" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_begin" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (arg1)->begin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_begin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_begin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_end" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (arg1)->end(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_end: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_end" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_rbegin" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (arg1)->rbegin(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_rbegin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_rbegin" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_rend" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (arg1)->rend(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_rend: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_rend" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_clear" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { (arg1)->clear(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_clear: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_clear" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< double > > result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_get_allocator" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = ((std::vector< double > const *)arg1)->get_allocator(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_get_allocator: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_get_allocator" ); } } resultobj = SWIG_NewPointerObj((new std::vector< double >::allocator_type(static_cast< const std::vector< double >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_double_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectordouble__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< double > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_vectordouble",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectordouble" "', argument " "1"" of type '" "std::vector< double >::size_type""'"); } arg1 = static_cast< std::vector< double >::size_type >(val1); { try { result = (std::vector< double > *)new std::vector< double >(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectordouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectordouble" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_pop_back" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { (arg1)->pop_back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_pop_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_pop_back" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_resize" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'"); } arg2 = static_cast< std::vector< double >::size_type >(val2); { try { (arg1)->resize(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_resize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< double >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_erase" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } } { try { result = std_vector_Sl_double_Sg__erase__SWIG_0(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::iterator arg2 ; std::vector< double >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< double >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_erase" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'"); } } { try { result = std_vector_Sl_double_Sg__erase__SWIG_1(arg1,arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_erase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_erase" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_erase(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectordouble_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_vectordouble_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::erase(std::vector< double >::iterator)\n" " std::vector< double >::erase(std::vector< double >::iterator,std::vector< double >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_vectordouble__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double >::size_type arg1 ; std::vector< double >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; std::vector< double >::value_type temp2 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< double > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_vectordouble",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vectordouble" "', argument " "1"" of type '" "std::vector< double >::size_type""'"); } arg1 = static_cast< std::vector< double >::size_type >(val1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vectordouble" "', argument " "2"" of type '" "std::vector< double >::value_type""'"); } temp2 = static_cast< std::vector< double >::value_type >(val2); arg2 = &temp2; { try { result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_vectordouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_vectordouble" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_vectordouble(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_vectordouble__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_vectordouble__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_vectordouble__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_vectordouble__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_vectordouble'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::vector()\n" " std::vector< double >::vector(std::vector< double > const &)\n" " std::vector< double >::vector(std::vector< double >::size_type)\n" " std::vector< double >::vector(std::vector< double >::size_type,std::vector< double >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::vector< double >::value_type temp2 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_push_back" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_push_back" "', argument " "2"" of type '" "std::vector< double >::value_type""'"); } temp2 = static_cast< std::vector< double >::value_type >(val2); arg2 = &temp2; { try { (arg1)->push_back((std::vector< double >::value_type const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_push_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_push_back" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_front" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->front(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_front: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_front" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_back" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->back(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_back: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_back" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::size_type arg2 ; std::vector< double >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; std::vector< double >::value_type temp3 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_assign" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_assign" "', argument " "2"" of type '" "std::vector< double >::size_type""'"); } arg2 = static_cast< std::vector< double >::size_type >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble_assign" "', argument " "3"" of type '" "std::vector< double >::value_type""'"); } temp3 = static_cast< std::vector< double >::value_type >(val3); arg3 = &temp3; { try { (arg1)->assign(arg2,(std::vector< double >::value_type const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_assign: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_assign" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::size_type arg2 ; std::vector< double >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; std::vector< double >::value_type temp3 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_resize" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'"); } arg2 = static_cast< std::vector< double >::size_type >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble_resize" "', argument " "3"" of type '" "std::vector< double >::value_type""'"); } temp3 = static_cast< std::vector< double >::value_type >(val3); arg3 = &temp3; { try { (arg1)->resize(arg2,(std::vector< double >::value_type const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_resize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_resize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_resize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::resize(std::vector< double >::size_type)\n" " std::vector< double >::resize(std::vector< double >::size_type,std::vector< double >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::iterator arg2 ; std::vector< double >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; std::vector< double >::value_type temp3 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< double >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:vectordouble_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_insert" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } } ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble_insert" "', argument " "3"" of type '" "std::vector< double >::value_type""'"); } temp3 = static_cast< std::vector< double >::value_type >(val3); arg3 = &temp3; { try { result = std_vector_Sl_double_Sg__insert__SWIG_0(arg1,arg2,(double const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_insert" ); } } resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::iterator arg2 ; std::vector< double >::size_type arg3 ; std::vector< double >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; std::vector< double >::value_type temp4 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:vectordouble_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_insert" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vectordouble_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vectordouble_insert" "', argument " "3"" of type '" "std::vector< double >::size_type""'"); } arg3 = static_cast< std::vector< double >::size_type >(val3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "vectordouble_insert" "', argument " "4"" of type '" "std::vector< double >::value_type""'"); } temp4 = static_cast< std::vector< double >::value_type >(val4); arg4 = &temp4; { try { std_vector_Sl_double_Sg__insert__SWIG_1(arg1,arg2,arg3,(double const &)*arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_insert: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_insert" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_vectordouble_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'vectordouble_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::value_type const &)\n" " std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::size_type,std::vector< double >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_vectordouble_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; std::vector< double >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:vectordouble_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_reserve" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vectordouble_reserve" "', argument " "2"" of type '" "std::vector< double >::size_type""'"); } arg2 = static_cast< std::vector< double >::size_type >(val2); { try { (arg1)->reserve(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_reserve: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_reserve" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_vectordouble_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< double >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:vectordouble_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vectordouble_capacity" "', argument " "1"" of type '" "std::vector< double > const *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { result = ((std::vector< double > const *)arg1)->capacity(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication vectordouble_capacity: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication vectordouble_capacity" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_vectordouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< double > *arg1 = (std::vector< double > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_vectordouble",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vectordouble" "', argument " "1"" of type '" "std::vector< double > *""'"); } arg1 = reinterpret_cast< std::vector< double > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_vectordouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_vectordouble" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *vectordouble_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Size< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkSize")) SWIG_fail; { try { result = (itk::Size< 2 > *)new itk::Size< 2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkSize" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Size< 2 > *arg1 = (itk::Size< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkSize" "', argument " "1"" of type '" "itk::Size< 2 > *""'"); } arg1 = reinterpret_cast< itk::Size< 2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkSize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkSize_Fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Size< 2 > *arg1 = (itk::Size< 2 > *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkSize_Fill",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__SizeT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkSize_Fill" "', argument " "1"" of type '" "itk::Size< 2 > *""'"); } arg1 = reinterpret_cast< itk::Size< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkSize_Fill" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (arg1)->Fill(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkSize_Fill: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkSize_Fill" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkSize_GetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Size< 2 > *arg1 = (itk::Size< 2 > *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::SizeValueType result; if (!PyArg_ParseTuple(args,(char *)"OO:itkSize_GetElement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__SizeT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkSize_GetElement" "', argument " "1"" of type '" "itk::Size< 2 > const *""'"); } arg1 = reinterpret_cast< itk::Size< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkSize_GetElement" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itk::SizeValueType)((itk::Size< 2 > const *)arg1)->GetElement(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkSize_GetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkSize_GetElement" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkSize_SetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Size< 2 > *arg1 = (itk::Size< 2 > *) 0 ; unsigned long arg2 ; itk::SizeValueType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkSize_SetElement",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__SizeT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkSize_SetElement" "', argument " "1"" of type '" "itk::Size< 2 > *""'"); } arg1 = reinterpret_cast< itk::Size< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkSize_SetElement" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkSize_SetElement" "', argument " "3"" of type '" "itk::SizeValueType""'"); } arg3 = static_cast< itk::SizeValueType >(val3); { try { (arg1)->SetElement(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkSize_SetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkSize_SetElement" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkSize_GetSizeDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned int result; if (!PyArg_ParseTuple(args,(char *)":itkSize_GetSizeDimension")) SWIG_fail; { try { result = (unsigned int)itk::Size< 2 >::SWIGTEMPLATEDISAMBIGUATOR GetSizeDimension(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkSize_GetSizeDimension: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkSize_GetSizeDimension" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkSize_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__SizeT_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkIndex")) SWIG_fail; { try { result = (itk::Index< 2 > *)new itk::Index< 2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkIndex" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__IndexT_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *arg1 = (itk::Index< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__IndexT_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkIndex" "', argument " "1"" of type '" "itk::Index< 2 > *""'"); } arg1 = reinterpret_cast< itk::Index< 2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkIndex" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIndex_Fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *arg1 = (itk::Index< 2 > *) 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:itkIndex_Fill",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__IndexT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIndex_Fill" "', argument " "1"" of type '" "itk::Index< 2 > *""'"); } arg1 = reinterpret_cast< itk::Index< 2 > * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkIndex_Fill" "', argument " "2"" of type '" "long""'"); } arg2 = static_cast< long >(val2); { try { (arg1)->Fill(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndex_Fill: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndex_Fill" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIndex_GetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *arg1 = (itk::Index< 2 > *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::IndexValueType result; if (!PyArg_ParseTuple(args,(char *)"OO:itkIndex_GetElement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__IndexT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIndex_GetElement" "', argument " "1"" of type '" "itk::Index< 2 > const *""'"); } arg1 = reinterpret_cast< itk::Index< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkIndex_GetElement" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itk::IndexValueType)((itk::Index< 2 > const *)arg1)->GetElement(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndex_GetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndex_GetElement" ); } } resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIndex_SetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *arg1 = (itk::Index< 2 > *) 0 ; unsigned long arg2 ; itk::IndexValueType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkIndex_SetElement",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__IndexT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIndex_SetElement" "', argument " "1"" of type '" "itk::Index< 2 > *""'"); } arg1 = reinterpret_cast< itk::Index< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkIndex_SetElement" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkIndex_SetElement" "', argument " "3"" of type '" "itk::IndexValueType""'"); } arg3 = static_cast< itk::IndexValueType >(val3); { try { (arg1)->SetElement(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndex_SetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndex_SetElement" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIndex_GetIndexDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned int result; if (!PyArg_ParseTuple(args,(char *)":itkIndex_GetIndexDimension")) SWIG_fail; { try { result = (unsigned int)itk::Index< 2 >::SWIGTEMPLATEDISAMBIGUATOR GetIndexDimension(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndex_GetIndexDimension: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndex_GetIndexDimension" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__IndexT_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkRegion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkRegion")) SWIG_fail; { try { result = (itk::ImageRegion< 2 > *)new itk::ImageRegion< 2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkRegion" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkRegion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Index< 2 > *arg1 = 0 ; itk::Size< 2 > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::ImageRegion< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_itkRegion",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itk__IndexT_2_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkRegion" "', argument " "1"" of type '" "itk::Index< 2 > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkRegion" "', argument " "1"" of type '" "itk::Index< 2 > const &""'"); } arg1 = reinterpret_cast< itk::Index< 2 > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itk__SizeT_2_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_itkRegion" "', argument " "2"" of type '" "itk::Size< 2 > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkRegion" "', argument " "2"" of type '" "itk::Size< 2 > const &""'"); } arg2 = reinterpret_cast< itk::Size< 2 > * >(argp2); { try { result = (itk::ImageRegion< 2 > *)new itk::ImageRegion< 2 >((itk::Index< 2 > const &)*arg1,(itk::Size< 2 > const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkRegion" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkRegion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkRegion__SWIG_0(self, args); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itk__IndexT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_itk__SizeT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkRegion__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkRegion'.\n" " Possible C/C++ prototypes are:\n" " itk::ImageRegion< 2 >::ImageRegion()\n" " itk::ImageRegion< 2 >::ImageRegion(itk::Index< 2 > const &,itk::Size< 2 > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkRegion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkRegion" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkRegion" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; itk::Index< 2 > *arg2 = 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:itkRegion_SetIndex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_SetIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itk__IndexT_2_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkRegion_SetIndex" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkRegion_SetIndex" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } arg2 = reinterpret_cast< itk::Index< 2 > * >(argp2); { try { (arg1)->SetIndex((itk::Index< 2 > const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_SetIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_SetIndex" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; itk::Size< 2 > *arg2 = 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:itkRegion_SetSize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_SetSize" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itk__SizeT_2_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkRegion_SetSize" "', argument " "2"" of type '" "itk::Size< 2 > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkRegion_SetSize" "', argument " "2"" of type '" "itk::Size< 2 > const &""'"); } arg2 = reinterpret_cast< itk::Size< 2 > * >(argp2); { try { (arg1)->SetSize((itk::Size< 2 > const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_SetSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_SetSize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetUpperIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; itk::Index< 2 > *arg2 = 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:itkRegion_SetUpperIndex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_SetUpperIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itk__IndexT_2_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkRegion_SetUpperIndex" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkRegion_SetUpperIndex" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } arg2 = reinterpret_cast< itk::Index< 2 > * >(argp2); { try { (arg1)->SetUpperIndex((itk::Index< 2 > const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_SetUpperIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_SetUpperIndex" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_GetUpperIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Index< 2 > result; if (!PyArg_ParseTuple(args,(char *)"O:itkRegion_GetUpperIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_GetUpperIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); { try { result = ((itk::ImageRegion< 2 > const *)arg1)->GetUpperIndex(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_GetUpperIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_GetUpperIndex" ); } } resultobj = SWIG_NewPointerObj((new itk::Index< 2 >(static_cast< const itk::Index< 2 >& >(result))), SWIGTYPE_p_itk__IndexT_2_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_GetIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Index< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkRegion_GetIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_GetIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); { try { result = (itk::Index< 2 > *) &((itk::ImageRegion< 2 > const *)arg1)->GetIndex(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_GetIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_GetIndex" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__IndexT_2_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_GetSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Size< 2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkRegion_GetSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_GetSize" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); { try { result = (itk::Size< 2 > *) &((itk::ImageRegion< 2 > const *)arg1)->GetSize(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_GetSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_GetSize" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__SizeT_2_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_IsInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; itk::Index< 2 > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkRegion_IsInside",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_IsInside" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itk__IndexT_2_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkRegion_IsInside" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkRegion_IsInside" "', argument " "2"" of type '" "itk::Index< 2 > const &""'"); } arg2 = reinterpret_cast< itk::Index< 2 > * >(argp2); { try { result = (bool)((itk::ImageRegion< 2 > const *)arg1)->IsInside((itk::Index< 2 > const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_IsInside: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_IsInside" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; unsigned int arg2 ; itk::SizeValueType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkRegion_SetSize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_SetSize" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkRegion_SetSize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkRegion_SetSize" "', argument " "3"" of type '" "itk::SizeValueType""'"); } arg3 = static_cast< itk::SizeValueType >(val3); { try { (arg1)->SetSize(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_SetSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_SetSize" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetSize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_itk__SizeT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkRegion_SetSize__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_itkRegion_SetSize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkRegion_SetSize'.\n" " Possible C/C++ prototypes are:\n" " itk::ImageRegion< 2 >::SetSize(itk::Size< 2 > const &)\n" " itk::ImageRegion< 2 >::SetSize(unsigned int,itk::SizeValueType)\n"); return 0; } SWIGINTERN PyObject *_wrap_itkRegion_GetSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::SizeValueType result; if (!PyArg_ParseTuple(args,(char *)"OO:itkRegion_GetSize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_GetSize" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkRegion_GetSize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (itk::SizeValueType)((itk::ImageRegion< 2 > const *)arg1)->GetSize(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_GetSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_GetSize" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_GetSize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkRegion_GetSize__SWIG_0(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_itkRegion_GetSize__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkRegion_GetSize'.\n" " Possible C/C++ prototypes are:\n" " itk::ImageRegion< 2 >::GetSize() const\n" " itk::ImageRegion< 2 >::GetSize(unsigned int) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkRegion_SetIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; unsigned int arg2 ; itk::IndexValueType arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkRegion_SetIndex",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_SetIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkRegion_SetIndex" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkRegion_SetIndex" "', argument " "3"" of type '" "itk::IndexValueType""'"); } arg3 = static_cast< itk::IndexValueType >(val3); { try { (arg1)->SetIndex(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_SetIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_SetIndex" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_SetIndex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_itk__IndexT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkRegion_SetIndex__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_itkRegion_SetIndex__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkRegion_SetIndex'.\n" " Possible C/C++ prototypes are:\n" " itk::ImageRegion< 2 >::SetIndex(itk::Index< 2 > const &)\n" " itk::ImageRegion< 2 >::SetIndex(unsigned int,itk::IndexValueType)\n"); return 0; } SWIGINTERN PyObject *_wrap_itkRegion_GetIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::ImageRegion< 2 > *arg1 = (itk::ImageRegion< 2 > *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::IndexValueType result; if (!PyArg_ParseTuple(args,(char *)"OO:itkRegion_GetIndex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkRegion_GetIndex" "', argument " "1"" of type '" "itk::ImageRegion< 2 > const *""'"); } arg1 = reinterpret_cast< itk::ImageRegion< 2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkRegion_GetIndex" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (itk::IndexValueType)((itk::ImageRegion< 2 > const *)arg1)->GetIndex(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkRegion_GetIndex: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkRegion_GetIndex" ); } } resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkRegion_GetIndex(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkRegion_GetIndex__SWIG_0(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_itkRegion_GetIndex__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkRegion_GetIndex'.\n" " Possible C/C++ prototypes are:\n" " itk::ImageRegion< 2 >::GetIndex() const\n" " itk::ImageRegion< 2 >::GetIndex(unsigned int) const\n"); return 0; } SWIGINTERN PyObject *itkRegion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkFixedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::FixedArray< itk::SpacePrecisionType,2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkFixedArray")) SWIG_fail; { try { result = (itk::FixedArray< itk::SpacePrecisionType,2 > *)new itk::FixedArray< itk::SpacePrecisionType,2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkFixedArray: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkFixedArray" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__FixedArrayT_double_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkFixedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::FixedArray< itk::SpacePrecisionType,2 > *arg1 = (itk::FixedArray< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkFixedArray",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__FixedArrayT_double_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkFixedArray" "', argument " "1"" of type '" "itk::FixedArray< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::FixedArray< itk::SpacePrecisionType,2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkFixedArray: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkFixedArray" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkFixedArray_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::FixedArray< itk::SpacePrecisionType,2 > *arg1 = (itk::FixedArray< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:itkFixedArray_Size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__FixedArrayT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkFixedArray_Size" "', argument " "1"" of type '" "itk::FixedArray< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::FixedArray< itk::SpacePrecisionType,2 > * >(argp1); { try { result = (unsigned int)(arg1)->Size(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkFixedArray_Size: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkFixedArray_Size" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkFixedArray_SetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::FixedArray< itk::SpacePrecisionType,2 > *arg1 = (itk::FixedArray< itk::SpacePrecisionType,2 > *) 0 ; unsigned short arg2 ; double *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; double temp3 ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkFixedArray_SetElement",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__FixedArrayT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkFixedArray_SetElement" "', argument " "1"" of type '" "itk::FixedArray< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::FixedArray< itk::SpacePrecisionType,2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkFixedArray_SetElement" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkFixedArray_SetElement" "', argument " "3"" of type '" "double""'"); } temp3 = static_cast< double >(val3); arg3 = &temp3; { try { (arg1)->SetElement(arg2,(double const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkFixedArray_SetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkFixedArray_SetElement" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkFixedArray_GetElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::FixedArray< itk::SpacePrecisionType,2 > *arg1 = (itk::FixedArray< itk::SpacePrecisionType,2 > *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; double *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkFixedArray_GetElement",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__FixedArrayT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkFixedArray_GetElement" "', argument " "1"" of type '" "itk::FixedArray< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::FixedArray< itk::SpacePrecisionType,2 > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkFixedArray_GetElement" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { try { result = (double *) &(arg1)->GetElement(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkFixedArray_GetElement: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkFixedArray_GetElement" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkFixedArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__FixedArrayT_double_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Vector< itk::SpacePrecisionType,2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkVector")) SWIG_fail; { try { result = (itk::Vector< itk::SpacePrecisionType,2 > *)new itk::Vector< itk::SpacePrecisionType,2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkVector" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Vector< itk::SpacePrecisionType,2 > *arg1 = (itk::Vector< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkVector",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkVector" "', argument " "1"" of type '" "itk::Vector< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkVector" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkVector_GetNorm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Vector< itk::SpacePrecisionType,2 > *arg1 = (itk::Vector< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Vector< double,2 >::RealValueType result; if (!PyArg_ParseTuple(args,(char *)"O:itkVector_GetNorm",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__VectorT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkVector_GetNorm" "', argument " "1"" of type '" "itk::Vector< itk::SpacePrecisionType,2 > const *""'"); } arg1 = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp1); { try { result = ((itk::Vector< itk::SpacePrecisionType,2 > const *)arg1)->GetNorm(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkVector_GetNorm: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkVector_GetNorm" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< double,2 >::RealValueType(static_cast< const itk::Vector< double,2 >::RealValueType& >(result))), SWIGTYPE_p_NumericTraitsT_double_t__RealType, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkVector_GetSquaredNorm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Vector< itk::SpacePrecisionType,2 > *arg1 = (itk::Vector< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Vector< double,2 >::RealValueType result; if (!PyArg_ParseTuple(args,(char *)"O:itkVector_GetSquaredNorm",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__VectorT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkVector_GetSquaredNorm" "', argument " "1"" of type '" "itk::Vector< itk::SpacePrecisionType,2 > const *""'"); } arg1 = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp1); { try { result = ((itk::Vector< itk::SpacePrecisionType,2 > const *)arg1)->GetSquaredNorm(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkVector_GetSquaredNorm: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkVector_GetSquaredNorm" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< double,2 >::RealValueType(static_cast< const itk::Vector< double,2 >::RealValueType& >(result))), SWIGTYPE_p_NumericTraitsT_double_t__RealType, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkVector_Normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Vector< itk::SpacePrecisionType,2 > *arg1 = (itk::Vector< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itk::Vector< double,2 >::RealValueType result; if (!PyArg_ParseTuple(args,(char *)"O:itkVector_Normalize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__VectorT_double_2_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkVector_Normalize" "', argument " "1"" of type '" "itk::Vector< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp1); { try { result = (arg1)->Normalize(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkVector_Normalize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkVector_Normalize" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< double,2 >::RealValueType(static_cast< const itk::Vector< double,2 >::RealValueType& >(result))), SWIGTYPE_p_NumericTraitsT_double_t__RealType, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Point< itk::SpacePrecisionType,2 > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkPoint")) SWIG_fail; { try { result = (itk::Point< itk::SpacePrecisionType,2 > *)new itk::Point< itk::SpacePrecisionType,2 >(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPoint: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPoint" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itk::Point< itk::SpacePrecisionType,2 > *arg1 = (itk::Point< itk::SpacePrecisionType,2 > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkPoint",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkPoint" "', argument " "1"" of type '" "itk::Point< itk::SpacePrecisionType,2 > *""'"); } arg1 = reinterpret_cast< itk::Point< itk::SpacePrecisionType,2 > * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkPoint: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkPoint" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itk__PointT_double_2_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkIndent_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIndent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":itkIndent_New")) SWIG_fail; { try { result = (itkIndent *)itkIndent::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndent_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndent_New" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkIndent, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkIndent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; itkIndent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkIndent",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_itkIndent" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); { try { result = (itkIndent *)new itkIndent(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkIndent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkIndent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkIndent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkIndent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIndent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkIndent")) SWIG_fail; { try { result = (itkIndent *)new itkIndent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkIndent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkIndent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkIndent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkIndent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkIndent__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_itkIndent__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkIndent'.\n" " Possible C/C++ prototypes are:\n" " itkIndent::itkIndent(int)\n" " itkIndent::itkIndent()\n"); return 0; } SWIGINTERN PyObject *_wrap_itkIndent_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":itkIndent_GetNameOfClass")) SWIG_fail; { try { result = (char *)itkIndent::GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndent_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndent_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIndent_GetNextIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIndent *arg1 = (itkIndent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkIndent result; if (!PyArg_ParseTuple(args,(char *)"O:itkIndent_GetNextIndent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIndent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIndent_GetNextIndent" "', argument " "1"" of type '" "itkIndent *""'"); } arg1 = reinterpret_cast< itkIndent * >(argp1); { try { result = (arg1)->GetNextIndent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIndent_GetNextIndent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIndent_GetNextIndent" ); } } resultobj = SWIG_NewPointerObj((new itkIndent(static_cast< const itkIndent& >(result))), SWIGTYPE_p_itkIndent, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIndent *arg1 = (itkIndent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkIndent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIndent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkIndent" "', argument " "1"" of type '" "itkIndent *""'"); } arg1 = reinterpret_cast< itkIndent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkIndent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkIndent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkIndent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkIndent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkLightObject_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)":itkLightObject_New")) SWIG_fail; { try { result = itkLightObject::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_New" ); } } resultobj = SWIG_NewPointerObj((new itkLightObject_Pointer(static_cast< const itkLightObject_Pointer& >(result))), SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_GetNameOfClass" "', argument " "1"" of type '" "itkLightObject const *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); { try { result = (char *)((itkLightObject const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkLightObject_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Print" "', argument " "1"" of type '" "itkLightObject const *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkLightObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkLightObject_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { ((itkLightObject const *)arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; std::ostream *arg2 = 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:itkLightObject_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Print" "', argument " "1"" of type '" "itkLightObject const *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkLightObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((itkLightObject const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkLightObject, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkLightObject_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkLightObject, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkLightObject_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkLightObject_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkLightObject_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":itkLightObject_BreakOnError")) SWIG_fail; { try { itkLightObject::BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_ToString" "', argument " "1"" of type '" "itkLightObject *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); result = itkLightObject_ToString(arg1); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkLightObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkLightObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkLightObject" "', argument " "1"" of type '" "itkLightObject *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); { try { delete_itkLightObject(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkLightObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkLightObject" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkLightObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkLightObject, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkLightObject_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkLightObject_Pointer")) SWIG_fail; { try { result = (itkLightObject_Pointer *)new itkLightObject_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkLightObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkLightObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkLightObject_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkLightObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkLightObject_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkLightObject_Pointer" "', argument " "1"" of type '" "itkLightObject_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkLightObject_Pointer" "', argument " "1"" of type '" "itkLightObject_Pointer const &""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (itkLightObject_Pointer *)new itkLightObject_Pointer((itkLightObject_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkLightObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkLightObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkLightObject_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject *arg1 = (itkLightObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkLightObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkLightObject_Pointer" "', argument " "1"" of type '" "itkLightObject *""'"); } arg1 = reinterpret_cast< itkLightObject * >(argp1); { try { result = (itkLightObject_Pointer *)new itkLightObject_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkLightObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkLightObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkLightObject_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkLightObject_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkLightObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkLightObject_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkLightObject, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkLightObject_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkLightObject_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject_Pointer::itkLightObject_Pointer()\n" " itkLightObject_Pointer::itkLightObject_Pointer(itkLightObject_Pointer const &)\n" " itkLightObject_Pointer::itkLightObject_Pointer(itkLightObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkLightObject_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkLightObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkLightObject_Pointer" "', argument " "1"" of type '" "itkLightObject_Pointer *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkLightObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkLightObject_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer___deref__" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (itkLightObject *)((itkLightObject_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkLightObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_IsNotNull" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (bool)((itkLightObject_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_IsNull" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (bool)((itkLightObject_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_GetPointer" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (itkLightObject *)((itkLightObject_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkLightObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_New" "', argument " "1"" of type '" "itkLightObject_Pointer *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_New" ); } } resultobj = SWIG_NewPointerObj((new itkLightObject_Pointer(static_cast< const itkLightObject_Pointer& >(result))), SWIGTYPE_p_itkLightObject_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkLightObject_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_Print" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkLightObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkLightObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; std::ostream *arg2 = 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:itkLightObject_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_Print" "', argument " "1"" of type '" "itkLightObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkLightObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkLightObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkLightObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkLightObject_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkLightObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkLightObject_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkLightObject_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_BreakOnError" "', argument " "1"" of type '" "itkLightObject_Pointer *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkLightObject_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkLightObject_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkLightObject_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkLightObject_Pointer *arg1 = (itkLightObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkLightObject_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkLightObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkLightObject_Pointer_ToString" "', argument " "1"" of type '" "itkLightObject_Pointer *""'"); } arg1 = reinterpret_cast< itkLightObject_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkLightObject_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkLightObject_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkObject_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)":itkObject_New")) SWIG_fail; { try { result = itkObject::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_New" ); } } resultobj = SWIG_NewPointerObj((new itkObject_Pointer(static_cast< const itkObject_Pointer& >(result))), SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_GetNameOfClass" "', argument " "1"" of type '" "itkObject const *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); { try { result = (char *)((itkObject const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObject_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_AddObserver" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObject_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_GetCommand" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObject_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_GetCommand" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; itkEventObject *arg2 = 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:itkObject_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_InvokeEvent" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_RemoveObserver" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObject_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_RemoveAllObservers" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); { try { (arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_HasObserver" "', argument " "1"" of type '" "itkObject const *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkObject const *)arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_GetMetaDataDictionary" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); { try { result = (itkMetaDataDictionary *) &(arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; itkMetaDataDictionary *arg2 = 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:itkObject_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_SetMetaDataDictionary" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkObject" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); { try { delete_itkObject(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkObject" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkObject, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkObject_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkObject_Pointer")) SWIG_fail; { try { result = (itkObject_Pointer *)new itkObject_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObject_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkObject_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkObject_Pointer" "', argument " "1"" of type '" "itkObject_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkObject_Pointer" "', argument " "1"" of type '" "itkObject_Pointer const &""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (itkObject_Pointer *)new itkObject_Pointer((itkObject_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObject_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject *arg1 = (itkObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkObject_Pointer" "', argument " "1"" of type '" "itkObject *""'"); } arg1 = reinterpret_cast< itkObject * >(argp1); { try { result = (itkObject_Pointer *)new itkObject_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObject_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkObject_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkObject_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkObject, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkObject_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkObject_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkObject_Pointer::itkObject_Pointer()\n" " itkObject_Pointer::itkObject_Pointer(itkObject_Pointer const &)\n" " itkObject_Pointer::itkObject_Pointer(itkObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkObject_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkObject_Pointer" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkObject_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer___deref__" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (itkObject *)((itkObject_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_IsNotNull" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (bool)((itkObject_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_IsNull" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (bool)((itkObject_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_GetPointer" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (itkObject *)((itkObject_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_New" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_New" ); } } resultobj = SWIG_NewPointerObj((new itkObject_Pointer(static_cast< const itkObject_Pointer& >(result))), SWIGTYPE_p_itkObject_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObject_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_AddObserver" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObject_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_GetCommand" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObject_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_GetCommand" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; itkEventObject *arg2 = 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:itkObject_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_InvokeEvent" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_RemoveObserver" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObject_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkObject_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_HasObserver" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:itkObject_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObject_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_Print" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; std::ostream *arg2 = 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:itkObject_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_Print" "', argument " "1"" of type '" "itkObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkObject_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkObject_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkObject_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_BreakOnError" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObject_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObject_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObject_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObject_Pointer *arg1 = (itkObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkObject_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObject_Pointer_ToString" "', argument " "1"" of type '" "itkObject_Pointer *""'"); } arg1 = reinterpret_cast< itkObject_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkObject_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkObject_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkProcessObject_GetProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject *arg1 = (itkProcessObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_GetProgress",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_GetProgress" "', argument " "1"" of type '" "itkProcessObject *""'"); } arg1 = reinterpret_cast< itkProcessObject * >(argp1); { try { result = (float *) &(arg1)->GetProgress(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_GetProgress: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_GetProgress" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkProcessObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject *arg1 = (itkProcessObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkProcessObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkProcessObject" "', argument " "1"" of type '" "itkProcessObject *""'"); } arg1 = reinterpret_cast< itkProcessObject * >(argp1); { try { delete_itkProcessObject(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkProcessObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkProcessObject" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkProcessObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkProcessObject, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkProcessObject_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkProcessObject_Pointer")) SWIG_fail; { try { result = (itkProcessObject_Pointer *)new itkProcessObject_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkProcessObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkProcessObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProcessObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkProcessObject_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkProcessObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkProcessObject_Pointer" "', argument " "1"" of type '" "itkProcessObject_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkProcessObject_Pointer" "', argument " "1"" of type '" "itkProcessObject_Pointer const &""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (itkProcessObject_Pointer *)new itkProcessObject_Pointer((itkProcessObject_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkProcessObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkProcessObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProcessObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkProcessObject_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject *arg1 = (itkProcessObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkProcessObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkProcessObject_Pointer" "', argument " "1"" of type '" "itkProcessObject *""'"); } arg1 = reinterpret_cast< itkProcessObject * >(argp1); { try { result = (itkProcessObject_Pointer *)new itkProcessObject_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkProcessObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkProcessObject_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProcessObject_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkProcessObject_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkProcessObject_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkProcessObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkProcessObject_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkProcessObject, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkProcessObject_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkProcessObject_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkProcessObject_Pointer::itkProcessObject_Pointer()\n" " itkProcessObject_Pointer::itkProcessObject_Pointer(itkProcessObject_Pointer const &)\n" " itkProcessObject_Pointer::itkProcessObject_Pointer(itkProcessObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkProcessObject_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkProcessObject_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkProcessObject_Pointer" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkProcessObject_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkProcessObject_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer___deref__" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (itkProcessObject *)((itkProcessObject_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProcessObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_IsNotNull" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (bool)((itkProcessObject_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_IsNull" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (bool)((itkProcessObject_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_GetPointer" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (itkProcessObject *)((itkProcessObject_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProcessObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_GetProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; float *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_GetProgress",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_GetProgress" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (float *) &(*arg1)->GetProgress(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_GetProgress: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_GetProgress" ); } } { resultobj = PyFloat_FromDouble( *result ); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_New" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_New" ); } } { // get the raw pointer from the smart pointer itkObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkProcessObject_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_AddObserver" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkProcessObject_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkProcessObject_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_GetCommand" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkProcessObject_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_GetCommand" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; itkEventObject *arg2 = 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:itkProcessObject_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_InvokeEvent" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkProcessObject_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_RemoveObserver" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkProcessObject_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkProcessObject_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_HasObserver" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:itkProcessObject_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkProcessObject_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_Print" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkProcessObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; std::ostream *arg2 = 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:itkProcessObject_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_Print" "', argument " "1"" of type '" "itkProcessObject_Pointer const *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProcessObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkProcessObject_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkProcessObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkProcessObject_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkProcessObject_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkProcessObject_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkProcessObject_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_BreakOnError" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProcessObject_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProcessObject_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProcessObject_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProcessObject_Pointer *arg1 = (itkProcessObject_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkProcessObject_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProcessObject_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProcessObject_Pointer_ToString" "', argument " "1"" of type '" "itkProcessObject_Pointer *""'"); } arg1 = reinterpret_cast< itkProcessObject_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkProcessObject_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkProcessObject_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetNameOfClass" "', argument " "1"" of type '" "itkObjectFactoryBase const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (char *)((itkObjectFactoryBase const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_CreateInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; itkLightObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_CreateInstance",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_CreateInstance" "', argument " "1"" of type '" "char const *""'"); } arg1 = reinterpret_cast< char * >(buf1); { try { result = itkObjectFactoryBase::CreateInstance((char const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_CreateInstance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_CreateInstance" ); } } { // get the raw pointer from the smart pointer itkLightObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkLightObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_CreateAllInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< itkLightObject_Pointer > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_CreateAllInstance",&obj0)) SWIG_fail; res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_CreateAllInstance" "', argument " "1"" of type '" "char const *""'"); } arg1 = reinterpret_cast< char * >(buf1); { try { result = itkObjectFactoryBase::CreateAllInstance((char const *)arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_CreateAllInstance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_CreateAllInstance" ); } } resultobj = SWIG_NewPointerObj((new std::list< itkLightObject_Pointer >(static_cast< const std::list< itkLightObject_Pointer >& >(result))), SWIGTYPE_p_std__listT_itkLightObject_Pointer_t, SWIG_POINTER_OWN | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_ReHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":itkObjectFactoryBase_ReHash")) SWIG_fail; { try { itkObjectFactoryBase::ReHash(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_ReHash: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_ReHash" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_RegisterFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_RegisterFactory",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_RegisterFactory" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { itkObjectFactoryBase::RegisterFactory(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_RegisterFactory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_RegisterFactory" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_UnRegisterFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_UnRegisterFactory",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_UnRegisterFactory" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { itkObjectFactoryBase::UnRegisterFactory(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_UnRegisterFactory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_UnRegisterFactory" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_UnRegisterAllFactories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":itkObjectFactoryBase_UnRegisterAllFactories")) SWIG_fail; { try { itkObjectFactoryBase::UnRegisterAllFactories(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_UnRegisterAllFactories: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_UnRegisterAllFactories" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetRegisteredFactories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; SwigValueWrapper< std::list< itkObjectFactoryBase * > > result; if (!PyArg_ParseTuple(args,(char *)":itkObjectFactoryBase_GetRegisteredFactories")) SWIG_fail; { try { result = itkObjectFactoryBase::GetRegisteredFactories(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetRegisteredFactories: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetRegisteredFactories" ); } } resultobj = SWIG_NewPointerObj((new std::list< itkObjectFactoryBase * >(static_cast< const std::list< itkObjectFactoryBase * >& >(result))), SWIGTYPE_p_std__listT_itkObjectFactoryBase_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetITKSourceVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetITKSourceVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetITKSourceVersion" "', argument " "1"" of type '" "itkObjectFactoryBase const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (char *)((itkObjectFactoryBase const *)arg1)->GetITKSourceVersion(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetITKSourceVersion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetITKSourceVersion" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetDescription" "', argument " "1"" of type '" "itkObjectFactoryBase const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (char *)((itkObjectFactoryBase const *)arg1)->GetDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetClassOverrideNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetClassOverrideNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetClassOverrideNames" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (arg1)->GetClassOverrideNames(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideNames" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetClassOverrideWithNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetClassOverrideWithNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetClassOverrideWithNames" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (arg1)->GetClassOverrideWithNames(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideWithNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideWithNames" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetClassOverrideDescriptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetClassOverrideDescriptions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetClassOverrideDescriptions" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (arg1)->GetClassOverrideDescriptions(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideDescriptions: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetClassOverrideDescriptions" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetEnableFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< bool > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetEnableFlags",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetEnableFlags" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (arg1)->GetEnableFlags(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetEnableFlags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetEnableFlags" ); } } resultobj = SWIG_NewPointerObj((new std::list< bool >(static_cast< const std::list< bool >& >(result))), SWIGTYPE_p_std__listT_bool_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_SetEnableFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; bool arg2 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool 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 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:itkObjectFactoryBase_SetEnableFlag",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_SetEnableFlag" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObjectFactoryBase_SetEnableFlag" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObjectFactoryBase_SetEnableFlag" "', 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 '" "itkObjectFactoryBase_SetEnableFlag" "', argument " "4"" of type '" "char const *""'"); } arg4 = reinterpret_cast< char * >(buf4); { try { (arg1)->SetEnableFlag(arg2,(char const *)arg3,(char const *)arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_SetEnableFlag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_SetEnableFlag" ); } } resultobj = SWIG_Py_Void(); 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_itkObjectFactoryBase_GetEnableFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 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 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObjectFactoryBase_GetEnableFlag",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetEnableFlag" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_GetEnableFlag" "', 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 '" "itkObjectFactoryBase_GetEnableFlag" "', argument " "3"" of type '" "char const *""'"); } arg3 = reinterpret_cast< char * >(buf3); { try { result = (bool)(arg1)->GetEnableFlag((char const *)arg2,(char const *)arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetEnableFlag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetEnableFlag" ); } } resultobj = SWIG_From_bool(static_cast< bool >(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_itkObjectFactoryBase_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 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:itkObjectFactoryBase_Disable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Disable" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Disable" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->Disable((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Disable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Disable" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_GetLibraryPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_GetLibraryPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_GetLibraryPath" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (char *)(arg1)->GetLibraryPath(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_GetLibraryPath: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_GetLibraryPath" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkObjectFactoryBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkObjectFactoryBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkObjectFactoryBase" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { delete_itkObjectFactoryBase(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkObjectFactoryBase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkObjectFactoryBase" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkObjectFactoryBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkObjectFactoryBase, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkObjectFactoryBase_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkObjectFactoryBase_Pointer")) SWIG_fail; { try { result = (itkObjectFactoryBase_Pointer *)new itkObjectFactoryBase_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObjectFactoryBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObjectFactoryBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObjectFactoryBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObjectFactoryBase_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObjectFactoryBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkObjectFactoryBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkObjectFactoryBase_Pointer" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkObjectFactoryBase_Pointer" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const &""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (itkObjectFactoryBase_Pointer *)new itkObjectFactoryBase_Pointer((itkObjectFactoryBase_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObjectFactoryBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObjectFactoryBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObjectFactoryBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObjectFactoryBase_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase *arg1 = (itkObjectFactoryBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObjectFactoryBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkObjectFactoryBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkObjectFactoryBase_Pointer" "', argument " "1"" of type '" "itkObjectFactoryBase *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase * >(argp1); { try { result = (itkObjectFactoryBase_Pointer *)new itkObjectFactoryBase_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkObjectFactoryBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkObjectFactoryBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObjectFactoryBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkObjectFactoryBase_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkObjectFactoryBase_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkObjectFactoryBase_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkObjectFactoryBase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkObjectFactoryBase_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkObjectFactoryBase_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkObjectFactoryBase_Pointer::itkObjectFactoryBase_Pointer()\n" " itkObjectFactoryBase_Pointer::itkObjectFactoryBase_Pointer(itkObjectFactoryBase_Pointer const &)\n" " itkObjectFactoryBase_Pointer::itkObjectFactoryBase_Pointer(itkObjectFactoryBase *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkObjectFactoryBase_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkObjectFactoryBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkObjectFactoryBase_Pointer" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkObjectFactoryBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkObjectFactoryBase_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObjectFactoryBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer___deref__" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (itkObjectFactoryBase *)((itkObjectFactoryBase_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_IsNotNull" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (bool)((itkObjectFactoryBase_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_IsNull" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (bool)((itkObjectFactoryBase_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObjectFactoryBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetPointer" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (itkObjectFactoryBase *)((itkObjectFactoryBase_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_CreateInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 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 ; itkLightObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"OO:itkObjectFactoryBase_Pointer_CreateInstance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_CreateInstance" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_CreateInstance" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { result = (*arg1)->CreateInstance((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_CreateInstance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_CreateInstance" ); } } { // get the raw pointer from the smart pointer itkLightObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkLightObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_CreateAllInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 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 ; SwigValueWrapper< std::list< itkLightObject_Pointer > > result; if (!PyArg_ParseTuple(args,(char *)"OO:itkObjectFactoryBase_Pointer_CreateAllInstance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_CreateAllInstance" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_CreateAllInstance" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { result = (*arg1)->CreateAllInstance((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_CreateAllInstance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_CreateAllInstance" ); } } resultobj = SWIG_NewPointerObj((new std::list< itkLightObject_Pointer >(static_cast< const std::list< itkLightObject_Pointer >& >(result))), SWIGTYPE_p_std__listT_itkLightObject_Pointer_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_ReHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_ReHash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_ReHash" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { (*arg1)->ReHash(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_ReHash: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_ReHash" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_RegisterFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkObjectFactoryBase *arg2 = (itkObjectFactoryBase *) 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:itkObjectFactoryBase_Pointer_RegisterFactory",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_RegisterFactory" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_RegisterFactory" "', argument " "2"" of type '" "itkObjectFactoryBase *""'"); } arg2 = reinterpret_cast< itkObjectFactoryBase * >(argp2); { try { (*arg1)->RegisterFactory(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_RegisterFactory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_RegisterFactory" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_UnRegisterFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkObjectFactoryBase *arg2 = (itkObjectFactoryBase *) 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:itkObjectFactoryBase_Pointer_UnRegisterFactory",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_UnRegisterFactory" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObjectFactoryBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_UnRegisterFactory" "', argument " "2"" of type '" "itkObjectFactoryBase *""'"); } arg2 = reinterpret_cast< itkObjectFactoryBase * >(argp2); { try { (*arg1)->UnRegisterFactory(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_UnRegisterFactory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_UnRegisterFactory" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_UnRegisterAllFactories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_UnRegisterAllFactories",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_UnRegisterAllFactories" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { (*arg1)->UnRegisterAllFactories(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_UnRegisterAllFactories: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_UnRegisterAllFactories" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetRegisteredFactories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< itkObjectFactoryBase * > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetRegisteredFactories",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetRegisteredFactories" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->GetRegisteredFactories(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetRegisteredFactories: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetRegisteredFactories" ); } } resultobj = SWIG_NewPointerObj((new std::list< itkObjectFactoryBase * >(static_cast< const std::list< itkObjectFactoryBase * >& >(result))), SWIGTYPE_p_std__listT_itkObjectFactoryBase_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetITKSourceVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetITKSourceVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetITKSourceVersion" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetITKSourceVersion(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetITKSourceVersion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetITKSourceVersion" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetDescription" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetClassOverrideNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetClassOverrideNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetClassOverrideNames" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->GetClassOverrideNames(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideNames" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetClassOverrideWithNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetClassOverrideWithNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetClassOverrideWithNames" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->GetClassOverrideWithNames(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideWithNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideWithNames" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::list< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->GetClassOverrideDescriptions(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions" ); } } resultobj = SWIG_NewPointerObj((new std::list< std::string >(static_cast< const std::list< std::string >& >(result))), SWIGTYPE_p_std__listT_std__string_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetEnableFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< bool > result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetEnableFlags",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetEnableFlags" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->GetEnableFlags(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetEnableFlags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetEnableFlags" ); } } resultobj = SWIG_NewPointerObj((new std::list< bool >(static_cast< const std::list< bool >& >(result))), SWIGTYPE_p_std__listT_bool_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_SetEnableFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; bool arg2 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool 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 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:itkObjectFactoryBase_Pointer_SetEnableFlag",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_SetEnableFlag" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObjectFactoryBase_Pointer_SetEnableFlag" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObjectFactoryBase_Pointer_SetEnableFlag" "', 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 '" "itkObjectFactoryBase_Pointer_SetEnableFlag" "', argument " "4"" of type '" "char const *""'"); } arg4 = reinterpret_cast< char * >(buf4); { try { (*arg1)->SetEnableFlag(arg2,(char const *)arg3,(char const *)arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_SetEnableFlag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_SetEnableFlag" ); } } resultobj = SWIG_Py_Void(); 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_itkObjectFactoryBase_Pointer_GetEnableFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 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 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObjectFactoryBase_Pointer_GetEnableFlag",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetEnableFlag" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_GetEnableFlag" "', 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 '" "itkObjectFactoryBase_Pointer_GetEnableFlag" "', argument " "3"" of type '" "char const *""'"); } arg3 = reinterpret_cast< char * >(buf3); { try { result = (bool)(*arg1)->GetEnableFlag((char const *)arg2,(char const *)arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetEnableFlag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetEnableFlag" ); } } resultobj = SWIG_From_bool(static_cast< bool >(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_itkObjectFactoryBase_Pointer_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 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:itkObjectFactoryBase_Pointer_Disable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_Disable" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_Disable" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->Disable((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_Disable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_Disable" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetLibraryPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetLibraryPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetLibraryPath" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetLibraryPath(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetLibraryPath: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetLibraryPath" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_New" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_New" ); } } { // get the raw pointer from the smart pointer itkObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObjectFactoryBase_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_AddObserver" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObjectFactoryBase_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObjectFactoryBase_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetCommand" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObjectFactoryBase_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetCommand" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkEventObject *arg2 = 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:itkObjectFactoryBase_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_InvokeEvent" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkObjectFactoryBase_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_RemoveObserver" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkObjectFactoryBase_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkObjectFactoryBase_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_HasObserver" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:itkObjectFactoryBase_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkObjectFactoryBase_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; std::ostream *arg2 = 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:itkObjectFactoryBase_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkObjectFactoryBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkObjectFactoryBase_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkObjectFactoryBase_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkObjectFactoryBase_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkObjectFactoryBase_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_BreakOnError" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkObjectFactoryBase_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkObjectFactoryBase_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkObjectFactoryBase_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkObjectFactoryBase_Pointer *arg1 = (itkObjectFactoryBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkObjectFactoryBase_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkObjectFactoryBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkObjectFactoryBase_Pointer_ToString" "', argument " "1"" of type '" "itkObjectFactoryBase_Pointer *""'"); } arg1 = reinterpret_cast< itkObjectFactoryBase_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkObjectFactoryBase_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkObjectFactoryBase_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_GetMetaDataObjectTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::type_info *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_GetMetaDataObjectTypeInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_GetMetaDataObjectTypeInfo" "', argument " "1"" of type '" "itkMetaDataObjectBase const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); { try { result = (std::type_info *) &((itkMetaDataObjectBase const *)arg1)->GetMetaDataObjectTypeInfo(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_GetMetaDataObjectTypeInfo: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_GetMetaDataObjectTypeInfo" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__type_info, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_GetMetaDataObjectTypeName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_GetMetaDataObjectTypeName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_GetMetaDataObjectTypeName" "', argument " "1"" of type '" "itkMetaDataObjectBase const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); { try { result = (char *)((itkMetaDataObjectBase const *)arg1)->GetMetaDataObjectTypeName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_GetMetaDataObjectTypeName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_GetMetaDataObjectTypeName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_GetNameOfClass" "', argument " "1"" of type '" "itkMetaDataObjectBase const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); { try { result = (char *)((itkMetaDataObjectBase const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; std::ostream *arg2 = 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:itkMetaDataObjectBase_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Print" "', argument " "1"" of type '" "itkMetaDataObjectBase const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataObjectBase_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataObjectBase_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((itkMetaDataObjectBase const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkMetaDataObjectBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkMetaDataObjectBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkMetaDataObjectBase" "', argument " "1"" of type '" "itkMetaDataObjectBase *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); { try { delete_itkMetaDataObjectBase(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkMetaDataObjectBase: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkMetaDataObjectBase" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkMetaDataObjectBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkMetaDataObjectBase, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkMetaDataObjectBase_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkMetaDataObjectBase_Pointer")) SWIG_fail; { try { result = (itkMetaDataObjectBase_Pointer *)new itkMetaDataObjectBase_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataObjectBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataObjectBase_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataObjectBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkMetaDataObjectBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkMetaDataObjectBase_Pointer" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkMetaDataObjectBase_Pointer" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const &""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (itkMetaDataObjectBase_Pointer *)new itkMetaDataObjectBase_Pointer((itkMetaDataObjectBase_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataObjectBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataObjectBase_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase *arg1 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataObjectBase_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkMetaDataObjectBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkMetaDataObjectBase_Pointer" "', argument " "1"" of type '" "itkMetaDataObjectBase *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase * >(argp1); { try { result = (itkMetaDataObjectBase_Pointer *)new itkMetaDataObjectBase_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkMetaDataObjectBase_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataObjectBase_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataObjectBase_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkMetaDataObjectBase_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkMetaDataObjectBase_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkMetaDataObjectBase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkMetaDataObjectBase_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkMetaDataObjectBase_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkMetaDataObjectBase_Pointer::itkMetaDataObjectBase_Pointer()\n" " itkMetaDataObjectBase_Pointer::itkMetaDataObjectBase_Pointer(itkMetaDataObjectBase_Pointer const &)\n" " itkMetaDataObjectBase_Pointer::itkMetaDataObjectBase_Pointer(itkMetaDataObjectBase *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkMetaDataObjectBase_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkMetaDataObjectBase_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkMetaDataObjectBase_Pointer" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkMetaDataObjectBase_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkMetaDataObjectBase_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataObjectBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer___deref__" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (itkMetaDataObjectBase *)((itkMetaDataObjectBase_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_IsNotNull" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (bool)((itkMetaDataObjectBase_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_IsNull" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (bool)((itkMetaDataObjectBase_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataObjectBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_GetPointer" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (itkMetaDataObjectBase *)((itkMetaDataObjectBase_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::type_info *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (std::type_info *) &(*arg1)->GetMetaDataObjectTypeInfo(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__type_info, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetMetaDataObjectTypeName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; std::ostream *arg2 = 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:itkMetaDataObjectBase_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_Print" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer const *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataObjectBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataObjectBase_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkLightObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_New" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_New" ); } } { // get the raw pointer from the smart pointer itkLightObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkLightObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_BreakOnError" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataObjectBase_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataObjectBase_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataObjectBase_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataObjectBase_Pointer *arg1 = (itkMetaDataObjectBase_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataObjectBase_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataObjectBase_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataObjectBase_Pointer_ToString" "', argument " "1"" of type '" "itkMetaDataObjectBase_Pointer *""'"); } arg1 = reinterpret_cast< itkMetaDataObjectBase_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkMetaDataObjectBase_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkMetaDataObjectBase_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::ostream *arg2 = 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:itkMetaDataDictionary_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_Print" "', argument " "1"" of type '" "itkMetaDataDictionary const *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((itkMetaDataDictionary const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataDictionary__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkMetaDataDictionary")) SWIG_fail; { try { result = (itkMetaDataDictionary *)new itkMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataDictionary__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkMetaDataDictionary" "', argument " "1"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkMetaDataDictionary" "', argument " "1"" of type '" "itkMetaDataDictionary const &""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { try { result = (itkMetaDataDictionary *)new itkMetaDataDictionary((itkMetaDataDictionary const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkMetaDataDictionary(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkMetaDataDictionary__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkMetaDataDictionary, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkMetaDataDictionary__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkMetaDataDictionary'.\n" " Possible C/C++ prototypes are:\n" " itkMetaDataDictionary::itkMetaDataDictionary()\n" " itkMetaDataDictionary::itkMetaDataDictionary(itkMetaDataDictionary const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkMetaDataDictionary" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:itkMetaDataDictionary_GetKeys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetKeys" "', argument " "1"" of type '" "itkMetaDataDictionary const *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { try { result = ((itkMetaDataDictionary const *)arg1)->GetKeys(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_HasKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_HasKey" "', argument " "1"" of type '" "itkMetaDataDictionary const *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_HasKey" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_HasKey" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (bool)((itkMetaDataDictionary const *)arg1)->HasKey((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_HasKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_HasKey" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkMetaDataObjectBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_Get",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_Get" "', argument " "1"" of type '" "itkMetaDataDictionary const *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_Get" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_Get" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (itkMetaDataObjectBase *)((itkMetaDataDictionary const *)arg1)->Get((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_Get: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_Get" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkMetaDataObjectBase, 1); if (result) { result->Register(); } } if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; itkMetaDataObjectBase *arg3 = (itkMetaDataObjectBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_Set",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_Set" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_Set" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_Set" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkMetaDataObjectBase, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_Set" "', argument " "3"" of type '" "itkMetaDataObjectBase *""'"); } arg3 = reinterpret_cast< itkMetaDataObjectBase * >(argp3); { try { (arg1)->Set((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_Set: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_Set" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetType" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetType" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetType" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (int)itkMetaDataDictionary_GetType(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetString" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetString" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetString" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetString(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetString" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetString" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetString" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetString" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetString" "', argument " "3"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetString" "', argument " "3"" of type '" "std::string const &""'"); } arg3 = ptr; } { try { itkMetaDataDictionary_SetString(arg1,(std::string const &)*arg2,(std::string const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetString" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetInt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetInt" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetInt" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetInt" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (unsigned int)itkMetaDataDictionary_GetInt(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetInt" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetInt",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetInt" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetInt" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetInt" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkMetaDataDictionary_SetInt" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { itkMetaDataDictionary_SetInt(arg1,(std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetInt" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetDouble",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetDouble" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetDouble" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetDouble" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (double)itkMetaDataDictionary_GetDouble(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetDouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetDouble" ); } } resultobj = SWIG_From_double(static_cast< double >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; double arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; double val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetDouble",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetDouble" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetDouble" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetDouble" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "itkMetaDataDictionary_SetDouble" "', argument " "3"" of type '" "double""'"); } arg3 = static_cast< double >(val3); { try { itkMetaDataDictionary_SetDouble(arg1,(std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetDouble: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetDouble" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetGCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::OTB_GCP result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetGCP",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetGCP" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetGCP" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetGCP" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetGCP(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetGCP: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetGCP" ); } } resultobj = SWIG_NewPointerObj((new otb::OTB_GCP(static_cast< const otb::OTB_GCP& >(result))), SWIGTYPE_p_otb__OTB_GCP, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetGCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; otb::OTB_GCP *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetGCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetGCP" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetGCP" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetGCP" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_otb__OTB_GCP, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetGCP" "', argument " "3"" of type '" "otb::OTB_GCP const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetGCP" "', argument " "3"" of type '" "otb::OTB_GCP const &""'"); } arg3 = reinterpret_cast< otb::OTB_GCP * >(argp3); { try { itkMetaDataDictionary_SetGCP(arg1,(std::string const &)*arg2,(otb::OTB_GCP const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetGCP: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetGCP" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< double,std::allocator< double > > result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetVector",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetVector" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetVector" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetVector" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetVector(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetVector" ); } } resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; std::vector< double,std::allocator< double > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetVector",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetVector" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetVector" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetVector" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetVector" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetVector" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); } arg3 = ptr; } { try { itkMetaDataDictionary_SetVector(arg1,(std::string const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetVector" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetImageKWL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::ImageKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetImageKWL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetImageKWL" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetImageKWL" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetImageKWL" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetImageKWL(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetImageKWL: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetImageKWL" ); } } resultobj = SWIG_NewPointerObj((new otb::ImageKeywordlist(static_cast< const otb::ImageKeywordlist& >(result))), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetImageKWL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; otb::ImageKeywordlist *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetImageKWL",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetImageKWL" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetImageKWL" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetImageKWL" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetImageKWL" "', argument " "3"" of type '" "otb::ImageKeywordlist const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetImageKWL" "', argument " "3"" of type '" "otb::ImageKeywordlist const &""'"); } arg3 = reinterpret_cast< otb::ImageKeywordlist * >(argp3); { try { itkMetaDataDictionary_SetImageKWL(arg1,(std::string const &)*arg2,(otb::ImageKeywordlist const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetImageKWL: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetImageKWL" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetVectorDataKWL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::VectorDataKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetVectorDataKWL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetVectorDataKWL" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetVectorDataKWL" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetVectorDataKWL" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetVectorDataKWL(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetVectorDataKWL: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetVectorDataKWL" ); } } resultobj = SWIG_NewPointerObj((new otb::VectorDataKeywordlist(static_cast< const otb::VectorDataKeywordlist& >(result))), SWIGTYPE_p_otb__VectorDataKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetVectorDataKWL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; otb::VectorDataKeywordlist *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetVectorDataKWL",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetVectorDataKWL" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetVectorDataKWL" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetVectorDataKWL" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_otb__VectorDataKeywordlist, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetVectorDataKWL" "', argument " "3"" of type '" "otb::VectorDataKeywordlist const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetVectorDataKWL" "', argument " "3"" of type '" "otb::VectorDataKeywordlist const &""'"); } arg3 = reinterpret_cast< otb::VectorDataKeywordlist * >(argp3); { try { itkMetaDataDictionary_SetVectorDataKWL(arg1,(std::string const &)*arg2,(otb::VectorDataKeywordlist const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetVectorDataKWL: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetVectorDataKWL" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_GetBoolVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< bool,std::allocator< bool > > result; if (!PyArg_ParseTuple(args,(char *)"OO:itkMetaDataDictionary_GetBoolVector",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_GetBoolVector" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_GetBoolVector" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_GetBoolVector" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = itkMetaDataDictionary_GetBoolVector(arg1,(std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_GetBoolVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_GetBoolVector" ); } } resultobj = swig::from(static_cast< std::vector > >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_itkMetaDataDictionary_SetBoolVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkMetaDataDictionary *arg1 = (itkMetaDataDictionary *) 0 ; std::string *arg2 = 0 ; std::vector< bool,std::allocator< bool > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkMetaDataDictionary_SetBoolVector",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkMetaDataDictionary_SetBoolVector" "', argument " "1"" of type '" "itkMetaDataDictionary *""'"); } arg1 = reinterpret_cast< itkMetaDataDictionary * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkMetaDataDictionary_SetBoolVector" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetBoolVector" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkMetaDataDictionary_SetBoolVector" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkMetaDataDictionary_SetBoolVector" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); } arg3 = ptr; } { try { itkMetaDataDictionary_SetBoolVector(arg1,(std::string const &)*arg2,(std::vector< bool,std::allocator< bool > > const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkMetaDataDictionary_SetBoolVector: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkMetaDataDictionary_SetBoolVector" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *itkMetaDataDictionary_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkMetaDataDictionary, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkCommand_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand *arg1 = (itkCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_GetNameOfClass" "', argument " "1"" of type '" "itkCommand const *""'"); } arg1 = reinterpret_cast< itkCommand * >(argp1); { try { result = (char *)((itkCommand const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand *arg1 = (itkCommand *) 0 ; itkObject *arg2 = (itkObject *) 0 ; itkEventObject *arg3 = 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkCommand_Execute",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Execute" "', argument " "1"" of type '" "itkCommand *""'"); } arg1 = reinterpret_cast< itkCommand * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Execute" "', argument " "2"" of type '" "itkObject *""'"); } arg2 = reinterpret_cast< itkObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkCommand_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } arg3 = reinterpret_cast< itkEventObject * >(argp3); { try { (arg1)->Execute(arg2,(itkEventObject const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Execute" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand *arg1 = (itkCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkCommand" "', argument " "1"" of type '" "itkCommand *""'"); } arg1 = reinterpret_cast< itkCommand * >(argp1); { try { delete_itkCommand(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkCommand" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkCommand_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkCommand, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkCommand_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkCommand_Pointer")) SWIG_fail; { try { result = (itkCommand_Pointer *)new itkCommand_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkCommand_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkCommand_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkCommand_Pointer" "', argument " "1"" of type '" "itkCommand_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkCommand_Pointer" "', argument " "1"" of type '" "itkCommand_Pointer const &""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (itkCommand_Pointer *)new itkCommand_Pointer((itkCommand_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkCommand_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand *arg1 = (itkCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkCommand_Pointer" "', argument " "1"" of type '" "itkCommand *""'"); } arg1 = reinterpret_cast< itkCommand * >(argp1); { try { result = (itkCommand_Pointer *)new itkCommand_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkCommand_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkCommand_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkCommand_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkCommand, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkCommand_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkCommand_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkCommand_Pointer::itkCommand_Pointer()\n" " itkCommand_Pointer::itkCommand_Pointer(itkCommand_Pointer const &)\n" " itkCommand_Pointer::itkCommand_Pointer(itkCommand *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkCommand_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkCommand_Pointer" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkCommand_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer___deref__" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (itkCommand *)((itkCommand_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_IsNotNull" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (bool)((itkCommand_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_IsNull" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (bool)((itkCommand_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_GetPointer" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (itkCommand *)((itkCommand_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; itkObject *arg2 = (itkObject *) 0 ; itkEventObject *arg3 = 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkCommand_Pointer_Execute",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_Execute" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_Execute" "', argument " "2"" of type '" "itkObject *""'"); } arg2 = reinterpret_cast< itkObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkCommand_Pointer_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } arg3 = reinterpret_cast< itkEventObject * >(argp3); { try { (*arg1)->Execute(arg2,(itkEventObject const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_Execute" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_New" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_New" ); } } { // get the raw pointer from the smart pointer itkObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkCommand_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_AddObserver" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkCommand_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkCommand_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_GetCommand" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkCommand_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_GetCommand" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; itkEventObject *arg2 = 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:itkCommand_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_InvokeEvent" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkCommand_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_RemoveObserver" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkCommand_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkCommand_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_HasObserver" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:itkCommand_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkCommand_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_Print" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkCommand_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; std::ostream *arg2 = 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:itkCommand_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_Print" "', argument " "1"" of type '" "itkCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkCommand_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkCommand_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkCommand_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_BreakOnError" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkCommand_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkCommand_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkCommand_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkCommand_Pointer *arg1 = (itkCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkCommand_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkCommand_Pointer_ToString" "', argument " "1"" of type '" "itkCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkCommand_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkCommand_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkCommand_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_delete_itkEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEventObject *arg1 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkEventObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEventObject, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkEventObject" "', argument " "1"" of type '" "itkEventObject *""'"); } arg1 = reinterpret_cast< itkEventObject * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkEventObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkEventObject" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEventObject_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEventObject *arg1 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEventObject_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEventObject_MakeObject" "', argument " "1"" of type '" "itkEventObject const *""'"); } arg1 = reinterpret_cast< itkEventObject * >(argp1); { try { result = (itkEventObject *)((itkEventObject const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEventObject_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEventObject_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEventObject_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEventObject *arg1 = (itkEventObject *) 0 ; std::ostream *arg2 = 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:itkEventObject_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEventObject_Print" "', argument " "1"" of type '" "itkEventObject const *""'"); } arg1 = reinterpret_cast< itkEventObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkEventObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkEventObject_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((itkEventObject const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEventObject_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEventObject_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEventObject_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEventObject *arg1 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEventObject_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEventObject_GetEventName" "', argument " "1"" of type '" "itkEventObject const *""'"); } arg1 = reinterpret_cast< itkEventObject * >(argp1); { try { result = (char *)((itkEventObject const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEventObject_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEventObject_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEventObject_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEventObject *arg1 = (itkEventObject *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkEventObject_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEventObject_CheckEvent" "', argument " "1"" of type '" "itkEventObject const *""'"); } arg1 = reinterpret_cast< itkEventObject * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkEventObject_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkEventObject const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEventObject_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEventObject_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkEventObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkEventObject, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkNoEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkNoEvent")) SWIG_fail; { try { result = (itkNoEvent *)new itkNoEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkNoEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkNoEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkNoEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkNoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *arg1 = (itkNoEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkNoEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkNoEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkNoEvent" "', argument " "1"" of type '" "itkNoEvent *""'"); } arg1 = reinterpret_cast< itkNoEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkNoEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkNoEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkNoEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *arg1 = (itkNoEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkNoEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkNoEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkNoEvent_GetEventName" "', argument " "1"" of type '" "itkNoEvent const *""'"); } arg1 = reinterpret_cast< itkNoEvent * >(argp1); { try { result = (char *)((itkNoEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkNoEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkNoEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkNoEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *arg1 = (itkNoEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkNoEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkNoEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkNoEvent_CheckEvent" "', argument " "1"" of type '" "itkNoEvent const *""'"); } arg1 = reinterpret_cast< itkNoEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkNoEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkNoEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkNoEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkNoEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkNoEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *arg1 = (itkNoEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkNoEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkNoEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkNoEvent_MakeObject" "', argument " "1"" of type '" "itkNoEvent const *""'"); } arg1 = reinterpret_cast< itkNoEvent * >(argp1); { try { result = (itkEventObject *)((itkNoEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkNoEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkNoEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkNoEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkNoEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkNoEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkNoEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkNoEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkNoEvent" "', argument " "1"" of type '" "itkNoEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkNoEvent" "', argument " "1"" of type '" "itkNoEvent const &""'"); } arg1 = reinterpret_cast< itkNoEvent * >(argp1); { try { result = (itkNoEvent *)new itkNoEvent((itkNoEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkNoEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkNoEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkNoEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkNoEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkNoEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkNoEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkNoEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkNoEvent'.\n" " Possible C/C++ prototypes are:\n" " itkNoEvent::itkNoEvent()\n" " itkNoEvent::itkNoEvent(itkNoEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkNoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkNoEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkAnyEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkAnyEvent")) SWIG_fail; { try { result = (itkAnyEvent *)new itkAnyEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkAnyEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkAnyEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkAnyEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkAnyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *arg1 = (itkAnyEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkAnyEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAnyEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkAnyEvent" "', argument " "1"" of type '" "itkAnyEvent *""'"); } arg1 = reinterpret_cast< itkAnyEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkAnyEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkAnyEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAnyEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *arg1 = (itkAnyEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkAnyEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAnyEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAnyEvent_GetEventName" "', argument " "1"" of type '" "itkAnyEvent const *""'"); } arg1 = reinterpret_cast< itkAnyEvent * >(argp1); { try { result = (char *)((itkAnyEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAnyEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAnyEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAnyEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *arg1 = (itkAnyEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkAnyEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAnyEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAnyEvent_CheckEvent" "', argument " "1"" of type '" "itkAnyEvent const *""'"); } arg1 = reinterpret_cast< itkAnyEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkAnyEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkAnyEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAnyEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAnyEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAnyEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *arg1 = (itkAnyEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkAnyEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAnyEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAnyEvent_MakeObject" "', argument " "1"" of type '" "itkAnyEvent const *""'"); } arg1 = reinterpret_cast< itkAnyEvent * >(argp1); { try { result = (itkEventObject *)((itkAnyEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAnyEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAnyEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkAnyEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAnyEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkAnyEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkAnyEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkAnyEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkAnyEvent" "', argument " "1"" of type '" "itkAnyEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkAnyEvent" "', argument " "1"" of type '" "itkAnyEvent const &""'"); } arg1 = reinterpret_cast< itkAnyEvent * >(argp1); { try { result = (itkAnyEvent *)new itkAnyEvent((itkAnyEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkAnyEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkAnyEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkAnyEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkAnyEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkAnyEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkAnyEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkAnyEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkAnyEvent'.\n" " Possible C/C++ prototypes are:\n" " itkAnyEvent::itkAnyEvent()\n" " itkAnyEvent::itkAnyEvent(itkAnyEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkAnyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkAnyEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkDeleteEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkDeleteEvent")) SWIG_fail; { try { result = (itkDeleteEvent *)new itkDeleteEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkDeleteEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkDeleteEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkDeleteEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkDeleteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *arg1 = (itkDeleteEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkDeleteEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkDeleteEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkDeleteEvent" "', argument " "1"" of type '" "itkDeleteEvent *""'"); } arg1 = reinterpret_cast< itkDeleteEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkDeleteEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkDeleteEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkDeleteEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *arg1 = (itkDeleteEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkDeleteEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkDeleteEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkDeleteEvent_GetEventName" "', argument " "1"" of type '" "itkDeleteEvent const *""'"); } arg1 = reinterpret_cast< itkDeleteEvent * >(argp1); { try { result = (char *)((itkDeleteEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkDeleteEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkDeleteEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkDeleteEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *arg1 = (itkDeleteEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkDeleteEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkDeleteEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkDeleteEvent_CheckEvent" "', argument " "1"" of type '" "itkDeleteEvent const *""'"); } arg1 = reinterpret_cast< itkDeleteEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkDeleteEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkDeleteEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkDeleteEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkDeleteEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkDeleteEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *arg1 = (itkDeleteEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkDeleteEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkDeleteEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkDeleteEvent_MakeObject" "', argument " "1"" of type '" "itkDeleteEvent const *""'"); } arg1 = reinterpret_cast< itkDeleteEvent * >(argp1); { try { result = (itkEventObject *)((itkDeleteEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkDeleteEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkDeleteEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkDeleteEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkDeleteEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkDeleteEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkDeleteEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkDeleteEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkDeleteEvent" "', argument " "1"" of type '" "itkDeleteEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkDeleteEvent" "', argument " "1"" of type '" "itkDeleteEvent const &""'"); } arg1 = reinterpret_cast< itkDeleteEvent * >(argp1); { try { result = (itkDeleteEvent *)new itkDeleteEvent((itkDeleteEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkDeleteEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkDeleteEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkDeleteEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkDeleteEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkDeleteEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkDeleteEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkDeleteEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkDeleteEvent'.\n" " Possible C/C++ prototypes are:\n" " itkDeleteEvent::itkDeleteEvent()\n" " itkDeleteEvent::itkDeleteEvent(itkDeleteEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkDeleteEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkDeleteEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkEndEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkEndEvent")) SWIG_fail; { try { result = (itkEndEvent *)new itkEndEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkEndEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkEndEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEndEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkEndEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *arg1 = (itkEndEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkEndEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkEndEvent" "', argument " "1"" of type '" "itkEndEvent *""'"); } arg1 = reinterpret_cast< itkEndEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkEndEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkEndEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *arg1 = (itkEndEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEndEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndEvent_GetEventName" "', argument " "1"" of type '" "itkEndEvent const *""'"); } arg1 = reinterpret_cast< itkEndEvent * >(argp1); { try { result = (char *)((itkEndEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *arg1 = (itkEndEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkEndEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndEvent_CheckEvent" "', argument " "1"" of type '" "itkEndEvent const *""'"); } arg1 = reinterpret_cast< itkEndEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkEndEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkEndEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *arg1 = (itkEndEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEndEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndEvent_MakeObject" "', argument " "1"" of type '" "itkEndEvent const *""'"); } arg1 = reinterpret_cast< itkEndEvent * >(argp1); { try { result = (itkEventObject *)((itkEndEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkEndEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEndEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkEndEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkEndEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkEndEvent" "', argument " "1"" of type '" "itkEndEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkEndEvent" "', argument " "1"" of type '" "itkEndEvent const &""'"); } arg1 = reinterpret_cast< itkEndEvent * >(argp1); { try { result = (itkEndEvent *)new itkEndEvent((itkEndEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkEndEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkEndEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEndEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkEndEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkEndEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkEndEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkEndEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkEndEvent'.\n" " Possible C/C++ prototypes are:\n" " itkEndEvent::itkEndEvent()\n" " itkEndEvent::itkEndEvent(itkEndEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkEndEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkEndEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkExitEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkExitEvent")) SWIG_fail; { try { result = (itkExitEvent *)new itkExitEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkExitEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkExitEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkExitEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkExitEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *arg1 = (itkExitEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkExitEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkExitEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkExitEvent" "', argument " "1"" of type '" "itkExitEvent *""'"); } arg1 = reinterpret_cast< itkExitEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkExitEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkExitEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkExitEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *arg1 = (itkExitEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkExitEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkExitEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkExitEvent_GetEventName" "', argument " "1"" of type '" "itkExitEvent const *""'"); } arg1 = reinterpret_cast< itkExitEvent * >(argp1); { try { result = (char *)((itkExitEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkExitEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkExitEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkExitEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *arg1 = (itkExitEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkExitEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkExitEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkExitEvent_CheckEvent" "', argument " "1"" of type '" "itkExitEvent const *""'"); } arg1 = reinterpret_cast< itkExitEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkExitEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkExitEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkExitEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkExitEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkExitEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *arg1 = (itkExitEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkExitEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkExitEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkExitEvent_MakeObject" "', argument " "1"" of type '" "itkExitEvent const *""'"); } arg1 = reinterpret_cast< itkExitEvent * >(argp1); { try { result = (itkEventObject *)((itkExitEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkExitEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkExitEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkExitEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkExitEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkExitEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkExitEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkExitEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkExitEvent" "', argument " "1"" of type '" "itkExitEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkExitEvent" "', argument " "1"" of type '" "itkExitEvent const &""'"); } arg1 = reinterpret_cast< itkExitEvent * >(argp1); { try { result = (itkExitEvent *)new itkExitEvent((itkExitEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkExitEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkExitEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkExitEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkExitEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkExitEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkExitEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkExitEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkExitEvent'.\n" " Possible C/C++ prototypes are:\n" " itkExitEvent::itkExitEvent()\n" " itkExitEvent::itkExitEvent(itkExitEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkExitEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkExitEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkIterationEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkIterationEvent")) SWIG_fail; { try { result = (itkIterationEvent *)new itkIterationEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkIterationEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkIterationEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkIterationEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkIterationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *arg1 = (itkIterationEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkIterationEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIterationEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkIterationEvent" "', argument " "1"" of type '" "itkIterationEvent *""'"); } arg1 = reinterpret_cast< itkIterationEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkIterationEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkIterationEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIterationEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *arg1 = (itkIterationEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkIterationEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIterationEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIterationEvent_GetEventName" "', argument " "1"" of type '" "itkIterationEvent const *""'"); } arg1 = reinterpret_cast< itkIterationEvent * >(argp1); { try { result = (char *)((itkIterationEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIterationEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIterationEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIterationEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *arg1 = (itkIterationEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkIterationEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIterationEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIterationEvent_CheckEvent" "', argument " "1"" of type '" "itkIterationEvent const *""'"); } arg1 = reinterpret_cast< itkIterationEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkIterationEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkIterationEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIterationEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIterationEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkIterationEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *arg1 = (itkIterationEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkIterationEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkIterationEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkIterationEvent_MakeObject" "', argument " "1"" of type '" "itkIterationEvent const *""'"); } arg1 = reinterpret_cast< itkIterationEvent * >(argp1); { try { result = (itkEventObject *)((itkIterationEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkIterationEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkIterationEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkIterationEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkIterationEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkIterationEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkIterationEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkIterationEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkIterationEvent" "', argument " "1"" of type '" "itkIterationEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkIterationEvent" "', argument " "1"" of type '" "itkIterationEvent const &""'"); } arg1 = reinterpret_cast< itkIterationEvent * >(argp1); { try { result = (itkIterationEvent *)new itkIterationEvent((itkIterationEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkIterationEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkIterationEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkIterationEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkIterationEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkIterationEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkIterationEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkIterationEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkIterationEvent'.\n" " Possible C/C++ prototypes are:\n" " itkIterationEvent::itkIterationEvent()\n" " itkIterationEvent::itkIterationEvent(itkIterationEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkIterationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkIterationEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkModifiedEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkModifiedEvent")) SWIG_fail; { try { result = (itkModifiedEvent *)new itkModifiedEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkModifiedEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkModifiedEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkModifiedEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkModifiedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *arg1 = (itkModifiedEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkModifiedEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkModifiedEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkModifiedEvent" "', argument " "1"" of type '" "itkModifiedEvent *""'"); } arg1 = reinterpret_cast< itkModifiedEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkModifiedEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkModifiedEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkModifiedEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *arg1 = (itkModifiedEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkModifiedEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkModifiedEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkModifiedEvent_GetEventName" "', argument " "1"" of type '" "itkModifiedEvent const *""'"); } arg1 = reinterpret_cast< itkModifiedEvent * >(argp1); { try { result = (char *)((itkModifiedEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkModifiedEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkModifiedEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkModifiedEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *arg1 = (itkModifiedEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkModifiedEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkModifiedEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkModifiedEvent_CheckEvent" "', argument " "1"" of type '" "itkModifiedEvent const *""'"); } arg1 = reinterpret_cast< itkModifiedEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkModifiedEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkModifiedEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkModifiedEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkModifiedEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkModifiedEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *arg1 = (itkModifiedEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkModifiedEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkModifiedEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkModifiedEvent_MakeObject" "', argument " "1"" of type '" "itkModifiedEvent const *""'"); } arg1 = reinterpret_cast< itkModifiedEvent * >(argp1); { try { result = (itkEventObject *)((itkModifiedEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkModifiedEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkModifiedEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkModifiedEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkModifiedEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkModifiedEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkModifiedEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkModifiedEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkModifiedEvent" "', argument " "1"" of type '" "itkModifiedEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkModifiedEvent" "', argument " "1"" of type '" "itkModifiedEvent const &""'"); } arg1 = reinterpret_cast< itkModifiedEvent * >(argp1); { try { result = (itkModifiedEvent *)new itkModifiedEvent((itkModifiedEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkModifiedEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkModifiedEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkModifiedEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkModifiedEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkModifiedEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkModifiedEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkModifiedEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkModifiedEvent'.\n" " Possible C/C++ prototypes are:\n" " itkModifiedEvent::itkModifiedEvent()\n" " itkModifiedEvent::itkModifiedEvent(itkModifiedEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkModifiedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkModifiedEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkPickEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkPickEvent")) SWIG_fail; { try { result = (itkPickEvent *)new itkPickEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkPickEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *arg1 = (itkPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPickEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkPickEvent" "', argument " "1"" of type '" "itkPickEvent *""'"); } arg1 = reinterpret_cast< itkPickEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkPickEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPickEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *arg1 = (itkPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPickEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPickEvent_GetEventName" "', argument " "1"" of type '" "itkPickEvent const *""'"); } arg1 = reinterpret_cast< itkPickEvent * >(argp1); { try { result = (char *)((itkPickEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPickEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPickEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPickEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *arg1 = (itkPickEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkPickEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPickEvent_CheckEvent" "', argument " "1"" of type '" "itkPickEvent const *""'"); } arg1 = reinterpret_cast< itkPickEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPickEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkPickEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPickEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPickEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPickEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *arg1 = (itkPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPickEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPickEvent_MakeObject" "', argument " "1"" of type '" "itkPickEvent const *""'"); } arg1 = reinterpret_cast< itkPickEvent * >(argp1); { try { result = (itkEventObject *)((itkPickEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPickEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPickEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkPickEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPickEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkPickEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkPickEvent" "', argument " "1"" of type '" "itkPickEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkPickEvent" "', argument " "1"" of type '" "itkPickEvent const &""'"); } arg1 = reinterpret_cast< itkPickEvent * >(argp1); { try { result = (itkPickEvent *)new itkPickEvent((itkPickEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkPickEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkPickEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkPickEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkPickEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkPickEvent'.\n" " Possible C/C++ prototypes are:\n" " itkPickEvent::itkPickEvent()\n" " itkPickEvent::itkPickEvent(itkPickEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkPickEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkPickEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkProgressEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkProgressEvent")) SWIG_fail; { try { result = (itkProgressEvent *)new itkProgressEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkProgressEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkProgressEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProgressEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkProgressEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *arg1 = (itkProgressEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkProgressEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProgressEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkProgressEvent" "', argument " "1"" of type '" "itkProgressEvent *""'"); } arg1 = reinterpret_cast< itkProgressEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkProgressEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkProgressEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProgressEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *arg1 = (itkProgressEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProgressEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProgressEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProgressEvent_GetEventName" "', argument " "1"" of type '" "itkProgressEvent const *""'"); } arg1 = reinterpret_cast< itkProgressEvent * >(argp1); { try { result = (char *)((itkProgressEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProgressEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProgressEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProgressEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *arg1 = (itkProgressEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkProgressEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProgressEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProgressEvent_CheckEvent" "', argument " "1"" of type '" "itkProgressEvent const *""'"); } arg1 = reinterpret_cast< itkProgressEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkProgressEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkProgressEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProgressEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProgressEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkProgressEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *arg1 = (itkProgressEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkProgressEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkProgressEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkProgressEvent_MakeObject" "', argument " "1"" of type '" "itkProgressEvent const *""'"); } arg1 = reinterpret_cast< itkProgressEvent * >(argp1); { try { result = (itkEventObject *)((itkProgressEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkProgressEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkProgressEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkProgressEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkProgressEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProgressEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkProgressEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkProgressEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkProgressEvent" "', argument " "1"" of type '" "itkProgressEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkProgressEvent" "', argument " "1"" of type '" "itkProgressEvent const &""'"); } arg1 = reinterpret_cast< itkProgressEvent * >(argp1); { try { result = (itkProgressEvent *)new itkProgressEvent((itkProgressEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkProgressEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkProgressEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkProgressEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkProgressEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkProgressEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkProgressEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkProgressEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkProgressEvent'.\n" " Possible C/C++ prototypes are:\n" " itkProgressEvent::itkProgressEvent()\n" " itkProgressEvent::itkProgressEvent(itkProgressEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkProgressEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkProgressEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkStartEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkStartEvent")) SWIG_fail; { try { result = (itkStartEvent *)new itkStartEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkStartEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkStartEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkStartEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkStartEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *arg1 = (itkStartEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkStartEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkStartEvent" "', argument " "1"" of type '" "itkStartEvent *""'"); } arg1 = reinterpret_cast< itkStartEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkStartEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkStartEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *arg1 = (itkStartEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkStartEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartEvent_GetEventName" "', argument " "1"" of type '" "itkStartEvent const *""'"); } arg1 = reinterpret_cast< itkStartEvent * >(argp1); { try { result = (char *)((itkStartEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *arg1 = (itkStartEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkStartEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartEvent_CheckEvent" "', argument " "1"" of type '" "itkStartEvent const *""'"); } arg1 = reinterpret_cast< itkStartEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkStartEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkStartEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *arg1 = (itkStartEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkStartEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartEvent_MakeObject" "', argument " "1"" of type '" "itkStartEvent const *""'"); } arg1 = reinterpret_cast< itkStartEvent * >(argp1); { try { result = (itkEventObject *)((itkStartEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkStartEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkStartEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkStartEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkStartEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkStartEvent" "', argument " "1"" of type '" "itkStartEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkStartEvent" "', argument " "1"" of type '" "itkStartEvent const &""'"); } arg1 = reinterpret_cast< itkStartEvent * >(argp1); { try { result = (itkStartEvent *)new itkStartEvent((itkStartEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkStartEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkStartEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkStartEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkStartEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkStartEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkStartEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkStartEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkStartEvent'.\n" " Possible C/C++ prototypes are:\n" " itkStartEvent::itkStartEvent()\n" " itkStartEvent::itkStartEvent(itkStartEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkStartEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkStartEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkStartPickEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkStartPickEvent")) SWIG_fail; { try { result = (itkStartPickEvent *)new itkStartPickEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkStartPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkStartPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkStartPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkStartPickEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *arg1 = (itkStartPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkStartPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartPickEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkStartPickEvent" "', argument " "1"" of type '" "itkStartPickEvent *""'"); } arg1 = reinterpret_cast< itkStartPickEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkStartPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkStartPickEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartPickEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *arg1 = (itkStartPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkStartPickEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartPickEvent_GetEventName" "', argument " "1"" of type '" "itkStartPickEvent const *""'"); } arg1 = reinterpret_cast< itkStartPickEvent * >(argp1); { try { result = (char *)((itkStartPickEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartPickEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartPickEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartPickEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *arg1 = (itkStartPickEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkStartPickEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartPickEvent_CheckEvent" "', argument " "1"" of type '" "itkStartPickEvent const *""'"); } arg1 = reinterpret_cast< itkStartPickEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkStartPickEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkStartPickEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartPickEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartPickEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkStartPickEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *arg1 = (itkStartPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkStartPickEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkStartPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkStartPickEvent_MakeObject" "', argument " "1"" of type '" "itkStartPickEvent const *""'"); } arg1 = reinterpret_cast< itkStartPickEvent * >(argp1); { try { result = (itkEventObject *)((itkStartPickEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkStartPickEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkStartPickEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkStartPickEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkStartPickEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkStartPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkStartPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkStartPickEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkStartPickEvent" "', argument " "1"" of type '" "itkStartPickEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkStartPickEvent" "', argument " "1"" of type '" "itkStartPickEvent const &""'"); } arg1 = reinterpret_cast< itkStartPickEvent * >(argp1); { try { result = (itkStartPickEvent *)new itkStartPickEvent((itkStartPickEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkStartPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkStartPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkStartPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkStartPickEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkStartPickEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkStartPickEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkStartPickEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkStartPickEvent'.\n" " Possible C/C++ prototypes are:\n" " itkStartPickEvent::itkStartPickEvent()\n" " itkStartPickEvent::itkStartPickEvent(itkStartPickEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkStartPickEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkStartPickEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkUserEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkUserEvent")) SWIG_fail; { try { result = (itkUserEvent *)new itkUserEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkUserEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkUserEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkUserEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkUserEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *arg1 = (itkUserEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkUserEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkUserEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkUserEvent" "', argument " "1"" of type '" "itkUserEvent *""'"); } arg1 = reinterpret_cast< itkUserEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkUserEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkUserEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkUserEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *arg1 = (itkUserEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkUserEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkUserEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkUserEvent_GetEventName" "', argument " "1"" of type '" "itkUserEvent const *""'"); } arg1 = reinterpret_cast< itkUserEvent * >(argp1); { try { result = (char *)((itkUserEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkUserEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkUserEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkUserEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *arg1 = (itkUserEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkUserEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkUserEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkUserEvent_CheckEvent" "', argument " "1"" of type '" "itkUserEvent const *""'"); } arg1 = reinterpret_cast< itkUserEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkUserEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkUserEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkUserEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkUserEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkUserEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *arg1 = (itkUserEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkUserEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkUserEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkUserEvent_MakeObject" "', argument " "1"" of type '" "itkUserEvent const *""'"); } arg1 = reinterpret_cast< itkUserEvent * >(argp1); { try { result = (itkEventObject *)((itkUserEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkUserEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkUserEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkUserEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkUserEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkUserEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkUserEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkUserEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkUserEvent" "', argument " "1"" of type '" "itkUserEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkUserEvent" "', argument " "1"" of type '" "itkUserEvent const &""'"); } arg1 = reinterpret_cast< itkUserEvent * >(argp1); { try { result = (itkUserEvent *)new itkUserEvent((itkUserEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkUserEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkUserEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkUserEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkUserEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkUserEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkUserEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkUserEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkUserEvent'.\n" " Possible C/C++ prototypes are:\n" " itkUserEvent::itkUserEvent()\n" " itkUserEvent::itkUserEvent(itkUserEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkUserEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkUserEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkAbortCheckEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkAbortCheckEvent")) SWIG_fail; { try { result = (itkAbortCheckEvent *)new itkAbortCheckEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkAbortCheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkAbortCheckEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkAbortCheckEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkAbortCheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *arg1 = (itkAbortCheckEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkAbortCheckEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAbortCheckEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkAbortCheckEvent" "', argument " "1"" of type '" "itkAbortCheckEvent *""'"); } arg1 = reinterpret_cast< itkAbortCheckEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkAbortCheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkAbortCheckEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAbortCheckEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *arg1 = (itkAbortCheckEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkAbortCheckEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAbortCheckEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAbortCheckEvent_GetEventName" "', argument " "1"" of type '" "itkAbortCheckEvent const *""'"); } arg1 = reinterpret_cast< itkAbortCheckEvent * >(argp1); { try { result = (char *)((itkAbortCheckEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAbortCheckEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAbortCheckEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAbortCheckEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *arg1 = (itkAbortCheckEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkAbortCheckEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAbortCheckEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAbortCheckEvent_CheckEvent" "', argument " "1"" of type '" "itkAbortCheckEvent const *""'"); } arg1 = reinterpret_cast< itkAbortCheckEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkAbortCheckEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkAbortCheckEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAbortCheckEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAbortCheckEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkAbortCheckEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *arg1 = (itkAbortCheckEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkAbortCheckEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkAbortCheckEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkAbortCheckEvent_MakeObject" "', argument " "1"" of type '" "itkAbortCheckEvent const *""'"); } arg1 = reinterpret_cast< itkAbortCheckEvent * >(argp1); { try { result = (itkEventObject *)((itkAbortCheckEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkAbortCheckEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkAbortCheckEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkAbortCheckEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkAbortCheckEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkAbortCheckEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkAbortCheckEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkAbortCheckEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkAbortCheckEvent" "', argument " "1"" of type '" "itkAbortCheckEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkAbortCheckEvent" "', argument " "1"" of type '" "itkAbortCheckEvent const &""'"); } arg1 = reinterpret_cast< itkAbortCheckEvent * >(argp1); { try { result = (itkAbortCheckEvent *)new itkAbortCheckEvent((itkAbortCheckEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkAbortCheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkAbortCheckEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkAbortCheckEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkAbortCheckEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkAbortCheckEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkAbortCheckEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkAbortCheckEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkAbortCheckEvent'.\n" " Possible C/C++ prototypes are:\n" " itkAbortCheckEvent::itkAbortCheckEvent()\n" " itkAbortCheckEvent::itkAbortCheckEvent(itkAbortCheckEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkAbortCheckEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkAbortCheckEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkEndPickEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkEndPickEvent")) SWIG_fail; { try { result = (itkEndPickEvent *)new itkEndPickEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkEndPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkEndPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEndPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkEndPickEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *arg1 = (itkEndPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkEndPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndPickEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkEndPickEvent" "', argument " "1"" of type '" "itkEndPickEvent *""'"); } arg1 = reinterpret_cast< itkEndPickEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkEndPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkEndPickEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndPickEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *arg1 = (itkEndPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEndPickEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndPickEvent_GetEventName" "', argument " "1"" of type '" "itkEndPickEvent const *""'"); } arg1 = reinterpret_cast< itkEndPickEvent * >(argp1); { try { result = (char *)((itkEndPickEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndPickEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndPickEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndPickEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *arg1 = (itkEndPickEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkEndPickEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndPickEvent_CheckEvent" "', argument " "1"" of type '" "itkEndPickEvent const *""'"); } arg1 = reinterpret_cast< itkEndPickEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkEndPickEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((itkEndPickEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndPickEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndPickEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkEndPickEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *arg1 = (itkEndPickEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkEndPickEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkEndPickEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkEndPickEvent_MakeObject" "', argument " "1"" of type '" "itkEndPickEvent const *""'"); } arg1 = reinterpret_cast< itkEndPickEvent * >(argp1); { try { result = (itkEventObject *)((itkEndPickEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkEndPickEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkEndPickEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkEndPickEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkEndPickEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEndPickEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkEndPickEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkEndPickEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkEndPickEvent" "', argument " "1"" of type '" "itkEndPickEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkEndPickEvent" "', argument " "1"" of type '" "itkEndPickEvent const &""'"); } arg1 = reinterpret_cast< itkEndPickEvent * >(argp1); { try { result = (itkEndPickEvent *)new itkEndPickEvent((itkEndPickEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkEndPickEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkEndPickEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEndPickEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkEndPickEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkEndPickEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkEndPickEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkEndPickEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkEndPickEvent'.\n" " Possible C/C++ prototypes are:\n" " itkEndPickEvent::itkEndPickEvent()\n" " itkEndPickEvent::itkEndPickEvent(itkEndPickEvent const &)\n"); return 0; } SWIGINTERN PyObject *itkEndPickEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkEndPickEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_ImageKeywordlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ImageKeywordlist")) SWIG_fail; { try { result = (otb::ImageKeywordlist *)new otb::ImageKeywordlist(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_ImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_ImageKeywordlist" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ImageKeywordlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ImageKeywordlist",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageKeywordlist" "', argument " "1"" of type '" "otb::ImageKeywordlist *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_ImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_ImageKeywordlist" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_GetKeywordlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; otb::ImageKeywordlist::KeywordlistMap *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ImageKeywordlist_GetKeywordlist",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_GetKeywordlist" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { try { result = (otb::ImageKeywordlist::KeywordlistMap *) &((otb::ImageKeywordlist const *)arg1)->GetKeywordlist(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_GetKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_GetKeywordlist" ); } } resultobj = swig::from(static_cast< std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ImageKeywordlist_Clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_Clear" "', argument " "1"" of type '" "otb::ImageKeywordlist *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { try { (arg1)->Clear(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_Clear: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_Clear" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_Empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; otb::ImageKeywordlist::KeywordlistMapSizeType result; if (!PyArg_ParseTuple(args,(char *)"O:ImageKeywordlist_Empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_Empty" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { try { result = ((otb::ImageKeywordlist const *)arg1)->Empty(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_Empty: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_Empty" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; otb::ImageKeywordlist::KeywordlistMapSizeType result; if (!PyArg_ParseTuple(args,(char *)"O:ImageKeywordlist_GetSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_GetSize" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { try { result = ((otb::ImageKeywordlist const *)arg1)->GetSize(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_GetSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_GetSize" ); } } resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_GetMetadataByKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ImageKeywordlist_GetMetadataByKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_GetMetadataByKey" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_GetMetadataByKey" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_GetMetadataByKey" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (std::string *) &((otb::ImageKeywordlist const *)arg1)->GetMetadataByKey((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_GetMetadataByKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_GetMetadataByKey" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ImageKeywordlist_HasKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_HasKey" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_HasKey" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_HasKey" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (bool)((otb::ImageKeywordlist const *)arg1)->HasKey((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_HasKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_HasKey" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_ClearMetadataByKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ImageKeywordlist_ClearMetadataByKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_ClearMetadataByKey" "', argument " "1"" of type '" "otb::ImageKeywordlist *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_ClearMetadataByKey" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_ClearMetadataByKey" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->ClearMetadataByKey((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_ClearMetadataByKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_ClearMetadataByKey" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_AddKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ImageKeywordlist_AddKey",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_AddKey" "', argument " "1"" of type '" "otb::ImageKeywordlist *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_AddKey" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_AddKey" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageKeywordlist_AddKey" "', argument " "3"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_AddKey" "', argument " "3"" of type '" "std::string const &""'"); } arg3 = ptr; } { try { (arg1)->AddKey((std::string const &)*arg2,(std::string const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_AddKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_AddKey" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ImageKeywordlist_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_Print" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageKeywordlist_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { ((otb::ImageKeywordlist const *)arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::ImageKeywordlist *arg1 = (otb::ImageKeywordlist *) 0 ; std::ostream *arg2 = 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:ImageKeywordlist_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__ImageKeywordlist, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageKeywordlist_Print" "', argument " "1"" of type '" "otb::ImageKeywordlist const *""'"); } arg1 = reinterpret_cast< otb::ImageKeywordlist * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageKeywordlist_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageKeywordlist_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((otb::ImageKeywordlist const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ImageKeywordlist_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ImageKeywordlist_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ImageKeywordlist_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_otb__ImageKeywordlist, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ImageKeywordlist_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_otb__ImageKeywordlist, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ImageKeywordlist_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ImageKeywordlist_Print'.\n" " Possible C/C++ prototypes are:\n" " otb::ImageKeywordlist::Print(std::ostream &,itkIndent) const\n" " otb::ImageKeywordlist::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *ImageKeywordlist_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_otb__ImageKeywordlist, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_VectorDataKeywordlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::VectorDataKeywordlist *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VectorDataKeywordlist")) SWIG_fail; { try { result = (otb::VectorDataKeywordlist *)new otb::VectorDataKeywordlist(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_VectorDataKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_VectorDataKeywordlist" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__VectorDataKeywordlist, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VectorDataKeywordlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::VectorDataKeywordlist *arg1 = (otb::VectorDataKeywordlist *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VectorDataKeywordlist",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__VectorDataKeywordlist, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VectorDataKeywordlist" "', argument " "1"" of type '" "otb::VectorDataKeywordlist *""'"); } arg1 = reinterpret_cast< otb::VectorDataKeywordlist * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_VectorDataKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_VectorDataKeywordlist" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VectorDataKeywordlist_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_otb__VectorDataKeywordlist, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_OTB_GCP_m_Id_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:OTB_GCP_m_Id_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_Id_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OTB_GCP_m_Id_set" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OTB_GCP_m_Id_set" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } if (arg1) (arg1)->m_Id = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_Id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_Id_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_Id_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (std::string *) & ((arg1)->m_Id); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_Info_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:OTB_GCP_m_Info_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_Info_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OTB_GCP_m_Info_set" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OTB_GCP_m_Info_set" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } if (arg1) (arg1)->m_Info = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_Info_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_Info_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_Info_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (std::string *) & ((arg1)->m_Info); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPCol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 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:OTB_GCP_m_GCPCol_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPCol_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OTB_GCP_m_GCPCol_set" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->m_GCPCol = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPCol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_GCPCol_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPCol_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (double) ((arg1)->m_GCPCol); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPRow_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 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:OTB_GCP_m_GCPRow_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPRow_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OTB_GCP_m_GCPRow_set" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->m_GCPRow = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPRow_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_GCPRow_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPRow_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (double) ((arg1)->m_GCPRow); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPX_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 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:OTB_GCP_m_GCPX_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPX_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OTB_GCP_m_GCPX_set" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->m_GCPX = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_GCPX_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPX_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (double) ((arg1)->m_GCPX); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPY_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 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:OTB_GCP_m_GCPY_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPY_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OTB_GCP_m_GCPY_set" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->m_GCPY = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_GCPY_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPY_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (double) ((arg1)->m_GCPY); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPZ_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 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:OTB_GCP_m_GCPZ_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPZ_set" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OTB_GCP_m_GCPZ_set" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->m_GCPZ = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_m_GCPZ_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:OTB_GCP_m_GCPZ_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_m_GCPZ_get" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); result = (double) ((arg1)->m_GCPZ); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_OTB_GCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_OTB_GCP")) SWIG_fail; { try { result = (otb::OTB_GCP *)new otb::OTB_GCP(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_OTB_GCP: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_OTB_GCP" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__OTB_GCP, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_OTB_GCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_OTB_GCP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OTB_GCP" "', argument " "1"" of type '" "otb::OTB_GCP *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_OTB_GCP: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_OTB_GCP" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_OTB_GCP_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::OTB_GCP *arg1 = (otb::OTB_GCP *) 0 ; std::ostream *arg2 = 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:OTB_GCP_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__OTB_GCP, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OTB_GCP_Print" "', argument " "1"" of type '" "otb::OTB_GCP const *""'"); } arg1 = reinterpret_cast< otb::OTB_GCP * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OTB_GCP_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OTB_GCP_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { ((otb::OTB_GCP const *)arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication OTB_GCP_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication OTB_GCP_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *OTB_GCP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_otb__OTB_GCP, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_SwigPrintCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PyObject *arg1 = (PyObject *) 0 ; PyObject * obj0 = 0 ; otb::SwigPrintCallback *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_SwigPrintCallback",&obj0)) SWIG_fail; arg1 = obj0; { try { if ( arg1 != Py_None ) { /* subclassed */ result = (otb::SwigPrintCallback *)new SwigDirector_SwigPrintCallback(arg1); } else { result = (otb::SwigPrintCallback *)new otb::SwigPrintCallback(); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_SwigPrintCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_SwigPrintCallback" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__SwigPrintCallback, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_SwigPrintCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::SwigPrintCallback *arg1 = (otb::SwigPrintCallback *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPrintCallback",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__SwigPrintCallback, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPrintCallback" "', argument " "1"" of type '" "otb::SwigPrintCallback *""'"); } arg1 = reinterpret_cast< otb::SwigPrintCallback * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_SwigPrintCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_SwigPrintCallback" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPrintCallback_Call(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::SwigPrintCallback *arg1 = (otb::SwigPrintCallback *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPrintCallback_Call",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPrintCallback_Call" "', argument " "1"" of type '" "otb::SwigPrintCallback *""'"); } arg1 = reinterpret_cast< otb::SwigPrintCallback * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPrintCallback_Call" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPrintCallback_Call" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->otb::SwigPrintCallback::Call((std::string const &)*arg2); } else { (arg1)->Call((std::string const &)*arg2); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPrintCallback_Call: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPrintCallback_Call" ); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SwigPrintCallback_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::SwigPrintCallback *arg1 = (otb::SwigPrintCallback *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Swig::Director *director = 0; bool upcall = false; if (!PyArg_ParseTuple(args,(char *)"O:SwigPrintCallback_Flush",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPrintCallback_Flush" "', argument " "1"" of type '" "otb::SwigPrintCallback *""'"); } arg1 = reinterpret_cast< otb::SwigPrintCallback * >(argp1); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { (arg1)->otb::SwigPrintCallback::Flush(); } else { (arg1)->Flush(); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPrintCallback_Flush: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPrintCallback_Flush" ); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPrintCallback_IsInteractive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::SwigPrintCallback *arg1 = (otb::SwigPrintCallback *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Swig::Director *director = 0; bool upcall = false; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SwigPrintCallback_IsInteractive",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPrintCallback_IsInteractive" "', argument " "1"" of type '" "otb::SwigPrintCallback *""'"); } arg1 = reinterpret_cast< otb::SwigPrintCallback * >(argp1); director = SWIG_DIRECTOR_CAST(arg1); upcall = (director && (director->swig_get_self()==obj0)); try { { try { if (upcall) { result = (bool)(arg1)->otb::SwigPrintCallback::IsInteractive(); } else { result = (bool)(arg1)->IsInteractive(); } } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication SwigPrintCallback_IsInteractive: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication SwigPrintCallback_IsInteractive" ); } } } catch (Swig::DirectorException&) { SWIG_fail; } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_disown_SwigPrintCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; otb::SwigPrintCallback *arg1 = (otb::SwigPrintCallback *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:disown_SwigPrintCallback",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SwigPrintCallback" "', argument " "1"" of type '" "otb::SwigPrintCallback *""'"); } arg1 = reinterpret_cast< otb::SwigPrintCallback * >(argp1); { Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); if (director) director->swig_disown(); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *SwigPrintCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_otb__SwigPrintCallback, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *itkLogOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkLogOutput, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_PythonLogOutput_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer result; if (!PyArg_ParseTuple(args,(char *)":PythonLogOutput_New")) SWIG_fail; { try { result = PythonLogOutput::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_New" ); } } resultobj = SWIG_NewPointerObj((new PythonLogOutput_Pointer(static_cast< const PythonLogOutput_Pointer& >(result))), SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_SetCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput *arg1 = (PythonLogOutput *) 0 ; otb::SwigPrintCallback *arg2 = (otb::SwigPrintCallback *) 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:PythonLogOutput_SetCallback",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_SetCallback" "', argument " "1"" of type '" "PythonLogOutput *""'"); } arg1 = reinterpret_cast< PythonLogOutput * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_SetCallback" "', argument " "2"" of type '" "otb::SwigPrintCallback *""'"); } arg2 = reinterpret_cast< otb::SwigPrintCallback * >(argp2); { try { (arg1)->SetCallback(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_SetCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_SetCallback" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput *arg1 = (PythonLogOutput *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PythonLogOutput_Write",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Write" "', argument " "1"" of type '" "PythonLogOutput *""'"); } arg1 = reinterpret_cast< PythonLogOutput * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Write" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Write" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Write((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Write: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Write" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_PythonLogOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput *arg1 = (PythonLogOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PythonLogOutput",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PythonLogOutput" "', argument " "1"" of type '" "PythonLogOutput *""'"); } arg1 = reinterpret_cast< PythonLogOutput * >(argp1); { try { delete_PythonLogOutput(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_PythonLogOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_PythonLogOutput" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PythonLogOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_PythonLogOutput, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_PythonLogOutput_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_PythonLogOutput_Pointer")) SWIG_fail; { try { result = (PythonLogOutput_Pointer *)new PythonLogOutput_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_PythonLogOutput_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_PythonLogOutput_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PythonLogOutput_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PythonLogOutput_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PythonLogOutput_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PythonLogOutput_Pointer" "', argument " "1"" of type '" "PythonLogOutput_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PythonLogOutput_Pointer" "', argument " "1"" of type '" "PythonLogOutput_Pointer const &""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (PythonLogOutput_Pointer *)new PythonLogOutput_Pointer((PythonLogOutput_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_PythonLogOutput_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_PythonLogOutput_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PythonLogOutput_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput *arg1 = (PythonLogOutput *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PythonLogOutput_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PythonLogOutput_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PythonLogOutput_Pointer" "', argument " "1"" of type '" "PythonLogOutput *""'"); } arg1 = reinterpret_cast< PythonLogOutput * >(argp1); { try { result = (PythonLogOutput_Pointer *)new PythonLogOutput_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_PythonLogOutput_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_PythonLogOutput_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PythonLogOutput_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_PythonLogOutput_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_PythonLogOutput_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PythonLogOutput_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PythonLogOutput, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PythonLogOutput_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PythonLogOutput_Pointer'.\n" " Possible C/C++ prototypes are:\n" " PythonLogOutput_Pointer::PythonLogOutput_Pointer()\n" " PythonLogOutput_Pointer::PythonLogOutput_Pointer(PythonLogOutput_Pointer const &)\n" " PythonLogOutput_Pointer::PythonLogOutput_Pointer(PythonLogOutput *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_PythonLogOutput_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PythonLogOutput_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PythonLogOutput_Pointer" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_PythonLogOutput_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_PythonLogOutput_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PythonLogOutput *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer___deref__" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (PythonLogOutput *)((PythonLogOutput_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PythonLogOutput, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_IsNotNull" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (bool)((PythonLogOutput_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_IsNull" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (bool)((PythonLogOutput_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PythonLogOutput *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_GetPointer" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (PythonLogOutput *)((PythonLogOutput_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PythonLogOutput, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PythonLogOutput_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_New" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_New" ); } } resultobj = SWIG_NewPointerObj((new PythonLogOutput_Pointer(static_cast< const PythonLogOutput_Pointer& >(result))), SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_SetCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; otb::SwigPrintCallback *arg2 = (otb::SwigPrintCallback *) 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:PythonLogOutput_Pointer_SetCallback",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_SetCallback" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_SetCallback" "', argument " "2"" of type '" "otb::SwigPrintCallback *""'"); } arg2 = reinterpret_cast< otb::SwigPrintCallback * >(argp2); { try { (*arg1)->SetCallback(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_SetCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_SetCallback" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_Write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PythonLogOutput_Pointer_Write",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_Write" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_Write" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_Write" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (*arg1)->Write((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_Write: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_Write" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_GetNameOfClass" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:PythonLogOutput_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_AddObserver" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PythonLogOutput_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PythonLogOutput_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_GetCommand" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PythonLogOutput_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_GetCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; itkEventObject *arg2 = 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:PythonLogOutput_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_InvokeEvent" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PythonLogOutput_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_RemoveObserver" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PythonLogOutput_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:PythonLogOutput_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_HasObserver" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:PythonLogOutput_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PythonLogOutput_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_Print" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PythonLogOutput_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; std::ostream *arg2 = 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:PythonLogOutput_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_Print" "', argument " "1"" of type '" "PythonLogOutput_Pointer const *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PythonLogOutput_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PythonLogOutput_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_PythonLogOutput_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PythonLogOutput_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PythonLogOutput_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PythonLogOutput_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PythonLogOutput_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_BreakOnError" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication PythonLogOutput_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication PythonLogOutput_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PythonLogOutput_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; PythonLogOutput_Pointer *arg1 = (PythonLogOutput_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:PythonLogOutput_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PythonLogOutput_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PythonLogOutput_Pointer_ToString" "', argument " "1"" of type '" "PythonLogOutput_Pointer *""'"); } arg1 = reinterpret_cast< PythonLogOutput_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PythonLogOutput_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_PythonLogOutput_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_Logger_AddLogOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; itkLogOutput *arg2 = (itkLogOutput *) 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:Logger_AddLogOutput",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_AddLogOutput" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkLogOutput, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_AddLogOutput" "', argument " "2"" of type '" "itkLogOutput *""'"); } arg2 = reinterpret_cast< itkLogOutput * >(argp2); { try { (arg1)->AddLogOutput(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_AddLogOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_AddLogOutput" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Logger_Instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":Logger_Instance")) SWIG_fail; { try { result = (Logger *)Logger::Instance(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Instance: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Instance" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Logger, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Logger_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Logger_ResetOutputs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_ResetOutputs" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { try { (arg1)->ResetOutputs(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_ResetOutputs: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_ResetOutputs" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Logger_Debug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Debug",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Debug" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Debug" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Debug" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Debug((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Debug: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Debug" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Logger_Info(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Info",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Info" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Info" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Info" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Info((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Info: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Info" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Logger_Warning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Warning",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Warning" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Warning" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Warning" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Warning((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Warning: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Warning" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Logger_Critical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Critical",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Critical" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Critical" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Critical" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Critical((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Critical: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Critical" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Logger_Error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Error",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Error" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Error" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Error" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Error((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Error: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Error" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Logger_Fatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Logger *arg1 = (Logger *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Logger_Fatal",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Logger, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_Fatal" "', argument " "1"" of type '" "Logger *""'"); } arg1 = reinterpret_cast< Logger * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Logger_Fatal" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Logger_Fatal" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->Fatal((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Logger_Fatal: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Logger_Fatal" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *Logger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Logger, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_ProgressReporterManager_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer result; if (!PyArg_ParseTuple(args,(char *)":ProgressReporterManager_New")) SWIG_fail; { try { result = ProgressReporterManager::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_New" ); } } resultobj = SWIG_NewPointerObj((new ProgressReporterManager_Pointer(static_cast< const ProgressReporterManager_Pointer& >(result))), SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_DeleteWatcherList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager *arg1 = (ProgressReporterManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_DeleteWatcherList",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_DeleteWatcherList" "', argument " "1"" of type '" "ProgressReporterManager *""'"); } arg1 = reinterpret_cast< ProgressReporterManager * >(argp1); { try { (arg1)->DeleteWatcherList(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_DeleteWatcherList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_DeleteWatcherList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_SetLogOutputCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager *arg1 = (ProgressReporterManager *) 0 ; otb::SwigPrintCallback *arg2 = (otb::SwigPrintCallback *) 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:ProgressReporterManager_SetLogOutputCallback",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_SetLogOutputCallback" "', argument " "1"" of type '" "ProgressReporterManager *""'"); } arg1 = reinterpret_cast< ProgressReporterManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_SetLogOutputCallback" "', argument " "2"" of type '" "otb::SwigPrintCallback *""'"); } arg2 = reinterpret_cast< otb::SwigPrintCallback * >(argp2); { try { (arg1)->SetLogOutputCallback(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_SetLogOutputCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_SetLogOutputCallback" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_GetAddProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager *arg1 = (ProgressReporterManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_GetAddProcessCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_GetAddProcessCommand" "', argument " "1"" of type '" "ProgressReporterManager *""'"); } arg1 = reinterpret_cast< ProgressReporterManager * >(argp1); { try { result = (itkCommand *)(arg1)->GetAddProcessCommand(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_GetAddProcessCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_GetAddProcessCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ProgressReporterManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager *arg1 = (ProgressReporterManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ProgressReporterManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProgressReporterManager" "', argument " "1"" of type '" "ProgressReporterManager *""'"); } arg1 = reinterpret_cast< ProgressReporterManager * >(argp1); { try { delete_ProgressReporterManager(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_ProgressReporterManager: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_ProgressReporterManager" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ProgressReporterManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_ProgressReporterManager, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_ProgressReporterManager_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ProgressReporterManager_Pointer")) SWIG_fail; { try { result = (ProgressReporterManager_Pointer *)new ProgressReporterManager_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_ProgressReporterManager_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_ProgressReporterManager_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ProgressReporterManager_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ProgressReporterManager_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ProgressReporterManager_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ProgressReporterManager_Pointer" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ProgressReporterManager_Pointer" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const &""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (ProgressReporterManager_Pointer *)new ProgressReporterManager_Pointer((ProgressReporterManager_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_ProgressReporterManager_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_ProgressReporterManager_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ProgressReporterManager_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager *arg1 = (ProgressReporterManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ProgressReporterManager_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_ProgressReporterManager_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ProgressReporterManager_Pointer" "', argument " "1"" of type '" "ProgressReporterManager *""'"); } arg1 = reinterpret_cast< ProgressReporterManager * >(argp1); { try { result = (ProgressReporterManager_Pointer *)new ProgressReporterManager_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_ProgressReporterManager_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_ProgressReporterManager_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_ProgressReporterManager_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_ProgressReporterManager_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_ProgressReporterManager_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ProgressReporterManager_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProgressReporterManager, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_ProgressReporterManager_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ProgressReporterManager_Pointer'.\n" " Possible C/C++ prototypes are:\n" " ProgressReporterManager_Pointer::ProgressReporterManager_Pointer()\n" " ProgressReporterManager_Pointer::ProgressReporterManager_Pointer(ProgressReporterManager_Pointer const &)\n" " ProgressReporterManager_Pointer::ProgressReporterManager_Pointer(ProgressReporterManager *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_ProgressReporterManager_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ProgressReporterManager_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProgressReporterManager_Pointer" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_ProgressReporterManager_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_ProgressReporterManager_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ProgressReporterManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer___deref__" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (ProgressReporterManager *)((ProgressReporterManager_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_IsNotNull" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (bool)((ProgressReporterManager_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_IsNull" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (bool)((ProgressReporterManager_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ProgressReporterManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_GetPointer" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (ProgressReporterManager *)((ProgressReporterManager_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProgressReporterManager, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ProgressReporterManager_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_New" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_New" ); } } resultobj = SWIG_NewPointerObj((new ProgressReporterManager_Pointer(static_cast< const ProgressReporterManager_Pointer& >(result))), SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_DeleteWatcherList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_DeleteWatcherList",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_DeleteWatcherList" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { (*arg1)->DeleteWatcherList(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_DeleteWatcherList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_DeleteWatcherList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_SetLogOutputCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; otb::SwigPrintCallback *arg2 = (otb::SwigPrintCallback *) 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:ProgressReporterManager_Pointer_SetLogOutputCallback",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_SetLogOutputCallback" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_otb__SwigPrintCallback, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_SetLogOutputCallback" "', argument " "2"" of type '" "otb::SwigPrintCallback *""'"); } arg2 = reinterpret_cast< otb::SwigPrintCallback * >(argp2); { try { (*arg1)->SetLogOutputCallback(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_SetLogOutputCallback: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_SetLogOutputCallback" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_GetAddProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_GetAddProcessCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_GetAddProcessCommand" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (itkCommand *)(*arg1)->GetAddProcessCommand(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_GetAddProcessCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_GetAddProcessCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_GetNameOfClass" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:ProgressReporterManager_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_AddObserver" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ProgressReporterManager_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ProgressReporterManager_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_GetCommand" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressReporterManager_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_GetCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; itkEventObject *arg2 = 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:ProgressReporterManager_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_InvokeEvent" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:ProgressReporterManager_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_RemoveObserver" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressReporterManager_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:ProgressReporterManager_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_HasObserver" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:ProgressReporterManager_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ProgressReporterManager_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; std::ostream *arg2 = 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:ProgressReporterManager_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "1"" of type '" "ProgressReporterManager_Pointer const *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ProgressReporterManager_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_ProgressReporterManager_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ProgressReporterManager_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProgressReporterManager_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_ProgressReporterManager_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ProgressReporterManager_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_BreakOnError" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication ProgressReporterManager_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication ProgressReporterManager_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ProgressReporterManager_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ProgressReporterManager_Pointer *arg1 = (ProgressReporterManager_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:ProgressReporterManager_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProgressReporterManager_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressReporterManager_Pointer_ToString" "', argument " "1"" of type '" "ProgressReporterManager_Pointer *""'"); } arg1 = reinterpret_cast< ProgressReporterManager_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *ProgressReporterManager_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_ProgressReporterManager_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_Application_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetName" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetName" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetName" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->SetName((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetName" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetName" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 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:Application_SetDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDescription" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetDescription" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->SetDescription((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDescription" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDescription" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Init" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { (arg1)->Init(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Init: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Init" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_UpdateParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_UpdateParameters",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_UpdateParameters" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { (arg1)->UpdateParameters(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_UpdateParameters: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_UpdateParameters" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Execute",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Execute" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (int)(arg1)->Execute(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Execute" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_WriteOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_WriteOutput",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_WriteOutput" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { (arg1)->WriteOutput(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_WriteOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_WriteOutput" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_ExecuteAndWriteOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_ExecuteAndWriteOutput",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_ExecuteAndWriteOutput" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (int)(arg1)->ExecuteAndWriteOutput(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_ExecuteAndWriteOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_ExecuteAndWriteOutput" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_ConnectImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; Application *arg3 = (Application *) 0 ; std::string arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_ConnectImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_ConnectImage" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_ConnectImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_ConnectImage" "', argument " "3"" of type '" "Application *""'"); } arg3 = reinterpret_cast< Application * >(argp3); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_ConnectImage" "', argument " "4"" of type '" "std::string""'"); } arg4 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(arg1)->ConnectImage(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_ConnectImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_ConnectImage" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_PropagateConnectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_PropagateConnectMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_PropagateConnectMode" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_PropagateConnectMode" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { try { (arg1)->PropagateConnectMode(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_PropagateConnectMode: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_PropagateConnectMode" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_LoadParametersFromXML(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_LoadParametersFromXML",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_LoadParametersFromXML" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_LoadParametersFromXML" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_LoadParametersFromXML" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->LoadParametersFromXML((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_LoadParametersFromXML: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_LoadParametersFromXML" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_SaveParametersToXML(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_SaveParametersToXML",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SaveParametersToXML" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SaveParametersToXML" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SaveParametersToXML" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->SaveParametersToXML((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SaveParametersToXML: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SaveParametersToXML" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetLogger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Logger *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetLogger",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetLogger" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (Logger *)(arg1)->GetLogger(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetLogger: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetLogger" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Logger, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_IsDeprecated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_IsDeprecated",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_IsDeprecated" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (bool)(arg1)->IsDeprecated(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_IsDeprecated: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_IsDeprecated" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParametersKeys__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParametersKeys",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParametersKeys" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_GetParametersKeys" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { try { result = (arg1)->GetParametersKeys(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParametersKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParametersKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParametersKeys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetParametersKeys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParametersKeys" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (arg1)->GetParametersKeys(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParametersKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParametersKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParametersKeys(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetParametersKeys__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetParametersKeys__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetParametersKeys'.\n" " Possible C/C++ prototypes are:\n" " Application::GetParametersKeys(bool)\n" " Application::GetParametersKeys()\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetParameterByKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Parameter *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterByKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterByKey" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterByKey" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (Parameter *)(arg1)->GetParameterByKey(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterByKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterByKey" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Parameter, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterName" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterName" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetParameterName(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterName" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterDescription" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterDescription" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetParameterDescription(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterDescription" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterDescription",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterDescription" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterDescription" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterDescription" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetParameterDescription(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterDescription" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterUserValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterUserValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterUserValue" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterUserValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterUserValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); { try { (arg1)->SetParameterUserValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterUserValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterUserValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_EnableParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_EnableParameter",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_EnableParameter" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_EnableParameter" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->EnableParameter(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_EnableParameter: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_EnableParameter" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_DisableParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_DisableParameter",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_DisableParameter" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_DisableParameter" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->DisableParameter(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_DisableParameter: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_DisableParameter" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_IsParameterEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_IsParameterEnabled",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_IsParameterEnabled" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_IsParameterEnabled" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)((Application const *)arg1)->IsParameterEnabled(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_IsParameterEnabled: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_IsParameterEnabled" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_IsMandatory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_IsMandatory",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_IsMandatory" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_IsMandatory" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)((Application const *)arg1)->IsMandatory(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_IsMandatory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_IsMandatory" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_HasAutomaticValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_HasAutomaticValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_HasAutomaticValue" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_HasAutomaticValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)((Application const *)arg1)->HasAutomaticValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_HasAutomaticValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_HasAutomaticValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_HasUserValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_HasUserValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_HasUserValue" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_HasUserValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)((Application const *)arg1)->HasUserValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_HasUserValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_HasUserValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_ClearValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_ClearValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_ClearValue" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_ClearValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->ClearValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_ClearValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_ClearValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_HasValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_HasValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_HasValue" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_HasValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)((Application const *)arg1)->HasValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_HasValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_HasValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterUserLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::UserLevel result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterUserLevel",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterUserLevel" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterUserLevel" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::UserLevel)((Application const *)arg1)->GetParameterUserLevel(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterUserLevel: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterUserLevel" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ParameterType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterType" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::ParameterType)((Application const *)arg1)->GetParameterType(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterRole(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::Role result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterRole",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterRole" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterRole" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::Role)((Application const *)arg1)->GetParameterRole(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterRole: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterRole" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetChoiceKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetChoiceKeys",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetChoiceKeys" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetChoiceKeys" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetChoiceKeys(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetChoiceKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetChoiceKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetChoiceNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetChoiceNames",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetChoiceNames" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetChoiceNames" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetChoiceNames(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetChoiceNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetChoiceNames" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_IsApplicationReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_IsApplicationReady",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_IsApplicationReady" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (bool)(arg1)->IsApplicationReady(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_IsApplicationReady: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_IsApplicationReady" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterInt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetParameterInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterInt" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterInt" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_SetParameterInt" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (arg1)->SetParameterInt(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterInt" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterInt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterInt",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterInt" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterInt" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { try { (arg1)->SetParameterInt(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterInt" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterInt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterInt__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(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_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterInt__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_SetParameterInt'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterInt(std::string,int,bool)\n" " Application::SetParameterInt(std::string,int)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_SetParameterFloat__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; float arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetParameterFloat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterFloat" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterFloat" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_SetParameterFloat" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (arg1)->SetParameterFloat(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterFloat" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterFloat__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterFloat",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterFloat" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterFloat" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); { try { (arg1)->SetParameterFloat(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterFloat" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterFloat(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterFloat__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(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_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterFloat__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_SetParameterFloat'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterFloat(std::string,float,bool)\n" " Application::SetParameterFloat(std::string,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_SetParameterString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetParameterString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterString" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterString" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_SetParameterString" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (arg1)->SetParameterString(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterString" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterString" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterString" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetParameterString(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterString" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_SetParameterString__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterString__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_SetParameterString'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterString(std::string,std::string,bool)\n" " Application::SetParameterString(std::string,std::string)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_SetParameterStringList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::vector< std::string,std::allocator< std::string > > arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetParameterStringList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterStringList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterStringList" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_SetParameterStringList" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (arg1)->SetParameterStringList(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterStringList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterStringList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::vector< std::string,std::allocator< std::string > > arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterStringList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterStringList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterStringList" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetParameterStringList(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterStringList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterStringList(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_SetParameterStringList__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetParameterStringList__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_SetParameterStringList'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterStringList(std::string,std::vector< std::string,std::allocator< std::string > >,bool)\n" " Application::SetParameterStringList(std::string,std::vector< std::string,std::allocator< std::string > >)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_SetParameterOutputImagePixelType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; otb::Wrapper::ImagePixelType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterOutputImagePixelType",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterOutputImagePixelType" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterOutputImagePixelType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetParameterOutputImagePixelType" "', argument " "3"" of type '" "otb::Wrapper::ImagePixelType""'"); } arg3 = static_cast< otb::Wrapper::ImagePixelType >(val3); { try { (arg1)->SetParameterOutputImagePixelType(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterOutputImagePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterOutputImagePixelType" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterOutputImagePixelType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterOutputImagePixelType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterOutputImagePixelType" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterOutputImagePixelType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::ImagePixelType)(arg1)->GetParameterOutputImagePixelType(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterOutputImagePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterOutputImagePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterInt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterInt" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (int)(arg1)->GetParameterInt(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterInt" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterFloat",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterFloat" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (float)(arg1)->GetParameterFloat(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterFloat" ); } } resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterString" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetParameterString(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterString" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterStringList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterStringList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetParameterStringList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterStringList" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterAsString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterAsString" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterAsString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (arg1)->GetParameterAsString(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterAsString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterAsString" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetListViewSingleSelectionMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetListViewSingleSelectionMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetListViewSingleSelectionMode" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetListViewSingleSelectionMode" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetListViewSingleSelectionMode" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (bool)(arg1)->GetListViewSingleSelectionMode((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetListViewSingleSelectionMode: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetListViewSingleSelectionMode" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterOutputImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetParameterOutputImage",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterOutputImage" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetParameterOutputImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (ImageBaseType *)(arg1)->GetParameterOutputImage(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterOutputImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterOutputImage" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetParameterInputImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; ImageBaseType *arg3 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetParameterInputImage",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetParameterInputImage" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetParameterInputImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_SetParameterInputImage" "', argument " "3"" of type '" "ImageBaseType *""'"); } arg3 = reinterpret_cast< ImageBaseType * >(argp3); { try { (arg1)->SetParameterInputImage(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetParameterInputImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetParameterInputImage" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_AddImageToParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; ImageBaseType *arg3 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_AddImageToParameterInputImageList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_AddImageToParameterInputImageList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_AddImageToParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_AddImageToParameterInputImageList" "', argument " "3"" of type '" "ImageBaseType *""'"); } arg3 = reinterpret_cast< ImageBaseType * >(argp3); { try { (arg1)->AddImageToParameterInputImageList(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_AddImageToParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_AddImageToParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_AddParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_AddParameterStringList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_AddParameterStringList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_AddParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_AddParameterStringList" "', argument " "3"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_AddParameterStringList" "', argument " "3"" of type '" "std::string const &""'"); } arg3 = ptr; } { try { (arg1)->AddParameterStringList(arg2,(std::string const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_AddParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_AddParameterStringList" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_Application_SetNthParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; unsigned int *arg3 = 0 ; ImageBaseType *arg4 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int temp3 ; unsigned int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetNthParameterInputImageList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetNthParameterInputImageList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetNthParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetNthParameterInputImageList" "', argument " "3"" of type '" "unsigned int""'"); } temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetNthParameterInputImageList" "', argument " "4"" of type '" "ImageBaseType *""'"); } arg4 = reinterpret_cast< ImageBaseType * >(argp4); { try { (arg1)->SetNthParameterInputImageList(arg2,(unsigned int const &)*arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetNthParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetNthParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetNthParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; unsigned int *arg3 = 0 ; std::string *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int temp3 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetNthParameterStringList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetNthParameterStringList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetNthParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetNthParameterStringList" "', argument " "3"" of type '" "unsigned int""'"); } temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetNthParameterStringList" "', argument " "4"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetNthParameterStringList" "', argument " "4"" of type '" "std::string const &""'"); } arg4 = ptr; } { try { (arg1)->SetNthParameterStringList(arg2,(unsigned int const &)*arg3,(std::string const &)*arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetNthParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetNthParameterStringList" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Application_ClearParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_ClearParameterInputImageList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_ClearParameterInputImageList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_ClearParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->ClearParameterInputImageList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_ClearParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_ClearParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetNumberOfElementsInParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetNumberOfElementsInParameterInputImageList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetNumberOfElementsInParameterInputImageList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetNumberOfElementsInParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (unsigned int)(arg1)->GetNumberOfElementsInParameterInputImageList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetNumberOfElementsInParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetNumberOfElementsInParameterInputImageList" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageOrigin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Point< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageOrigin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageOrigin" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageOrigin" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageOrigin((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageOrigin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageOrigin" ); } } resultobj = SWIG_NewPointerObj((new itk::Point< itk::SpacePrecisionType,2 >(static_cast< const itk::Point< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageOrigin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Point< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageOrigin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageOrigin" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageOrigin((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageOrigin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageOrigin" ); } } resultobj = SWIG_NewPointerObj((new itk::Point< itk::SpacePrecisionType,2 >(static_cast< const itk::Point< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageOrigin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageOrigin__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageOrigin__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageOrigin'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageOrigin(std::string const &,unsigned int)\n" " Application::GetImageOrigin(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageSpacing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Vector< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageSpacing",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageSpacing" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageSpacing" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageSpacing((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageSpacing: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageSpacing" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< itk::SpacePrecisionType,2 >(static_cast< const itk::Vector< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageSpacing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Vector< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageSpacing",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageSpacing" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageSpacing((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageSpacing: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageSpacing" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< itk::SpacePrecisionType,2 >(static_cast< const itk::Vector< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageSpacing(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageSpacing__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageSpacing__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageSpacing'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageSpacing(std::string const &,unsigned int)\n" " Application::GetImageSpacing(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Size< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageSize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageSize" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageSize" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageSize((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageSize" ); } } resultobj = SWIG_NewPointerObj((new itk::Size< 2 >(static_cast< const itk::Size< 2 >& >(result))), SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Size< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageSize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageSize" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageSize((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageSize" ); } } resultobj = SWIG_NewPointerObj((new itk::Size< 2 >(static_cast< const itk::Size< 2 >& >(result))), SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageSize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageSize__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageSize__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageSize'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageSize(std::string const &,unsigned int)\n" " Application::GetImageSize(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageNbBands__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageNbBands",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageNbBands" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageNbBands" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (unsigned int)(arg1)->GetImageNbBands((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageNbBands: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageNbBands" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageNbBands__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageNbBands",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageNbBands" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (unsigned int)(arg1)->GetImageNbBands((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageNbBands: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageNbBands" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageNbBands(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageNbBands__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageNbBands__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageNbBands'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageNbBands(std::string const &,unsigned int)\n" " Application::GetImageNbBands(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageProjection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageProjection",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageProjection" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageProjection" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageProjection((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageProjection: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageProjection" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageProjection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageProjection",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageProjection" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageProjection((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageProjection: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageProjection" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageProjection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageProjection__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageProjection__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageProjection'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageProjection(std::string const &,unsigned int)\n" " Application::GetImageProjection(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageKeywordlist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; otb::ImageKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageKeywordlist",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageKeywordlist" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageKeywordlist" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageKeywordlist((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageKeywordlist" ); } } resultobj = SWIG_NewPointerObj((new otb::ImageKeywordlist(static_cast< const otb::ImageKeywordlist& >(result))), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageKeywordlist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::ImageKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageKeywordlist",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageKeywordlist" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageKeywordlist((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageKeywordlist" ); } } resultobj = SWIG_NewPointerObj((new otb::ImageKeywordlist(static_cast< const otb::ImageKeywordlist& >(result))), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageKeywordlist(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageKeywordlist__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageKeywordlist__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageKeywordlist'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageKeywordlist(std::string const &,unsigned int)\n" " Application::GetImageKeywordlist(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_PropagateRequestedRegion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; itk::ImageRegion< 2 > arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_PropagateRequestedRegion",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_PropagateRequestedRegion" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_PropagateRequestedRegion" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { try { result = (unsigned long)(arg1)->PropagateRequestedRegion((std::string const &)*arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_PropagateRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_PropagateRequestedRegion" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_PropagateRequestedRegion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; itk::ImageRegion< 2 > arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_PropagateRequestedRegion",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_PropagateRequestedRegion" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { result = (unsigned long)(arg1)->PropagateRequestedRegion((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_PropagateRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_PropagateRequestedRegion" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_PropagateRequestedRegion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_PropagateRequestedRegion__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_PropagateRequestedRegion__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_PropagateRequestedRegion'.\n" " Possible C/C++ prototypes are:\n" " Application::PropagateRequestedRegion(std::string const &,itk::ImageRegion< 2 >,unsigned int)\n" " Application::PropagateRequestedRegion(std::string const &,itk::ImageRegion< 2 >)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageRequestedRegion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::ImageRegion< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageRequestedRegion",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageRequestedRegion" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageRequestedRegion" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageRequestedRegion((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageRequestedRegion" ); } } resultobj = SWIG_NewPointerObj((new itk::ImageRegion< 2 >(static_cast< const itk::ImageRegion< 2 >& >(result))), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageRequestedRegion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::ImageRegion< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageRequestedRegion",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageRequestedRegion" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageRequestedRegion((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageRequestedRegion" ); } } resultobj = SWIG_NewPointerObj((new itk::ImageRegion< 2 >(static_cast< const itk::ImageRegion< 2 >& >(result))), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageRequestedRegion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageRequestedRegion__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageRequestedRegion__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageRequestedRegion'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageRequestedRegion(std::string const &,unsigned int)\n" " Application::GetImageRequestedRegion(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageMetaData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itkMetaDataDictionary result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageMetaData",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageMetaData" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageMetaData" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetImageMetaData((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageMetaData: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageMetaData" ); } } resultobj = SWIG_NewPointerObj((new itkMetaDataDictionary(static_cast< const itkMetaDataDictionary& >(result))), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageMetaData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkMetaDataDictionary result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageMetaData",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageMetaData" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (arg1)->GetImageMetaData((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageMetaData: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageMetaData" ); } } resultobj = SWIG_NewPointerObj((new itkMetaDataDictionary(static_cast< const itkMetaDataDictionary& >(result))), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageMetaData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageMetaData__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageMetaData__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageMetaData'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageMetaData(std::string const &,unsigned int)\n" " Application::GetImageMetaData(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetImageBasePixelType__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetImageBasePixelType",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageBasePixelType" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetImageBasePixelType" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (otb::Wrapper::ImagePixelType)(arg1)->GetImageBasePixelType((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageBasePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageBasePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageBasePixelType__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetImageBasePixelType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetImageBasePixelType" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (otb::Wrapper::ImagePixelType)(arg1)->GetImageBasePixelType((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetImageBasePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetImageBasePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetImageBasePixelType(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_GetImageBasePixelType__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_GetImageBasePixelType__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_GetImageBasePixelType'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageBasePixelType(std::string const &,unsigned int)\n" " Application::GetImageBasePixelType(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetProgressSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetProgressSource",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetProgressSource" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (itkProcessObject *)((Application const *)arg1)->GetProgressSource(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetProgressSource: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetProgressSource" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkProcessObject, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetProgressDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetProgressDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetProgressDescription" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = ((Application const *)arg1)->GetProgressDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetProgressDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetProgressDescription" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_FreeRessources(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_FreeRessources",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_FreeRessources" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { (arg1)->FreeRessources(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_FreeRessources: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_FreeRessources" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocLongDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 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:Application_SetDocLongDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocLongDescription" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetDocLongDescription" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->SetDocLongDescription((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocLongDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocLongDescription" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDocLongDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDocLongDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDocLongDescription" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetDocLongDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDocLongDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDocLongDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocAuthors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 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:Application_SetDocAuthors",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocAuthors" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetDocAuthors" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->SetDocAuthors((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocAuthors: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocAuthors" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDocAuthors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDocAuthors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDocAuthors" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetDocAuthors(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDocAuthors: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDocAuthors" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocLimitations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 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:Application_SetDocLimitations",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocLimitations" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetDocLimitations" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->SetDocLimitations((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocLimitations: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocLimitations" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDocLimitations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDocLimitations",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDocLimitations" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetDocLimitations(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDocLimitations: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDocLimitations" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocSeeAlso(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 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:Application_SetDocSeeAlso",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocSeeAlso" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetDocSeeAlso" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->SetDocSeeAlso((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocSeeAlso: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocSeeAlso" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDocSeeAlso(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDocSeeAlso",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDocSeeAlso" "', argument " "1"" of type '" "Application const *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (char *)((Application const *)arg1)->GetDocSeeAlso(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDocSeeAlso: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDocSeeAlso" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::vector< std::string,std::allocator< std::string > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_SetDocTags",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocTags" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetDocTags" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetDocTags(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocTags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocTags" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_AddDocTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_AddDocTag",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_AddDocTag" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_AddDocTag" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_AddDocTag" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (arg1)->AddDocTag((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_AddDocTag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_AddDocTag" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_GetDocTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetDocTags",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetDocTags" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (arg1)->GetDocTags(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetDocTags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetDocTags" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetParameterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; otb::Wrapper::ParameterGroup *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetParameterList",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetParameterList" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (otb::Wrapper::ParameterGroup *)(arg1)->GetParameterList(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetParameterList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetParameterList" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__Wrapper__ParameterGroup, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetNumberOfExamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetNumberOfExamples",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetNumberOfExamples" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (unsigned int)(arg1)->GetNumberOfExamples(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetNumberOfExamples: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetNumberOfExamples" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetExampleComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetExampleComment",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetExampleComment" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_GetExampleComment" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (arg1)->GetExampleComment(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetExampleComment: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetExampleComment" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetExampleNumberOfParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetExampleNumberOfParameters",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetExampleNumberOfParameters" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_GetExampleNumberOfParameters" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (unsigned int)(arg1)->GetExampleNumberOfParameters(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetExampleNumberOfParameters: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetExampleNumberOfParameters" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetExampleParameterKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; unsigned int arg2 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetExampleParameterKey",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetExampleParameterKey" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_GetExampleParameterKey" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetExampleParameterKey" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetExampleParameterKey(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetExampleParameterKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetExampleParameterKey" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetExampleParameterValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; unsigned int arg2 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_GetExampleParameterValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetExampleParameterValue" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_GetExampleParameterValue" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_GetExampleParameterValue" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (arg1)->GetExampleParameterValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetExampleParameterValue" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocExampleParameterValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetDocExampleParameterValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocExampleParameterValue" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetDocExampleParameterValue" "', argument " "2"" of type '" "std::string const""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetDocExampleParameterValue" "', argument " "3"" of type '" "std::string const""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_SetDocExampleParameterValue" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { try { (arg1)->SetDocExampleParameterValue(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocExampleParameterValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocExampleParameterValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetDocExampleParameterValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetDocExampleParameterValue" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetDocExampleParameterValue" "', argument " "2"" of type '" "std::string const""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetDocExampleParameterValue" "', argument " "3"" of type '" "std::string const""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetDocExampleParameterValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetDocExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetDocExampleParameterValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetDocExampleParameterValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_SetDocExampleParameterValue__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_SetDocExampleParameterValue__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_SetDocExampleParameterValue'.\n" " Possible C/C++ prototypes are:\n" " Application::SetDocExampleParameterValue(std::string const,std::string const,unsigned int)\n" " Application::SetDocExampleParameterValue(std::string const,std::string const)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_SetExampleComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_SetExampleComment",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetExampleComment" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetExampleComment" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetExampleComment" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetExampleComment" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { (arg1)->SetExampleComment((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetExampleComment: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetExampleComment" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_AddExample__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_AddExample",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_AddExample" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_AddExample" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_AddExample" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (unsigned int)(arg1)->AddExample((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_AddExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_AddExample" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_AddExample__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_AddExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_AddExample" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (unsigned int)(arg1)->AddExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_AddExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_AddExample" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_AddExample(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_AddExample__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_AddExample__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_AddExample'.\n" " Possible C/C++ prototypes are:\n" " Application::AddExample(std::string const &)\n" " Application::AddExample()\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_GetCLExample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetCLExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetCLExample" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (arg1)->GetCLExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetCLExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetCLExample" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetHtmlExample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetHtmlExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetHtmlExample" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (arg1)->GetHtmlExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetHtmlExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetHtmlExample" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetOutputParametersSumUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_GetOutputParametersSumUp",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetOutputParametersSumUp" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (arg1)->GetOutputParametersSumUp(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetOutputParametersSumUp: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetOutputParametersSumUp" ); } } resultobj = SWIG_NewPointerObj((new std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > >(static_cast< const std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > >& >(result))), SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned char *arg4 = (unsigned char *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromUInt8NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromUInt8NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromUInt8NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UBYTE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned char*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt8NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromUInt8NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; short *arg4 = (short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_SHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned short *arg4 = (unsigned short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromUInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromUInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromUInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_USHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromUInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; int *arg4 = (int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_INT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned int *arg4 = (unsigned int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromUInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromUInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromUInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UINT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromUInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; float *arg4 = (float *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_FLOAT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (float*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; double *arg4 = (double *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetVectorImageFromDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_DOUBLE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (double*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; std::complex< float > *arg4 = (std::complex< float > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_SetVectorImageFromCFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromCFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromCFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_float_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetVectorImageFromCFloatNumpyArray_" "', argument " "4"" of type '" "std::complex< float > *""'"); } arg4 = reinterpret_cast< std::complex< float > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_SetVectorImageFromCFloatNumpyArray_" "', 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 '" "Application_SetVectorImageFromCFloatNumpyArray_" "', 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 '" "Application_SetVectorImageFromCFloatNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetVectorImageFromCFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromCFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetVectorImageFromCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; std::complex< double > *arg4 = (std::complex< double > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_SetVectorImageFromCDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_double_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', argument " "4"" of type '" "std::complex< double > *""'"); } arg4 = reinterpret_cast< std::complex< double > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', 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 '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', 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 '" "Application_SetVectorImageFromCDoubleNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetVectorImageFromCDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetVectorImageFromCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetVectorImageFromCDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned char *arg4 = (unsigned char *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromUInt8NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromUInt8NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromUInt8NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UBYTE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned char*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt8NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromUInt8NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; short *arg4 = (short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_SHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned short *arg4 = (unsigned short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromUInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromUInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromUInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_USHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromUInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; int *arg4 = (int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_INT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; unsigned int *arg4 = (unsigned int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromUInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromUInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromUInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UINT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromUInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; float *arg4 = (float *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_FLOAT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (float*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; double *arg4 = (double *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_SetImageFromDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_DOUBLE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (double*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; std::complex< float > *arg4 = (std::complex< float > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_SetImageFromCFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromCFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromCFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_float_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetImageFromCFloatNumpyArray_" "', argument " "4"" of type '" "std::complex< float > *""'"); } arg4 = reinterpret_cast< std::complex< float > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_SetImageFromCFloatNumpyArray_" "', 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 '" "Application_SetImageFromCFloatNumpyArray_" "', 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 '" "Application_SetImageFromCFloatNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetImageFromCFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromCFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetImageFromCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int arg3 ; std::complex< double > *arg4 = (std::complex< double > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_SetImageFromCDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetImageFromCDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_SetImageFromCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_SetImageFromCDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_double_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetImageFromCDoubleNumpyArray_" "', argument " "4"" of type '" "std::complex< double > *""'"); } arg4 = reinterpret_cast< std::complex< double > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_SetImageFromCDoubleNumpyArray_" "', 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 '" "Application_SetImageFromCDoubleNumpyArray_" "', 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 '" "Application_SetImageFromCDoubleNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetImageFromCDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetImageFromCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetImageFromCDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; unsigned char **arg3 = (unsigned char **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsUInt8NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsUInt8NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt8NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsUInt8NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_UBYTE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; short **arg3 = (short **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; short *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsInt16NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsInt16NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_SHORT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; unsigned short **arg3 = (unsigned short **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsUInt16NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsUInt16NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt16NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsUInt16NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_USHORT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; int **arg3 = (int **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsInt32NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsInt32NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_INT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; unsigned int **arg3 = (unsigned int **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsUInt32NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsUInt32NumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt32NumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsUInt32NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_UINT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; float **arg3 = (float **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; float *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsFloatNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsFloatNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_FLOAT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; double **arg3 = (double **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsDoubleNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsDoubleNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_DOUBLE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::complex< float > **arg3 = (std::complex< float > **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::complex< float > *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsCFloatNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsCFloatNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsCFloatNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsCFloatNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_CFLOAT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_GetVectorImageAsCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; std::string arg2 ; std::complex< double > **arg3 = (std::complex< double > **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::complex< double > *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_GetVectorImageAsCDoubleNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_GetVectorImageAsCDoubleNumpyArray_" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_GetVectorImageAsCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsCDoubleNumpyArray_(arg1,arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_GetVectorImageAsCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_GetVectorImageAsCDoubleNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_CDOUBLE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_ConvertPixelTypeToNumpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; otb::Wrapper::ImagePixelType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_ConvertPixelTypeToNumpy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_ConvertPixelTypeToNumpy" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_ConvertPixelTypeToNumpy" "', argument " "2"" of type '" "otb::Wrapper::ImagePixelType""'"); } arg2 = static_cast< otb::Wrapper::ImagePixelType >(val2); { try { result = Application_ConvertPixelTypeToNumpy(arg1,arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_ConvertPixelTypeToNumpy: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_ConvertPixelTypeToNumpy" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_SetupImageInformation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; ImageBaseType *arg2 = (ImageBaseType *) 0 ; itk::Point< itk::SpacePrecisionType,2 > arg3 ; itk::Vector< itk::SpacePrecisionType,2 > arg4 ; itk::Size< 2 > arg5 ; itk::ImageRegion< 2 > arg6 ; itkMetaDataDictionary arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_SetupImageInformation",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_SetupImageInformation" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_SetupImageInformation" "', argument " "2"" of type '" "ImageBaseType *""'"); } arg2 = reinterpret_cast< ImageBaseType * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__PointT_double_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_SetupImageInformation" "', argument " "3"" of type '" "itk::Point< itk::SpacePrecisionType,2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetupImageInformation" "', argument " "3"" of type '" "itk::Point< itk::SpacePrecisionType,2 >""'"); } else { itk::Point< itk::SpacePrecisionType,2 > * temp = reinterpret_cast< itk::Point< itk::SpacePrecisionType,2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_itk__VectorT_double_2_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_SetupImageInformation" "', argument " "4"" of type '" "itk::Vector< itk::SpacePrecisionType,2 >""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetupImageInformation" "', argument " "4"" of type '" "itk::Vector< itk::SpacePrecisionType,2 >""'"); } else { itk::Vector< itk::SpacePrecisionType,2 > * temp = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_itk__SizeT_2_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Application_SetupImageInformation" "', argument " "5"" of type '" "itk::Size< 2 >""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetupImageInformation" "', argument " "5"" of type '" "itk::Size< 2 >""'"); } else { itk::Size< 2 > * temp = reinterpret_cast< itk::Size< 2 > * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Application_SetupImageInformation" "', argument " "6"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetupImageInformation" "', argument " "6"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp6); arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Application_SetupImageInformation" "', argument " "7"" of type '" "itkMetaDataDictionary""'"); } if (!argp7) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_SetupImageInformation" "', argument " "7"" of type '" "itkMetaDataDictionary""'"); } else { itkMetaDataDictionary * temp = reinterpret_cast< itkMetaDataDictionary * >(argp7); arg7 = *temp; if (SWIG_IsNewObj(res7)) delete temp; } } { try { Application_SetupImageInformation(arg1,arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_SetupImageInformation: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_SetupImageInformation" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_Application(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_Application",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Application" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { delete_Application(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_Application: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_Application" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *Application_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Application, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_Application_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_Application_Pointer")) SWIG_fail; { try { result = (Application_Pointer *)new Application_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_Application_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_Application_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Application_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_Application_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Application_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_Application_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Application_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Application_Pointer" "', argument " "1"" of type '" "Application_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Application_Pointer" "', argument " "1"" of type '" "Application_Pointer const &""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (Application_Pointer *)new Application_Pointer((Application_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_Application_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_Application_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Application_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_Application_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application *arg1 = (Application *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Application_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_Application_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Application_Pointer" "', argument " "1"" of type '" "Application *""'"); } arg1 = reinterpret_cast< Application * >(argp1); { try { result = (Application_Pointer *)new Application_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_Application_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_Application_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Application_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_Application_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_Application_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_Application_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Application_Pointer'.\n" " Possible C/C++ prototypes are:\n" " Application_Pointer::Application_Pointer()\n" " Application_Pointer::Application_Pointer(Application_Pointer const &)\n" " Application_Pointer::Application_Pointer(Application *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_Application_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_Application_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Application_Pointer" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_Application_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_Application_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Application *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer___deref__" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (Application *)((Application_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Application, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsNotNull" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (bool)((Application_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsNull" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (bool)((Application_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Application *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetPointer" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (Application *)((Application_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Application, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetName" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetName" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetName" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (*arg1)->SetName((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetName" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetName" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 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:Application_Pointer_SetDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDescription" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetDescription" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->SetDescription((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDescription" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDescription" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_Init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_Init" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->Init(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_Init: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_Init" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_UpdateParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_UpdateParameters",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_UpdateParameters" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->UpdateParameters(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_UpdateParameters: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_UpdateParameters" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_Execute",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_Execute" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (int)(*arg1)->Execute(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_Execute" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_WriteOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_WriteOutput",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_WriteOutput" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->WriteOutput(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_WriteOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_WriteOutput" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ExecuteAndWriteOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_ExecuteAndWriteOutput",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ExecuteAndWriteOutput" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (int)(*arg1)->ExecuteAndWriteOutput(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_ExecuteAndWriteOutput: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_ExecuteAndWriteOutput" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ConnectImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; Application *arg3 = (Application *) 0 ; std::string arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_ConnectImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ConnectImage" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_ConnectImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Application, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_ConnectImage" "', argument " "3"" of type '" "Application *""'"); } arg3 = reinterpret_cast< Application * >(argp3); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_ConnectImage" "', argument " "4"" of type '" "std::string""'"); } arg4 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->ConnectImage(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_ConnectImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_ConnectImage" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_PropagateConnectMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_PropagateConnectMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_PropagateConnectMode" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_PropagateConnectMode" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { try { (*arg1)->PropagateConnectMode(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_PropagateConnectMode: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_PropagateConnectMode" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_LoadParametersFromXML(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_LoadParametersFromXML",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_LoadParametersFromXML" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_LoadParametersFromXML" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_LoadParametersFromXML" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (*arg1)->LoadParametersFromXML((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_LoadParametersFromXML: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_LoadParametersFromXML" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SaveParametersToXML(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_SaveParametersToXML",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SaveParametersToXML" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SaveParametersToXML" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SaveParametersToXML" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (*arg1)->SaveParametersToXML((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SaveParametersToXML: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SaveParametersToXML" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetLogger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Logger *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetLogger",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetLogger" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (Logger *)(*arg1)->GetLogger(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetLogger: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetLogger" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Logger, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsDeprecated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_IsDeprecated",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsDeprecated" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (bool)(*arg1)->IsDeprecated(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsDeprecated: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsDeprecated" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParametersKeys__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParametersKeys",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParametersKeys" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetParametersKeys" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { try { result = (*arg1)->GetParametersKeys(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParametersKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParametersKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParametersKeys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetParametersKeys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParametersKeys" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetParametersKeys(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParametersKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParametersKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParametersKeys(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetParametersKeys__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetParametersKeys__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetParametersKeys'.\n" " Possible C/C++ prototypes are:\n" " Application::GetParametersKeys(bool)\n" " Application::GetParametersKeys()\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterByKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Parameter *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterByKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterByKey" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterByKey" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (Parameter *)(*arg1)->GetParameterByKey(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterByKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterByKey" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Parameter, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterName" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterName" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetParameterName(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterName" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterDescription" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterDescription" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetParameterDescription(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterDescription" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterDescription",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterDescription" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterDescription" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterDescription" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->SetParameterDescription(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterDescription" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterUserValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterUserValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterUserValue" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterUserValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterUserValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); { try { (*arg1)->SetParameterUserValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterUserValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterUserValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_EnableParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_EnableParameter",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_EnableParameter" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_EnableParameter" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->EnableParameter(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_EnableParameter: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_EnableParameter" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_DisableParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_DisableParameter",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_DisableParameter" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_DisableParameter" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->DisableParameter(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_DisableParameter: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_DisableParameter" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsParameterEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_IsParameterEnabled",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsParameterEnabled" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_IsParameterEnabled" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->IsParameterEnabled(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsParameterEnabled: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsParameterEnabled" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsMandatory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_IsMandatory",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsMandatory" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_IsMandatory" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->IsMandatory(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsMandatory: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsMandatory" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_HasAutomaticValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_HasAutomaticValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_HasAutomaticValue" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_HasAutomaticValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->HasAutomaticValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_HasAutomaticValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_HasAutomaticValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_HasUserValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_HasUserValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_HasUserValue" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_HasUserValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->HasUserValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_HasUserValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_HasUserValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ClearValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_ClearValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ClearValue" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_ClearValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->ClearValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_ClearValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_ClearValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_HasValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_HasValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_HasValue" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_HasValue" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (bool)(*arg1)->HasValue(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_HasValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_HasValue" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterUserLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::UserLevel result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterUserLevel",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterUserLevel" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterUserLevel" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::UserLevel)(*arg1)->GetParameterUserLevel(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterUserLevel: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterUserLevel" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ParameterType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterType" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::ParameterType)(*arg1)->GetParameterType(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterRole(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::Role result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterRole",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterRole" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterRole" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::Role)(*arg1)->GetParameterRole(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterRole: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterRole" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetChoiceKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetChoiceKeys",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetChoiceKeys" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetChoiceKeys" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetChoiceKeys(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetChoiceKeys: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetChoiceKeys" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetChoiceNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetChoiceNames",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetChoiceNames" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetChoiceNames" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetChoiceNames(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetChoiceNames: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetChoiceNames" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_IsApplicationReady(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_IsApplicationReady",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_IsApplicationReady" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (bool)(*arg1)->IsApplicationReady(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_IsApplicationReady: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_IsApplicationReady" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterInt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetParameterInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterInt" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterInt" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_SetParameterInt" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (*arg1)->SetParameterInt(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterInt" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterInt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterInt",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterInt" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterInt" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { try { (*arg1)->SetParameterInt(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterInt" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterInt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterInt__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(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_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterInt__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_SetParameterInt'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterInt(std::string,int,bool)\n" " Application::SetParameterInt(std::string,int)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterFloat__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; float arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetParameterFloat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (*arg1)->SetParameterFloat(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterFloat" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterFloat__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; float arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterFloat",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_float(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterFloat" "', argument " "3"" of type '" "float""'"); } arg3 = static_cast< float >(val3); { try { (*arg1)->SetParameterFloat(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterFloat" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterFloat(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterFloat__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(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_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterFloat__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_SetParameterFloat'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterFloat(std::string,float,bool)\n" " Application::SetParameterFloat(std::string,float)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetParameterString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterString" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterString" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_SetParameterString" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (*arg1)->SetParameterString(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterString" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterString" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterString" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->SetParameterString(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterString" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterString(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_SetParameterString__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterString__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_SetParameterString'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterString(std::string,std::string,bool)\n" " Application::SetParameterString(std::string,std::string)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterStringList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::vector< std::string,std::allocator< std::string > > arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetParameterStringList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { try { (*arg1)->SetParameterStringList(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterStringList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterStringList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::vector< std::string,std::allocator< std::string > > arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterStringList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterStringList" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->SetParameterStringList(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterStringList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterStringList(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_SetParameterStringList__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetParameterStringList__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_SetParameterStringList'.\n" " Possible C/C++ prototypes are:\n" " Application::SetParameterStringList(std::string,std::vector< std::string,std::allocator< std::string > >,bool)\n" " Application::SetParameterStringList(std::string,std::vector< std::string,std::allocator< std::string > >)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterOutputImagePixelType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; otb::Wrapper::ImagePixelType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterOutputImagePixelType",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterOutputImagePixelType" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterOutputImagePixelType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetParameterOutputImagePixelType" "', argument " "3"" of type '" "otb::Wrapper::ImagePixelType""'"); } arg3 = static_cast< otb::Wrapper::ImagePixelType >(val3); { try { (*arg1)->SetParameterOutputImagePixelType(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterOutputImagePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterOutputImagePixelType" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterOutputImagePixelType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterOutputImagePixelType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterOutputImagePixelType" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterOutputImagePixelType" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (otb::Wrapper::ImagePixelType)(*arg1)->GetParameterOutputImagePixelType(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterOutputImagePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterOutputImagePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterInt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterInt" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterInt" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (int)(*arg1)->GetParameterInt(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterInt: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterInt" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; float result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterFloat",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterFloat" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterFloat" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (float)(*arg1)->GetParameterFloat(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterFloat: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterFloat" ); } } resultobj = SWIG_From_float(static_cast< float >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterString" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetParameterString(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterString" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterStringList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterStringList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetParameterStringList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterStringList" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterAsString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterAsString" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterAsString" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (*arg1)->GetParameterAsString(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterAsString: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterAsString" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetListViewSingleSelectionMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetListViewSingleSelectionMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetListViewSingleSelectionMode" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetListViewSingleSelectionMode" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetListViewSingleSelectionMode" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (bool)(*arg1)->GetListViewSingleSelectionMode((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetListViewSingleSelectionMode: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetListViewSingleSelectionMode" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterOutputImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetParameterOutputImage",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterOutputImage" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetParameterOutputImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (ImageBaseType *)(*arg1)->GetParameterOutputImage(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterOutputImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterOutputImage" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetParameterInputImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; ImageBaseType *arg3 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetParameterInputImage",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetParameterInputImage" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetParameterInputImage" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_SetParameterInputImage" "', argument " "3"" of type '" "ImageBaseType *""'"); } arg3 = reinterpret_cast< ImageBaseType * >(argp3); { try { (*arg1)->SetParameterInputImage(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetParameterInputImage: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetParameterInputImage" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddImageToParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; ImageBaseType *arg3 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_AddImageToParameterInputImageList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddImageToParameterInputImageList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_AddImageToParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_AddImageToParameterInputImageList" "', argument " "3"" of type '" "ImageBaseType *""'"); } arg3 = reinterpret_cast< ImageBaseType * >(argp3); { try { (*arg1)->AddImageToParameterInputImageList(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddImageToParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddImageToParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_AddParameterStringList",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddParameterStringList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_AddParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_AddParameterStringList" "', argument " "3"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_AddParameterStringList" "', argument " "3"" of type '" "std::string const &""'"); } arg3 = ptr; } { try { (*arg1)->AddParameterStringList(arg2,(std::string const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddParameterStringList" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetNthParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; unsigned int *arg3 = 0 ; ImageBaseType *arg4 = (ImageBaseType *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int temp3 ; unsigned int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetNthParameterInputImageList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetNthParameterInputImageList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetNthParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetNthParameterInputImageList" "', argument " "3"" of type '" "unsigned int""'"); } temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetNthParameterInputImageList" "', argument " "4"" of type '" "ImageBaseType *""'"); } arg4 = reinterpret_cast< ImageBaseType * >(argp4); { try { (*arg1)->SetNthParameterInputImageList(arg2,(unsigned int const &)*arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetNthParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetNthParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetNthParameterStringList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; unsigned int *arg3 = 0 ; std::string *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int temp3 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetNthParameterStringList",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetNthParameterStringList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetNthParameterStringList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetNthParameterStringList" "', argument " "3"" of type '" "unsigned int""'"); } temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetNthParameterStringList" "', argument " "4"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetNthParameterStringList" "', argument " "4"" of type '" "std::string const &""'"); } arg4 = ptr; } { try { (*arg1)->SetNthParameterStringList(arg2,(unsigned int const &)*arg3,(std::string const &)*arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetNthParameterStringList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetNthParameterStringList" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ClearParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_ClearParameterInputImageList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ClearParameterInputImageList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_ClearParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->ClearParameterInputImageList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_ClearParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_ClearParameterInputImageList" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetNumberOfElementsInParameterInputImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetNumberOfElementsInParameterInputImageList",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetNumberOfElementsInParameterInputImageList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetNumberOfElementsInParameterInputImageList" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { result = (unsigned int)(*arg1)->GetNumberOfElementsInParameterInputImageList(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetNumberOfElementsInParameterInputImageList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetNumberOfElementsInParameterInputImageList" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageOrigin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Point< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageOrigin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageOrigin" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageOrigin" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageOrigin((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageOrigin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageOrigin" ); } } resultobj = SWIG_NewPointerObj((new itk::Point< itk::SpacePrecisionType,2 >(static_cast< const itk::Point< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageOrigin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Point< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageOrigin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageOrigin" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageOrigin" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageOrigin((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageOrigin: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageOrigin" ); } } resultobj = SWIG_NewPointerObj((new itk::Point< itk::SpacePrecisionType,2 >(static_cast< const itk::Point< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__PointT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageOrigin(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageOrigin__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageOrigin__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageOrigin'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageOrigin(std::string const &,unsigned int)\n" " Application::GetImageOrigin(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSpacing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Vector< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageSpacing",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageSpacing" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageSpacing" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageSpacing((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageSpacing: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageSpacing" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< itk::SpacePrecisionType,2 >(static_cast< const itk::Vector< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSpacing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Vector< itk::SpacePrecisionType,2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageSpacing",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageSpacing" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageSpacing" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageSpacing((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageSpacing: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageSpacing" ); } } resultobj = SWIG_NewPointerObj((new itk::Vector< itk::SpacePrecisionType,2 >(static_cast< const itk::Vector< itk::SpacePrecisionType,2 >& >(result))), SWIGTYPE_p_itk__VectorT_double_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSpacing(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageSpacing__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageSpacing__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageSpacing'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageSpacing(std::string const &,unsigned int)\n" " Application::GetImageSpacing(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::Size< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageSize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageSize" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageSize" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageSize((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageSize" ); } } resultobj = SWIG_NewPointerObj((new itk::Size< 2 >(static_cast< const itk::Size< 2 >& >(result))), SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::Size< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageSize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageSize" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageSize" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageSize((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageSize: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageSize" ); } } resultobj = SWIG_NewPointerObj((new itk::Size< 2 >(static_cast< const itk::Size< 2 >& >(result))), SWIGTYPE_p_itk__SizeT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageSize(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageSize__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageSize__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageSize'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageSize(std::string const &,unsigned int)\n" " Application::GetImageSize(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageNbBands__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageNbBands",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageNbBands" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageNbBands" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (unsigned int)(*arg1)->GetImageNbBands((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageNbBands: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageNbBands" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageNbBands__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageNbBands",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageNbBands" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageNbBands" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (unsigned int)(*arg1)->GetImageNbBands((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageNbBands: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageNbBands" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageNbBands(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageNbBands__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageNbBands__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageNbBands'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageNbBands(std::string const &,unsigned int)\n" " Application::GetImageNbBands(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageProjection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageProjection",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageProjection" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageProjection" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageProjection((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageProjection: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageProjection" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageProjection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageProjection",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageProjection" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageProjection" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageProjection((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageProjection: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageProjection" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageProjection(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageProjection__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageProjection__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageProjection'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageProjection(std::string const &,unsigned int)\n" " Application::GetImageProjection(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageKeywordlist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; otb::ImageKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageKeywordlist",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageKeywordlist((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageKeywordlist" ); } } resultobj = SWIG_NewPointerObj((new otb::ImageKeywordlist(static_cast< const otb::ImageKeywordlist& >(result))), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageKeywordlist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::ImageKeywordlist result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageKeywordlist",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageKeywordlist" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageKeywordlist((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageKeywordlist: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageKeywordlist" ); } } resultobj = SWIG_NewPointerObj((new otb::ImageKeywordlist(static_cast< const otb::ImageKeywordlist& >(result))), SWIGTYPE_p_otb__ImageKeywordlist, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageKeywordlist(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageKeywordlist__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageKeywordlist__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageKeywordlist'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageKeywordlist(std::string const &,unsigned int)\n" " Application::GetImageKeywordlist(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_PropagateRequestedRegion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; itk::ImageRegion< 2 > arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_PropagateRequestedRegion",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { try { result = (unsigned long)(*arg1)->PropagateRequestedRegion((std::string const &)*arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_PropagateRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_PropagateRequestedRegion" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_PropagateRequestedRegion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; itk::ImageRegion< 2 > arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_PropagateRequestedRegion",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_PropagateRequestedRegion" "', argument " "3"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { result = (unsigned long)(*arg1)->PropagateRequestedRegion((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_PropagateRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_PropagateRequestedRegion" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_PropagateRequestedRegion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_PropagateRequestedRegion__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itk__ImageRegionT_2_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_PropagateRequestedRegion__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_PropagateRequestedRegion'.\n" " Possible C/C++ prototypes are:\n" " Application::PropagateRequestedRegion(std::string const &,itk::ImageRegion< 2 >,unsigned int)\n" " Application::PropagateRequestedRegion(std::string const &,itk::ImageRegion< 2 >)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageRequestedRegion__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itk::ImageRegion< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageRequestedRegion",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageRequestedRegion((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageRequestedRegion" ); } } resultobj = SWIG_NewPointerObj((new itk::ImageRegion< 2 >(static_cast< const itk::ImageRegion< 2 >& >(result))), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageRequestedRegion__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itk::ImageRegion< 2 > result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageRequestedRegion",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageRequestedRegion" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageRequestedRegion((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageRequestedRegion: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageRequestedRegion" ); } } resultobj = SWIG_NewPointerObj((new itk::ImageRegion< 2 >(static_cast< const itk::ImageRegion< 2 >& >(result))), SWIGTYPE_p_itk__ImageRegionT_2_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageRequestedRegion(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageRequestedRegion__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageRequestedRegion__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageRequestedRegion'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageRequestedRegion(std::string const &,unsigned int)\n" " Application::GetImageRequestedRegion(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageMetaData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; itkMetaDataDictionary result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageMetaData",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageMetaData" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageMetaData" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetImageMetaData((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageMetaData: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageMetaData" ); } } resultobj = SWIG_NewPointerObj((new itkMetaDataDictionary(static_cast< const itkMetaDataDictionary& >(result))), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageMetaData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkMetaDataDictionary result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageMetaData",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageMetaData" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageMetaData" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (*arg1)->GetImageMetaData((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageMetaData: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageMetaData" ); } } resultobj = SWIG_NewPointerObj((new itkMetaDataDictionary(static_cast< const itkMetaDataDictionary& >(result))), SWIGTYPE_p_itkMetaDataDictionary, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageMetaData(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageMetaData__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageMetaData__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageMetaData'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageMetaData(std::string const &,unsigned int)\n" " Application::GetImageMetaData(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageBasePixelType__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetImageBasePixelType",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (otb::Wrapper::ImagePixelType)(*arg1)->GetImageBasePixelType((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageBasePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageBasePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageBasePixelType__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; otb::Wrapper::ImagePixelType result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetImageBasePixelType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_GetImageBasePixelType" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (otb::Wrapper::ImagePixelType)(*arg1)->GetImageBasePixelType((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetImageBasePixelType: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetImageBasePixelType" ); } } resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetImageBasePixelType(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_GetImageBasePixelType__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_GetImageBasePixelType__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_GetImageBasePixelType'.\n" " Possible C/C++ prototypes are:\n" " Application::GetImageBasePixelType(std::string const &,unsigned int)\n" " Application::GetImageBasePixelType(std::string const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetProgressSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetProgressSource",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetProgressSource" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (itkProcessObject *)(*arg1)->GetProgressSource(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetProgressSource: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetProgressSource" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkProcessObject, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetProgressDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetProgressDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetProgressDescription" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetProgressDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetProgressDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetProgressDescription" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_FreeRessources(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_FreeRessources",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_FreeRessources" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->FreeRessources(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_FreeRessources: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_FreeRessources" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocLongDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 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:Application_Pointer_SetDocLongDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocLongDescription" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetDocLongDescription" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->SetDocLongDescription((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocLongDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocLongDescription" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDocLongDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDocLongDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDocLongDescription" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDocLongDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDocLongDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDocLongDescription" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocAuthors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 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:Application_Pointer_SetDocAuthors",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocAuthors" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetDocAuthors" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->SetDocAuthors((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocAuthors: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocAuthors" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDocAuthors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDocAuthors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDocAuthors" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDocAuthors(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDocAuthors: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDocAuthors" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocLimitations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 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:Application_Pointer_SetDocLimitations",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocLimitations" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetDocLimitations" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->SetDocLimitations((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocLimitations: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocLimitations" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDocLimitations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDocLimitations",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDocLimitations" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDocLimitations(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDocLimitations: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDocLimitations" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocSeeAlso(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 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:Application_Pointer_SetDocSeeAlso",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocSeeAlso" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetDocSeeAlso" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); { try { (*arg1)->SetDocSeeAlso((char const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocSeeAlso: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocSeeAlso" ); } } resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDocSeeAlso(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDocSeeAlso",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDocSeeAlso" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetDocSeeAlso(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDocSeeAlso: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDocSeeAlso" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::vector< std::string,std::allocator< std::string > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_SetDocTags",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocTags" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; int res = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetDocTags" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > >""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->SetDocTags(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocTags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocTags" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddDocTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_AddDocTag",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddDocTag" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_AddDocTag" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_AddDocTag" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { (*arg1)->AddDocTag((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddDocTag: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddDocTag" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetDocTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetDocTags",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetDocTags" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetDocTags(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetDocTags: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetDocTags" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetParameterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; otb::Wrapper::ParameterGroup *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetParameterList",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetParameterList" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (otb::Wrapper::ParameterGroup *)(*arg1)->GetParameterList(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetParameterList: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetParameterList" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_otb__Wrapper__ParameterGroup, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetNumberOfExamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetNumberOfExamples",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetNumberOfExamples" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (unsigned int)(*arg1)->GetNumberOfExamples(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetNumberOfExamples: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetNumberOfExamples" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetExampleComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetExampleComment",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetExampleComment" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetExampleComment" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (*arg1)->GetExampleComment(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetExampleComment: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetExampleComment" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetExampleNumberOfParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetExampleNumberOfParameters",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetExampleNumberOfParameters" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetExampleNumberOfParameters" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { try { result = (unsigned int)(*arg1)->GetExampleNumberOfParameters(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetExampleNumberOfParameters: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetExampleNumberOfParameters" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetExampleParameterKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned int arg2 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetExampleParameterKey",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetExampleParameterKey" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetExampleParameterKey" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetExampleParameterKey" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetExampleParameterKey(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetExampleParameterKey: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetExampleParameterKey" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetExampleParameterValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned int arg2 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_GetExampleParameterValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetExampleParameterValue" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetExampleParameterValue" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_GetExampleParameterValue" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { result = (*arg1)->GetExampleParameterValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetExampleParameterValue" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocExampleParameterValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetDocExampleParameterValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "2"" of type '" "std::string const""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "3"" of type '" "std::string const""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { try { (*arg1)->SetDocExampleParameterValue(arg2,arg3,arg4); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocExampleParameterValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocExampleParameterValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetDocExampleParameterValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "2"" of type '" "std::string const""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetDocExampleParameterValue" "', argument " "3"" of type '" "std::string const""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (*arg1)->SetDocExampleParameterValue(arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetDocExampleParameterValue: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetDocExampleParameterValue" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetDocExampleParameterValue(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_SetDocExampleParameterValue__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Application_Pointer_SetDocExampleParameterValue__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_SetDocExampleParameterValue'.\n" " Possible C/C++ prototypes are:\n" " Application::SetDocExampleParameterValue(std::string const,std::string const,unsigned int)\n" " Application::SetDocExampleParameterValue(std::string const,std::string const)\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetExampleComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_SetExampleComment",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetExampleComment" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetExampleComment" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetExampleComment" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetExampleComment" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { try { (*arg1)->SetExampleComment((std::string const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetExampleComment: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetExampleComment" ); } } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddExample__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_AddExample",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddExample" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_AddExample" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_AddExample" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } { try { result = (unsigned int)(*arg1)->AddExample((std::string const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddExample" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddExample__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_AddExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddExample" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (unsigned int)(*arg1)->AddExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddExample" ); } } resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddExample(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_AddExample__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_AddExample__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_AddExample'.\n" " Possible C/C++ prototypes are:\n" " Application::AddExample(std::string const &)\n" " Application::AddExample()\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetCLExample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetCLExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetCLExample" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetCLExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetCLExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetCLExample" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetHtmlExample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetHtmlExample",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetHtmlExample" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetHtmlExample(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetHtmlExample: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetHtmlExample" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetOutputParametersSumUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > > > result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetOutputParametersSumUp",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetOutputParametersSumUp" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->GetOutputParametersSumUp(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetOutputParametersSumUp: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetOutputParametersSumUp" ); } } resultobj = SWIG_NewPointerObj((new std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > >(static_cast< const std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > >& >(result))), SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned char *arg4 = (unsigned char *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromUInt8NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromUInt8NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromUInt8NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UBYTE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned char*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt8NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt8NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; short *arg4 = (short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_SHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned short *arg4 = (unsigned short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromUInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromUInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromUInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_USHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; int *arg4 = (int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_INT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned int *arg4 = (unsigned int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromUInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromUInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromUInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UINT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromUInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromUInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; float *arg4 = (float *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_FLOAT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (float*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; double *arg4 = (double *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetVectorImageFromDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_DOUBLE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (double*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetVectorImageFromDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; std::complex< float > *arg4 = (std::complex< float > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_Pointer_SetVectorImageFromCFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_float_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', argument " "4"" of type '" "std::complex< float > *""'"); } arg4 = reinterpret_cast< std::complex< float > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', 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 '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', 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 '" "Application_Pointer_SetVectorImageFromCFloatNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetVectorImageFromCFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromCFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetVectorImageFromCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; std::complex< double > *arg4 = (std::complex< double > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_Pointer_SetVectorImageFromCDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_double_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', argument " "4"" of type '" "std::complex< double > *""'"); } arg4 = reinterpret_cast< std::complex< double > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', 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 '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', 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 '" "Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetVectorImageFromCDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetVectorImageFromCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetVectorImageFromCDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned char *arg4 = (unsigned char *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromUInt8NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromUInt8NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromUInt8NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UBYTE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned char*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt8NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromUInt8NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; short *arg4 = (short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_SHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned short *arg4 = (unsigned short *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromUInt16NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromUInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromUInt16NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_USHORT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned short*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromUInt16NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; int *arg4 = (int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_INT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; unsigned int *arg4 = (unsigned int *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromUInt32NumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromUInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromUInt32NumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_UINT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (unsigned int*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromUInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromUInt32NumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; float *arg4 = (float *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_FLOAT); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (float*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; double *arg4 = (double *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; PyArrayObject *array4 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Application_Pointer_SetImageFromDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { array4 = obj_to_array_no_conversion(obj3, NPY_DOUBLE); if (!array4 || !require_dimensions(array4,3) || !require_contiguous(array4) || !require_native(array4)) SWIG_fail; arg4 = (double*) array_data(array4); arg5 = (int) array_size(array4,0); arg6 = (int) array_size(array4,1); arg7 = (int) array_size(array4,2); } { try { result = (ImageBaseType *)Application_SetImageFromDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; std::complex< float > *arg4 = (std::complex< float > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_Pointer_SetImageFromCFloatNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_float_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', argument " "4"" of type '" "std::complex< float > *""'"); } arg4 = reinterpret_cast< std::complex< float > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', 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 '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', 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 '" "Application_Pointer_SetImageFromCFloatNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetImageFromCFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromCFloatNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetImageFromCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int arg3 ; std::complex< double > *arg4 = (std::complex< double > *) 0 ; int arg5 ; int arg6 ; int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 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 ; ImageBaseType *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_Pointer_SetImageFromCDoubleNumpyArray_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__complexT_double_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', argument " "4"" of type '" "std::complex< double > *""'"); } arg4 = reinterpret_cast< std::complex< double > * >(argp4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', 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 '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', 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 '" "Application_Pointer_SetImageFromCDoubleNumpyArray_" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast< int >(val7); { try { result = (ImageBaseType *)Application_SetImageFromCDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetImageFromCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetImageFromCDoubleNumpyArray_" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImageBaseType, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsUInt8NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; unsigned char **arg3 = (unsigned char **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsUInt8NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsUInt8NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsUInt8NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt8NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt8NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt8NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_UBYTE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; short **arg3 = (short **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; short *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsInt16NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsInt16NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_SHORT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsUInt16NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; unsigned short **arg3 = (unsigned short **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsUInt16NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsUInt16NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsUInt16NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt16NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt16NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt16NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_USHORT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; int **arg3 = (int **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsInt32NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsInt32NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_INT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsUInt32NumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; unsigned int **arg3 = (unsigned int **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsUInt32NumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsUInt32NumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsUInt32NumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsUInt32NumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt32NumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsUInt32NumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_UINT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; float **arg3 = (float **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; float *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsFloatNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsFloatNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_FLOAT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; double **arg3 = (double **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsDoubleNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsDoubleNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_DOUBLE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsCFloatNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::complex< float > **arg3 = (std::complex< float > **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::complex< float > *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsCFloatNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsCFloatNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsCFloatNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsCFloatNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsCFloatNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsCFloatNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_CFLOAT, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetVectorImageAsCDoubleNumpyArray_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::string arg2 ; std::complex< double > **arg3 = (std::complex< double > **) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; int *arg6 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::complex< double > *data_temp3 = NULL ; int dim1_temp3 ; int dim2_temp3 ; int dim3_temp3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { arg3 = &data_temp3; arg4 = &dim1_temp3; arg5 = &dim2_temp3; arg6 = &dim3_temp3; } if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetVectorImageAsCDoubleNumpyArray_",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetVectorImageAsCDoubleNumpyArray_" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Application_Pointer_GetVectorImageAsCDoubleNumpyArray_" "', argument " "2"" of type '" "std::string""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Application_GetVectorImageAsCDoubleNumpyArray_((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetVectorImageAsCDoubleNumpyArray_: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetVectorImageAsCDoubleNumpyArray_" ); } } resultobj = SWIG_Py_Void(); { npy_intp dims[3] = { *arg4, *arg5, *arg6 }; PyObject* obj = PyArray_SimpleNewFromData(3, dims, NPY_CDOUBLE, (void*)(*arg3)); PyArrayObject* array = (PyArrayObject*) obj; if (!array) SWIG_fail; resultobj = SWIG_Python_AppendOutput(resultobj,obj); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ConvertPixelTypeToNumpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; otb::Wrapper::ImagePixelType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_ConvertPixelTypeToNumpy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ConvertPixelTypeToNumpy" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_ConvertPixelTypeToNumpy" "', argument " "2"" of type '" "otb::Wrapper::ImagePixelType""'"); } arg2 = static_cast< otb::Wrapper::ImagePixelType >(val2); { try { result = Application_ConvertPixelTypeToNumpy((Application*)(arg1)->operator ->(),arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_ConvertPixelTypeToNumpy: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_ConvertPixelTypeToNumpy" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetupImageInformation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; ImageBaseType *arg2 = (ImageBaseType *) 0 ; itk::Point< itk::SpacePrecisionType,2 > arg3 ; itk::Vector< itk::SpacePrecisionType,2 > arg4 ; itk::Size< 2 > arg5 ; itk::ImageRegion< 2 > arg6 ; itkMetaDataDictionary arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; void *argp7 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Application_Pointer_SetupImageInformation",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ImageBaseType, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "2"" of type '" "ImageBaseType *""'"); } arg2 = reinterpret_cast< ImageBaseType * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itk__PointT_double_2_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "3"" of type '" "itk::Point< itk::SpacePrecisionType,2 >""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetupImageInformation" "', argument " "3"" of type '" "itk::Point< itk::SpacePrecisionType,2 >""'"); } else { itk::Point< itk::SpacePrecisionType,2 > * temp = reinterpret_cast< itk::Point< itk::SpacePrecisionType,2 > * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_itk__VectorT_double_2_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "4"" of type '" "itk::Vector< itk::SpacePrecisionType,2 >""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetupImageInformation" "', argument " "4"" of type '" "itk::Vector< itk::SpacePrecisionType,2 >""'"); } else { itk::Vector< itk::SpacePrecisionType,2 > * temp = reinterpret_cast< itk::Vector< itk::SpacePrecisionType,2 > * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_itk__SizeT_2_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "5"" of type '" "itk::Size< 2 >""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetupImageInformation" "', argument " "5"" of type '" "itk::Size< 2 >""'"); } else { itk::Size< 2 > * temp = reinterpret_cast< itk::Size< 2 > * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } { res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_itk__ImageRegionT_2_t, 0 | 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "6"" of type '" "itk::ImageRegion< 2 >""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetupImageInformation" "', argument " "6"" of type '" "itk::ImageRegion< 2 >""'"); } else { itk::ImageRegion< 2 > * temp = reinterpret_cast< itk::ImageRegion< 2 > * >(argp6); arg6 = *temp; if (SWIG_IsNewObj(res6)) delete temp; } } { res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Application_Pointer_SetupImageInformation" "', argument " "7"" of type '" "itkMetaDataDictionary""'"); } if (!argp7) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetupImageInformation" "', argument " "7"" of type '" "itkMetaDataDictionary""'"); } else { itkMetaDataDictionary * temp = reinterpret_cast< itkMetaDataDictionary * >(argp7); arg7 = *temp; if (SWIG_IsNewObj(res7)) delete temp; } } { try { Application_SetupImageInformation((Application*)(arg1)->operator ->(),arg2,arg3,arg4,arg5,arg6,arg7); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetupImageInformation: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetupImageInformation" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkObject_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_New" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_New" ); } } { // get the raw pointer from the smart pointer itkObject * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_itkObject, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetNameOfClass" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_AddObserver" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetCommand" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; itkEventObject *arg2 = 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:Application_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_InvokeEvent" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_RemoveObserver" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Application_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Application_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_HasObserver" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:Application_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Application_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_Print" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Application_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; std::ostream *arg2 = 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:Application_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_Print" "', argument " "1"" of type '" "Application_Pointer const *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Application_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Application_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Application_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Application_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Application_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_Application_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_BreakOnError" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Application_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Application_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Application_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Application_Pointer *arg1 = (Application_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:Application_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Application_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Application_Pointer_ToString" "', argument " "1"" of type '" "Application_Pointer *""'"); } arg1 = reinterpret_cast< Application_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *Application_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Application_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_Registry_GetAvailableApplications(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::string,std::allocator< std::string > > result; if (!PyArg_ParseTuple(args,(char *)":Registry_GetAvailableApplications")) SWIG_fail; { try { result = Registry::GetAvailableApplications(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Registry_GetAvailableApplications: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Registry_GetAvailableApplications" ); } } resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Registry_CreateApplicationWithoutLogger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; Application_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:Registry_CreateApplicationWithoutLogger",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Registry_CreateApplicationWithoutLogger" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Registry_CreateApplicationWithoutLogger" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } { try { result = Registry::CreateApplication((std::string const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Registry_CreateApplicationWithoutLogger: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Registry_CreateApplicationWithoutLogger" ); } } { // get the raw pointer from the smart pointer Application * ptr = result; // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) ptr, SWIGTYPE_p_Application, 1); // register the object, it it exists if (ptr) { ptr->Register(); } } if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_Registry_AddApplicationPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Registry_AddApplicationPath",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Registry_AddApplicationPath" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Registry::AddApplicationPath(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Registry_AddApplicationPath: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Registry_AddApplicationPath" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Registry_SetApplicationPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::string arg1 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Registry_SetApplicationPath",&obj0)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Registry_SetApplicationPath" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { Registry::SetApplicationPath(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Registry_SetApplicationPath: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Registry_SetApplicationPath" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Registry_CleanRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":Registry_CleanRegistry")) SWIG_fail; { try { Registry::CleanRegistry(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication Registry_CleanRegistry: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication Registry_CleanRegistry" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *Registry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Registry, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_AddProcessToWatchEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_AddProcessToWatchEvent")) SWIG_fail; { try { result = (AddProcessToWatchEvent *)new AddProcessToWatchEvent(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_AddProcessToWatchEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_AddProcessToWatchEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AddProcessToWatchEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_AddProcessToWatchEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_AddProcessToWatchEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AddProcessToWatchEvent" "', argument " "1"" of type '" "AddProcessToWatchEvent *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_AddProcessToWatchEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_AddProcessToWatchEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_GetEventName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:AddProcessToWatchEvent_GetEventName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_GetEventName" "', argument " "1"" of type '" "AddProcessToWatchEvent const *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { result = (char *)((AddProcessToWatchEvent const *)arg1)->GetEventName(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_GetEventName: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_GetEventName" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_CheckEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; itkEventObject *arg2 = (itkEventObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:AddProcessToWatchEvent_CheckEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_CheckEvent" "', argument " "1"" of type '" "AddProcessToWatchEvent const *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkEventObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AddProcessToWatchEvent_CheckEvent" "', argument " "2"" of type '" "itkEventObject const *""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)((AddProcessToWatchEvent const *)arg1)->CheckEvent((itkEventObject const *)arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_CheckEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_CheckEvent" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_MakeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkEventObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:AddProcessToWatchEvent_MakeObject",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_MakeObject" "', argument " "1"" of type '" "AddProcessToWatchEvent const *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { result = (itkEventObject *)((AddProcessToWatchEvent const *)arg1)->MakeObject(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_MakeObject: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_MakeObject" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkEventObject, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_AddProcessToWatchEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; AddProcessToWatchEvent *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_AddProcessToWatchEvent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AddProcessToWatchEvent" "', argument " "1"" of type '" "AddProcessToWatchEvent const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AddProcessToWatchEvent" "', argument " "1"" of type '" "AddProcessToWatchEvent const &""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { result = (AddProcessToWatchEvent *)new AddProcessToWatchEvent((AddProcessToWatchEvent const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_AddProcessToWatchEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_AddProcessToWatchEvent" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AddProcessToWatchEvent, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_AddProcessToWatchEvent(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_AddProcessToWatchEvent__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_AddProcessToWatchEvent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_AddProcessToWatchEvent__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AddProcessToWatchEvent'.\n" " Possible C/C++ prototypes are:\n" " AddProcessToWatchEvent::AddProcessToWatchEvent()\n" " AddProcessToWatchEvent::AddProcessToWatchEvent(AddProcessToWatchEvent const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_GetProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkProcessObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:AddProcessToWatchEvent_GetProcess",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_GetProcess" "', argument " "1"" of type '" "AddProcessToWatchEvent const *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { result = (itkProcessObject *)((AddProcessToWatchEvent const *)arg1)->GetProcess(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_GetProcess: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_GetProcess" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkProcessObject, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_SetProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; itkProcessObject *arg2 = (itkProcessObject *) 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:AddProcessToWatchEvent_SetProcess",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_SetProcess" "', argument " "1"" of type '" "AddProcessToWatchEvent *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkProcessObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AddProcessToWatchEvent_SetProcess" "', argument " "2"" of type '" "itkProcessObject *""'"); } arg2 = reinterpret_cast< itkProcessObject * >(argp2); { try { (arg1)->SetProcess(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_SetProcess: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_SetProcess" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_SetProcessDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; std::string arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:AddProcessToWatchEvent_SetProcessDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_SetProcessDescription" "', argument " "1"" of type '" "AddProcessToWatchEvent *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "AddProcessToWatchEvent_SetProcessDescription" "', argument " "2"" of type '" "std::string const""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { try { (arg1)->SetProcessDescription(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_SetProcessDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_SetProcessDescription" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_AddProcessToWatchEvent_GetProcessDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; AddProcessToWatchEvent *arg1 = (AddProcessToWatchEvent *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:AddProcessToWatchEvent_GetProcessDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AddProcessToWatchEvent, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AddProcessToWatchEvent_GetProcessDescription" "', argument " "1"" of type '" "AddProcessToWatchEvent const *""'"); } arg1 = reinterpret_cast< AddProcessToWatchEvent * >(argp1); { try { result = ((AddProcessToWatchEvent const *)arg1)->GetProcessDescription(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication AddProcessToWatchEvent_GetProcessDescription: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication AddProcessToWatchEvent_GetProcessDescription" ); } } resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *AddProcessToWatchEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_AddProcessToWatchEvent, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_itkPyCommand_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer result; if (!PyArg_ParseTuple(args,(char *)":itkPyCommand_New")) SWIG_fail; { try { result = itkPyCommand::New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_New" ); } } resultobj = SWIG_NewPointerObj((new itkPyCommand_Pointer(static_cast< const itkPyCommand_Pointer& >(result))), SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_GetNameOfClass" "', argument " "1"" of type '" "itkPyCommand const *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); { try { result = (char *)((itkPyCommand const *)arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_SetCommandCallable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkPyCommand_SetCommandCallable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_SetCommandCallable" "', argument " "1"" of type '" "itkPyCommand *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); arg2 = obj1; { try { (arg1)->SetCommandCallable(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_SetCommandCallable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_SetCommandCallable" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_GetCommandCallable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_GetCommandCallable",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_GetCommandCallable" "', argument " "1"" of type '" "itkPyCommand *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); { try { result = (PyObject *)(arg1)->GetCommandCallable(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_GetCommandCallable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_GetCommandCallable" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; itkObject *arg2 = (itkObject *) 0 ; itkEventObject *arg3 = 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkPyCommand_Execute",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Execute" "', argument " "1"" of type '" "itkPyCommand *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Execute" "', argument " "2"" of type '" "itkObject *""'"); } arg2 = reinterpret_cast< itkObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkPyCommand_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } arg3 = reinterpret_cast< itkEventObject * >(argp3); { try { (arg1)->Execute(arg2,(itkEventObject const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Execute" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_itkPyCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkPyCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkPyCommand" "', argument " "1"" of type '" "itkPyCommand *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); { try { delete_itkPyCommand(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkPyCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkPyCommand" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkPyCommand_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkPyCommand, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_itkPyCommand_Pointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_itkPyCommand_Pointer")) SWIG_fail; { try { result = (itkPyCommand_Pointer *)new itkPyCommand_Pointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPyCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPyCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkPyCommand_Pointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPyCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkPyCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkPyCommand_Pointer" "', argument " "1"" of type '" "itkPyCommand_Pointer const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_itkPyCommand_Pointer" "', argument " "1"" of type '" "itkPyCommand_Pointer const &""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (itkPyCommand_Pointer *)new itkPyCommand_Pointer((itkPyCommand_Pointer const &)*arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPyCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPyCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkPyCommand_Pointer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand *arg1 = (itkPyCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPyCommand_Pointer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_itkPyCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_itkPyCommand_Pointer" "', argument " "1"" of type '" "itkPyCommand *""'"); } arg1 = reinterpret_cast< itkPyCommand * >(argp1); { try { result = (itkPyCommand_Pointer *)new itkPyCommand_Pointer(arg1); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication new_itkPyCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication new_itkPyCommand_Pointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_itkPyCommand_Pointer(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[2] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkPyCommand_Pointer__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_itkPyCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkPyCommand_Pointer__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkPyCommand, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_itkPyCommand_Pointer__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_itkPyCommand_Pointer'.\n" " Possible C/C++ prototypes are:\n" " itkPyCommand_Pointer::itkPyCommand_Pointer()\n" " itkPyCommand_Pointer::itkPyCommand_Pointer(itkPyCommand_Pointer const &)\n" " itkPyCommand_Pointer::itkPyCommand_Pointer(itkPyCommand *)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_itkPyCommand_Pointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_itkPyCommand_Pointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_itkPyCommand_Pointer" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { delete arg1; } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication delete_itkPyCommand_Pointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication delete_itkPyCommand_Pointer" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPyCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer___deref__" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (itkPyCommand *)((itkPyCommand_Pointer const *)arg1)->operator ->(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer___deref__: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer___deref__" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPyCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_IsNotNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_IsNotNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_IsNotNull" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (bool)((itkPyCommand_Pointer const *)arg1)->IsNotNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_IsNotNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_IsNotNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_IsNull" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (bool)((itkPyCommand_Pointer const *)arg1)->IsNull(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_IsNull: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_IsNull" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_GetPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPyCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_GetPointer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_GetPointer" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (itkPyCommand *)((itkPyCommand_Pointer const *)arg1)->GetPointer(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_GetPointer: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_GetPointer" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkPyCommand, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_New(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkPyCommand_Pointer result; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_New",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_New" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (*arg1)->New(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_New: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_New" ); } } resultobj = SWIG_NewPointerObj((new itkPyCommand_Pointer(static_cast< const itkPyCommand_Pointer& >(result))), SWIGTYPE_p_itkPyCommand_Pointer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_GetNameOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_GetNameOfClass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_GetNameOfClass" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (char *)(*arg1)->GetNameOfClass(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_GetNameOfClass: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_GetNameOfClass" ); } } resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_SetCommandCallable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkPyCommand_Pointer_SetCommandCallable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_SetCommandCallable" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); arg2 = obj1; { try { (*arg1)->SetCommandCallable(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_SetCommandCallable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_SetCommandCallable" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_GetCommandCallable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_GetCommandCallable",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_GetCommandCallable" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (PyObject *)(*arg1)->GetCommandCallable(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_GetCommandCallable: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_GetCommandCallable" ); } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; itkObject *arg2 = (itkObject *) 0 ; itkEventObject *arg3 = 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkPyCommand_Pointer_Execute",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_Execute" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_itkObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_Execute" "', argument " "2"" of type '" "itkObject *""'"); } arg2 = reinterpret_cast< itkObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkPyCommand_Pointer_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_Execute" "', argument " "3"" of type '" "itkEventObject const &""'"); } arg3 = reinterpret_cast< itkEventObject * >(argp3); { try { (*arg1)->Execute(arg2,(itkEventObject const &)*arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_Execute: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_Execute" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_AddObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; itkEventObject *arg2 = 0 ; itkCommand *arg3 = (itkCommand *) 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 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"OOO:itkPyCommand_Pointer_AddObserver",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_AddObserver" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_AddObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_itkCommand, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkPyCommand_Pointer_AddObserver" "', argument " "3"" of type '" "itkCommand *""'"); } arg3 = reinterpret_cast< itkCommand * >(argp3); { try { result = (unsigned long)(*arg1)->AddObserver((itkEventObject const &)*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_AddObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_AddObserver" ); } } resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; itkCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkPyCommand_Pointer_GetCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_GetCommand" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkPyCommand_Pointer_GetCommand" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { result = (itkCommand *)(*arg1)->GetCommand(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_GetCommand: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_GetCommand" ); } } { // always tell SWIG_NewPointerObj we're the owner resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_itkCommand, 1); if (result) { result->Register(); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_InvokeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; itkEventObject *arg2 = 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:itkPyCommand_Pointer_InvokeEvent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_InvokeEvent" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_InvokeEvent" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { (*arg1)->InvokeEvent((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_InvokeEvent: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_InvokeEvent" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_RemoveObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:itkPyCommand_Pointer_RemoveObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_RemoveObserver" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itkPyCommand_Pointer_RemoveObserver" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); { try { (*arg1)->RemoveObserver(arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_RemoveObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_RemoveObserver" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_RemoveAllObservers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_RemoveAllObservers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_RemoveAllObservers" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { (*arg1)->RemoveAllObservers(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_RemoveAllObservers: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_RemoveAllObservers" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_HasObserver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; itkEventObject *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:itkPyCommand_Pointer_HasObserver",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_HasObserver" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkEventObject, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_HasObserver" "', argument " "2"" of type '" "itkEventObject const &""'"); } arg2 = reinterpret_cast< itkEventObject * >(argp2); { try { result = (bool)(*arg1)->HasObserver((itkEventObject const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_HasObserver: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_HasObserver" ); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_GetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; itkMetaDataDictionary *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_GetMetaDataDictionary",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_GetMetaDataDictionary" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { result = (itkMetaDataDictionary *) &(*arg1)->GetMetaDataDictionary(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_GetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_GetMetaDataDictionary" ); } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_itkMetaDataDictionary, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_SetMetaDataDictionary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; itkMetaDataDictionary *arg2 = 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:itkPyCommand_Pointer_SetMetaDataDictionary",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_SetMetaDataDictionary" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_itkMetaDataDictionary, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_SetMetaDataDictionary" "', argument " "2"" of type '" "itkMetaDataDictionary const &""'"); } arg2 = reinterpret_cast< itkMetaDataDictionary * >(argp2); { try { (*arg1)->SetMetaDataDictionary((itkMetaDataDictionary const &)*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_SetMetaDataDictionary: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_SetMetaDataDictionary" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; std::ostream *arg2 = 0 ; itkIndent arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:itkPyCommand_Pointer_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_Print" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_itkIndent, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "itkPyCommand_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_Print" "', argument " "3"" of type '" "itkIndent""'"); } else { itkIndent * temp = reinterpret_cast< itkIndent * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { try { (*arg1)->Print(*arg2,arg3); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; std::ostream *arg2 = 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:itkPyCommand_Pointer_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_Print" "', argument " "1"" of type '" "itkPyCommand_Pointer const *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "itkPyCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "itkPyCommand_Pointer_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); { try { (*arg1)->Print(*arg2); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_Print: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_Print" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_Print(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; Py_ssize_t ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? 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_itkPyCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkPyCommand_Pointer_Print__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_itkPyCommand_Pointer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_itkIndent, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_itkPyCommand_Pointer_Print__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'itkPyCommand_Pointer_Print'.\n" " Possible C/C++ prototypes are:\n" " itkLightObject::Print(std::ostream &,itkIndent) const\n" " itkLightObject::Print(std::ostream &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_BreakOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_BreakOnError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_BreakOnError" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); { try { (*arg1)->BreakOnError(); } catch(otb::ImageFileReaderException& err) { std::ostringstream oss; oss << err.GetDescription(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( itk::ExceptionObject &ex ) { std::ostringstream oss; oss << "Exception thrown in otbApplication itkPyCommand_Pointer_BreakOnError: " << ex.what(); SWIG_exception( SWIG_RuntimeError, oss.str().c_str() ); } catch( const std::exception &ex ) { SWIG_exception( SWIG_RuntimeError, ex.what() ); } catch( ... ) { SWIG_exception( SWIG_UnknownError, "Unknown exception thrown in otbApplication itkPyCommand_Pointer_BreakOnError" ); } } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_itkPyCommand_Pointer_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; itkPyCommand_Pointer *arg1 = (itkPyCommand_Pointer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::string result; if (!PyArg_ParseTuple(args,(char *)"O:itkPyCommand_Pointer_ToString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_itkPyCommand_Pointer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itkPyCommand_Pointer_ToString" "', argument " "1"" of type '" "itkPyCommand_Pointer *""'"); } arg1 = reinterpret_cast< itkPyCommand_Pointer * >(argp1); result = itkLightObject_ToString((itkLightObject*)(arg1)->operator ->()); resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *itkPyCommand_Pointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_itkPyCommand_Pointer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } static PyMethodDef SwigMethods[] = { { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL}, { (char *)"vectorstring_iterator", _wrap_vectorstring_iterator, METH_VARARGS, NULL}, { (char *)"vectorstring___nonzero__", _wrap_vectorstring___nonzero__, METH_VARARGS, NULL}, { (char *)"vectorstring___bool__", _wrap_vectorstring___bool__, METH_VARARGS, NULL}, { (char *)"vectorstring___len__", _wrap_vectorstring___len__, METH_VARARGS, NULL}, { (char *)"vectorstring___getslice__", _wrap_vectorstring___getslice__, METH_VARARGS, NULL}, { (char *)"vectorstring___setslice__", _wrap_vectorstring___setslice__, METH_VARARGS, NULL}, { (char *)"vectorstring___delslice__", _wrap_vectorstring___delslice__, METH_VARARGS, NULL}, { (char *)"vectorstring___delitem__", _wrap_vectorstring___delitem__, METH_VARARGS, NULL}, { (char *)"vectorstring___getitem__", _wrap_vectorstring___getitem__, METH_VARARGS, NULL}, { (char *)"vectorstring___setitem__", _wrap_vectorstring___setitem__, METH_VARARGS, NULL}, { (char *)"vectorstring_pop", _wrap_vectorstring_pop, METH_VARARGS, NULL}, { (char *)"vectorstring_append", _wrap_vectorstring_append, METH_VARARGS, NULL}, { (char *)"vectorstring_empty", _wrap_vectorstring_empty, METH_VARARGS, NULL}, { (char *)"vectorstring_size", _wrap_vectorstring_size, METH_VARARGS, NULL}, { (char *)"vectorstring_swap", _wrap_vectorstring_swap, METH_VARARGS, NULL}, { (char *)"vectorstring_begin", _wrap_vectorstring_begin, METH_VARARGS, NULL}, { (char *)"vectorstring_end", _wrap_vectorstring_end, METH_VARARGS, NULL}, { (char *)"vectorstring_rbegin", _wrap_vectorstring_rbegin, METH_VARARGS, NULL}, { (char *)"vectorstring_rend", _wrap_vectorstring_rend, METH_VARARGS, NULL}, { (char *)"vectorstring_clear", _wrap_vectorstring_clear, METH_VARARGS, NULL}, { (char *)"vectorstring_get_allocator", _wrap_vectorstring_get_allocator, METH_VARARGS, NULL}, { (char *)"vectorstring_pop_back", _wrap_vectorstring_pop_back, METH_VARARGS, NULL}, { (char *)"vectorstring_erase", _wrap_vectorstring_erase, METH_VARARGS, NULL}, { (char *)"new_vectorstring", _wrap_new_vectorstring, METH_VARARGS, NULL}, { (char *)"vectorstring_push_back", _wrap_vectorstring_push_back, METH_VARARGS, NULL}, { (char *)"vectorstring_front", _wrap_vectorstring_front, METH_VARARGS, NULL}, { (char *)"vectorstring_back", _wrap_vectorstring_back, METH_VARARGS, NULL}, { (char *)"vectorstring_assign", _wrap_vectorstring_assign, METH_VARARGS, NULL}, { (char *)"vectorstring_resize", _wrap_vectorstring_resize, METH_VARARGS, NULL}, { (char *)"vectorstring_insert", _wrap_vectorstring_insert, METH_VARARGS, NULL}, { (char *)"vectorstring_reserve", _wrap_vectorstring_reserve, METH_VARARGS, NULL}, { (char *)"vectorstring_capacity", _wrap_vectorstring_capacity, METH_VARARGS, NULL}, { (char *)"delete_vectorstring", _wrap_delete_vectorstring, METH_VARARGS, NULL}, { (char *)"vectorstring_swigregister", vectorstring_swigregister, METH_VARARGS, NULL}, { (char *)"mapstringstring_iterator", _wrap_mapstringstring_iterator, METH_VARARGS, NULL}, { (char *)"mapstringstring___nonzero__", _wrap_mapstringstring___nonzero__, METH_VARARGS, NULL}, { (char *)"mapstringstring___bool__", _wrap_mapstringstring___bool__, METH_VARARGS, NULL}, { (char *)"mapstringstring___len__", _wrap_mapstringstring___len__, METH_VARARGS, NULL}, { (char *)"mapstringstring___getitem__", _wrap_mapstringstring___getitem__, METH_VARARGS, NULL}, { (char *)"mapstringstring___delitem__", _wrap_mapstringstring___delitem__, METH_VARARGS, NULL}, { (char *)"mapstringstring_has_key", _wrap_mapstringstring_has_key, METH_VARARGS, NULL}, { (char *)"mapstringstring_keys", _wrap_mapstringstring_keys, METH_VARARGS, NULL}, { (char *)"mapstringstring_values", _wrap_mapstringstring_values, METH_VARARGS, NULL}, { (char *)"mapstringstring_items", _wrap_mapstringstring_items, METH_VARARGS, NULL}, { (char *)"mapstringstring___contains__", _wrap_mapstringstring___contains__, METH_VARARGS, NULL}, { (char *)"mapstringstring_key_iterator", _wrap_mapstringstring_key_iterator, METH_VARARGS, NULL}, { (char *)"mapstringstring_value_iterator", _wrap_mapstringstring_value_iterator, METH_VARARGS, NULL}, { (char *)"mapstringstring___setitem__", _wrap_mapstringstring___setitem__, METH_VARARGS, NULL}, { (char *)"mapstringstring_asdict", _wrap_mapstringstring_asdict, METH_VARARGS, NULL}, { (char *)"new_mapstringstring", _wrap_new_mapstringstring, METH_VARARGS, NULL}, { (char *)"mapstringstring_empty", _wrap_mapstringstring_empty, METH_VARARGS, NULL}, { (char *)"mapstringstring_size", _wrap_mapstringstring_size, METH_VARARGS, NULL}, { (char *)"mapstringstring_swap", _wrap_mapstringstring_swap, METH_VARARGS, NULL}, { (char *)"mapstringstring_begin", _wrap_mapstringstring_begin, METH_VARARGS, NULL}, { (char *)"mapstringstring_end", _wrap_mapstringstring_end, METH_VARARGS, NULL}, { (char *)"mapstringstring_rbegin", _wrap_mapstringstring_rbegin, METH_VARARGS, NULL}, { (char *)"mapstringstring_rend", _wrap_mapstringstring_rend, METH_VARARGS, NULL}, { (char *)"mapstringstring_clear", _wrap_mapstringstring_clear, METH_VARARGS, NULL}, { (char *)"mapstringstring_get_allocator", _wrap_mapstringstring_get_allocator, METH_VARARGS, NULL}, { (char *)"mapstringstring_count", _wrap_mapstringstring_count, METH_VARARGS, NULL}, { (char *)"mapstringstring_erase", _wrap_mapstringstring_erase, METH_VARARGS, NULL}, { (char *)"mapstringstring_find", _wrap_mapstringstring_find, METH_VARARGS, NULL}, { (char *)"mapstringstring_lower_bound", _wrap_mapstringstring_lower_bound, METH_VARARGS, NULL}, { (char *)"mapstringstring_upper_bound", _wrap_mapstringstring_upper_bound, METH_VARARGS, NULL}, { (char *)"delete_mapstringstring", _wrap_delete_mapstringstring, METH_VARARGS, NULL}, { (char *)"mapstringstring_swigregister", mapstringstring_swigregister, METH_VARARGS, NULL}, { (char *)"vectorbool_iterator", _wrap_vectorbool_iterator, METH_VARARGS, NULL}, { (char *)"vectorbool___nonzero__", _wrap_vectorbool___nonzero__, METH_VARARGS, NULL}, { (char *)"vectorbool___bool__", _wrap_vectorbool___bool__, METH_VARARGS, NULL}, { (char *)"vectorbool___len__", _wrap_vectorbool___len__, METH_VARARGS, NULL}, { (char *)"vectorbool___getslice__", _wrap_vectorbool___getslice__, METH_VARARGS, NULL}, { (char *)"vectorbool___setslice__", _wrap_vectorbool___setslice__, METH_VARARGS, NULL}, { (char *)"vectorbool___delslice__", _wrap_vectorbool___delslice__, METH_VARARGS, NULL}, { (char *)"vectorbool___delitem__", _wrap_vectorbool___delitem__, METH_VARARGS, NULL}, { (char *)"vectorbool___getitem__", _wrap_vectorbool___getitem__, METH_VARARGS, NULL}, { (char *)"vectorbool___setitem__", _wrap_vectorbool___setitem__, METH_VARARGS, NULL}, { (char *)"vectorbool_pop", _wrap_vectorbool_pop, METH_VARARGS, NULL}, { (char *)"vectorbool_append", _wrap_vectorbool_append, METH_VARARGS, NULL}, { (char *)"vectorbool_empty", _wrap_vectorbool_empty, METH_VARARGS, NULL}, { (char *)"vectorbool_size", _wrap_vectorbool_size, METH_VARARGS, NULL}, { (char *)"vectorbool_swap", _wrap_vectorbool_swap, METH_VARARGS, NULL}, { (char *)"vectorbool_begin", _wrap_vectorbool_begin, METH_VARARGS, NULL}, { (char *)"vectorbool_end", _wrap_vectorbool_end, METH_VARARGS, NULL}, { (char *)"vectorbool_rbegin", _wrap_vectorbool_rbegin, METH_VARARGS, NULL}, { (char *)"vectorbool_rend", _wrap_vectorbool_rend, METH_VARARGS, NULL}, { (char *)"vectorbool_clear", _wrap_vectorbool_clear, METH_VARARGS, NULL}, { (char *)"vectorbool_get_allocator", _wrap_vectorbool_get_allocator, METH_VARARGS, NULL}, { (char *)"vectorbool_pop_back", _wrap_vectorbool_pop_back, METH_VARARGS, NULL}, { (char *)"vectorbool_erase", _wrap_vectorbool_erase, METH_VARARGS, NULL}, { (char *)"new_vectorbool", _wrap_new_vectorbool, METH_VARARGS, NULL}, { (char *)"vectorbool_push_back", _wrap_vectorbool_push_back, METH_VARARGS, NULL}, { (char *)"vectorbool_front", _wrap_vectorbool_front, METH_VARARGS, NULL}, { (char *)"vectorbool_back", _wrap_vectorbool_back, METH_VARARGS, NULL}, { (char *)"vectorbool_assign", _wrap_vectorbool_assign, METH_VARARGS, NULL}, { (char *)"vectorbool_resize", _wrap_vectorbool_resize, METH_VARARGS, NULL}, { (char *)"vectorbool_insert", _wrap_vectorbool_insert, METH_VARARGS, NULL}, { (char *)"vectorbool_reserve", _wrap_vectorbool_reserve, METH_VARARGS, NULL}, { (char *)"vectorbool_capacity", _wrap_vectorbool_capacity, METH_VARARGS, NULL}, { (char *)"delete_vectorbool", _wrap_delete_vectorbool, METH_VARARGS, NULL}, { (char *)"vectorbool_swigregister", vectorbool_swigregister, METH_VARARGS, NULL}, { (char *)"vectordouble_iterator", _wrap_vectordouble_iterator, METH_VARARGS, NULL}, { (char *)"vectordouble___nonzero__", _wrap_vectordouble___nonzero__, METH_VARARGS, NULL}, { (char *)"vectordouble___bool__", _wrap_vectordouble___bool__, METH_VARARGS, NULL}, { (char *)"vectordouble___len__", _wrap_vectordouble___len__, METH_VARARGS, NULL}, { (char *)"vectordouble___getslice__", _wrap_vectordouble___getslice__, METH_VARARGS, NULL}, { (char *)"vectordouble___setslice__", _wrap_vectordouble___setslice__, METH_VARARGS, NULL}, { (char *)"vectordouble___delslice__", _wrap_vectordouble___delslice__, METH_VARARGS, NULL}, { (char *)"vectordouble___delitem__", _wrap_vectordouble___delitem__, METH_VARARGS, NULL}, { (char *)"vectordouble___getitem__", _wrap_vectordouble___getitem__, METH_VARARGS, NULL}, { (char *)"vectordouble___setitem__", _wrap_vectordouble___setitem__, METH_VARARGS, NULL}, { (char *)"vectordouble_pop", _wrap_vectordouble_pop, METH_VARARGS, NULL}, { (char *)"vectordouble_append", _wrap_vectordouble_append, METH_VARARGS, NULL}, { (char *)"vectordouble_empty", _wrap_vectordouble_empty, METH_VARARGS, NULL}, { (char *)"vectordouble_size", _wrap_vectordouble_size, METH_VARARGS, NULL}, { (char *)"vectordouble_swap", _wrap_vectordouble_swap, METH_VARARGS, NULL}, { (char *)"vectordouble_begin", _wrap_vectordouble_begin, METH_VARARGS, NULL}, { (char *)"vectordouble_end", _wrap_vectordouble_end, METH_VARARGS, NULL}, { (char *)"vectordouble_rbegin", _wrap_vectordouble_rbegin, METH_VARARGS, NULL}, { (char *)"vectordouble_rend", _wrap_vectordouble_rend, METH_VARARGS, NULL}, { (char *)"vectordouble_clear", _wrap_vectordouble_clear, METH_VARARGS, NULL}, { (char *)"vectordouble_get_allocator", _wrap_vectordouble_get_allocator, METH_VARARGS, NULL}, { (char *)"vectordouble_pop_back", _wrap_vectordouble_pop_back, METH_VARARGS, NULL}, { (char *)"vectordouble_erase", _wrap_vectordouble_erase, METH_VARARGS, NULL}, { (char *)"new_vectordouble", _wrap_new_vectordouble, METH_VARARGS, NULL}, { (char *)"vectordouble_push_back", _wrap_vectordouble_push_back, METH_VARARGS, NULL}, { (char *)"vectordouble_front", _wrap_vectordouble_front, METH_VARARGS, NULL}, { (char *)"vectordouble_back", _wrap_vectordouble_back, METH_VARARGS, NULL}, { (char *)"vectordouble_assign", _wrap_vectordouble_assign, METH_VARARGS, NULL}, { (char *)"vectordouble_resize", _wrap_vectordouble_resize, METH_VARARGS, NULL}, { (char *)"vectordouble_insert", _wrap_vectordouble_insert, METH_VARARGS, NULL}, { (char *)"vectordouble_reserve", _wrap_vectordouble_reserve, METH_VARARGS, NULL}, { (char *)"vectordouble_capacity", _wrap_vectordouble_capacity, METH_VARARGS, NULL}, { (char *)"delete_vectordouble", _wrap_delete_vectordouble, METH_VARARGS, NULL}, { (char *)"vectordouble_swigregister", vectordouble_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkSize", _wrap_new_itkSize, METH_VARARGS, NULL}, { (char *)"delete_itkSize", _wrap_delete_itkSize, METH_VARARGS, NULL}, { (char *)"itkSize_Fill", _wrap_itkSize_Fill, METH_VARARGS, NULL}, { (char *)"itkSize_GetElement", _wrap_itkSize_GetElement, METH_VARARGS, NULL}, { (char *)"itkSize_SetElement", _wrap_itkSize_SetElement, METH_VARARGS, NULL}, { (char *)"itkSize_GetSizeDimension", _wrap_itkSize_GetSizeDimension, METH_VARARGS, NULL}, { (char *)"itkSize_swigregister", itkSize_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkIndex", _wrap_new_itkIndex, METH_VARARGS, NULL}, { (char *)"delete_itkIndex", _wrap_delete_itkIndex, METH_VARARGS, NULL}, { (char *)"itkIndex_Fill", _wrap_itkIndex_Fill, METH_VARARGS, NULL}, { (char *)"itkIndex_GetElement", _wrap_itkIndex_GetElement, METH_VARARGS, NULL}, { (char *)"itkIndex_SetElement", _wrap_itkIndex_SetElement, METH_VARARGS, NULL}, { (char *)"itkIndex_GetIndexDimension", _wrap_itkIndex_GetIndexDimension, METH_VARARGS, NULL}, { (char *)"itkIndex_swigregister", itkIndex_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkRegion", _wrap_new_itkRegion, METH_VARARGS, NULL}, { (char *)"delete_itkRegion", _wrap_delete_itkRegion, METH_VARARGS, NULL}, { (char *)"itkRegion_SetUpperIndex", _wrap_itkRegion_SetUpperIndex, METH_VARARGS, NULL}, { (char *)"itkRegion_GetUpperIndex", _wrap_itkRegion_GetUpperIndex, METH_VARARGS, NULL}, { (char *)"itkRegion_IsInside", _wrap_itkRegion_IsInside, METH_VARARGS, NULL}, { (char *)"itkRegion_SetSize", _wrap_itkRegion_SetSize, METH_VARARGS, NULL}, { (char *)"itkRegion_GetSize", _wrap_itkRegion_GetSize, METH_VARARGS, NULL}, { (char *)"itkRegion_SetIndex", _wrap_itkRegion_SetIndex, METH_VARARGS, NULL}, { (char *)"itkRegion_GetIndex", _wrap_itkRegion_GetIndex, METH_VARARGS, NULL}, { (char *)"itkRegion_swigregister", itkRegion_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkFixedArray", _wrap_new_itkFixedArray, METH_VARARGS, NULL}, { (char *)"delete_itkFixedArray", _wrap_delete_itkFixedArray, METH_VARARGS, NULL}, { (char *)"itkFixedArray_Size", _wrap_itkFixedArray_Size, METH_VARARGS, NULL}, { (char *)"itkFixedArray_SetElement", _wrap_itkFixedArray_SetElement, METH_VARARGS, NULL}, { (char *)"itkFixedArray_GetElement", _wrap_itkFixedArray_GetElement, METH_VARARGS, NULL}, { (char *)"itkFixedArray_swigregister", itkFixedArray_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkVector", _wrap_new_itkVector, METH_VARARGS, NULL}, { (char *)"delete_itkVector", _wrap_delete_itkVector, METH_VARARGS, NULL}, { (char *)"itkVector_GetNorm", _wrap_itkVector_GetNorm, METH_VARARGS, NULL}, { (char *)"itkVector_GetSquaredNorm", _wrap_itkVector_GetSquaredNorm, METH_VARARGS, NULL}, { (char *)"itkVector_Normalize", _wrap_itkVector_Normalize, METH_VARARGS, NULL}, { (char *)"itkVector_swigregister", itkVector_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkPoint", _wrap_new_itkPoint, METH_VARARGS, NULL}, { (char *)"delete_itkPoint", _wrap_delete_itkPoint, METH_VARARGS, NULL}, { (char *)"itkPoint_swigregister", itkPoint_swigregister, METH_VARARGS, NULL}, { (char *)"itkIndent_New", _wrap_itkIndent_New, METH_VARARGS, NULL}, { (char *)"new_itkIndent", _wrap_new_itkIndent, METH_VARARGS, NULL}, { (char *)"itkIndent_GetNameOfClass", _wrap_itkIndent_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkIndent_GetNextIndent", _wrap_itkIndent_GetNextIndent, METH_VARARGS, NULL}, { (char *)"delete_itkIndent", _wrap_delete_itkIndent, METH_VARARGS, NULL}, { (char *)"itkIndent_swigregister", itkIndent_swigregister, METH_VARARGS, NULL}, { (char *)"itkLightObject_New", _wrap_itkLightObject_New, METH_VARARGS, NULL}, { (char *)"itkLightObject_GetNameOfClass", _wrap_itkLightObject_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkLightObject_Print", _wrap_itkLightObject_Print, METH_VARARGS, NULL}, { (char *)"itkLightObject_BreakOnError", _wrap_itkLightObject_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkLightObject_ToString", _wrap_itkLightObject_ToString, METH_VARARGS, NULL}, { (char *)"delete_itkLightObject", _wrap_delete_itkLightObject, METH_VARARGS, NULL}, { (char *)"itkLightObject_swigregister", itkLightObject_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkLightObject_Pointer", _wrap_new_itkLightObject_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkLightObject_Pointer", _wrap_delete_itkLightObject_Pointer, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer___deref__", _wrap_itkLightObject_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_IsNotNull", _wrap_itkLightObject_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_IsNull", _wrap_itkLightObject_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_GetPointer", _wrap_itkLightObject_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_New", _wrap_itkLightObject_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_GetNameOfClass", _wrap_itkLightObject_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_Print", _wrap_itkLightObject_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_BreakOnError", _wrap_itkLightObject_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_ToString", _wrap_itkLightObject_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkLightObject_Pointer_swigregister", itkLightObject_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"itkObject_New", _wrap_itkObject_New, METH_VARARGS, NULL}, { (char *)"itkObject_GetNameOfClass", _wrap_itkObject_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkObject_AddObserver", _wrap_itkObject_AddObserver, METH_VARARGS, NULL}, { (char *)"itkObject_GetCommand", _wrap_itkObject_GetCommand, METH_VARARGS, NULL}, { (char *)"itkObject_InvokeEvent", _wrap_itkObject_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkObject_RemoveObserver", _wrap_itkObject_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkObject_RemoveAllObservers", _wrap_itkObject_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkObject_HasObserver", _wrap_itkObject_HasObserver, METH_VARARGS, NULL}, { (char *)"itkObject_GetMetaDataDictionary", _wrap_itkObject_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkObject_SetMetaDataDictionary", _wrap_itkObject_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"delete_itkObject", _wrap_delete_itkObject, METH_VARARGS, NULL}, { (char *)"itkObject_swigregister", itkObject_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkObject_Pointer", _wrap_new_itkObject_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkObject_Pointer", _wrap_delete_itkObject_Pointer, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer___deref__", _wrap_itkObject_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_IsNotNull", _wrap_itkObject_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_IsNull", _wrap_itkObject_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_GetPointer", _wrap_itkObject_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_New", _wrap_itkObject_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_GetNameOfClass", _wrap_itkObject_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_AddObserver", _wrap_itkObject_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_GetCommand", _wrap_itkObject_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_InvokeEvent", _wrap_itkObject_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_RemoveObserver", _wrap_itkObject_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_RemoveAllObservers", _wrap_itkObject_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_HasObserver", _wrap_itkObject_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_GetMetaDataDictionary", _wrap_itkObject_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_SetMetaDataDictionary", _wrap_itkObject_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_Print", _wrap_itkObject_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_BreakOnError", _wrap_itkObject_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_ToString", _wrap_itkObject_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkObject_Pointer_swigregister", itkObject_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"itkProcessObject_GetProgress", _wrap_itkProcessObject_GetProgress, METH_VARARGS, NULL}, { (char *)"delete_itkProcessObject", _wrap_delete_itkProcessObject, METH_VARARGS, NULL}, { (char *)"itkProcessObject_swigregister", itkProcessObject_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkProcessObject_Pointer", _wrap_new_itkProcessObject_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkProcessObject_Pointer", _wrap_delete_itkProcessObject_Pointer, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer___deref__", _wrap_itkProcessObject_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_IsNotNull", _wrap_itkProcessObject_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_IsNull", _wrap_itkProcessObject_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_GetPointer", _wrap_itkProcessObject_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_GetProgress", _wrap_itkProcessObject_Pointer_GetProgress, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_New", _wrap_itkProcessObject_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_GetNameOfClass", _wrap_itkProcessObject_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_AddObserver", _wrap_itkProcessObject_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_GetCommand", _wrap_itkProcessObject_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_InvokeEvent", _wrap_itkProcessObject_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_RemoveObserver", _wrap_itkProcessObject_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_RemoveAllObservers", _wrap_itkProcessObject_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_HasObserver", _wrap_itkProcessObject_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_GetMetaDataDictionary", _wrap_itkProcessObject_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_SetMetaDataDictionary", _wrap_itkProcessObject_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_Print", _wrap_itkProcessObject_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_BreakOnError", _wrap_itkProcessObject_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_ToString", _wrap_itkProcessObject_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkProcessObject_Pointer_swigregister", itkProcessObject_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetNameOfClass", _wrap_itkObjectFactoryBase_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_CreateInstance", _wrap_itkObjectFactoryBase_CreateInstance, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_CreateAllInstance", _wrap_itkObjectFactoryBase_CreateAllInstance, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_ReHash", _wrap_itkObjectFactoryBase_ReHash, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_RegisterFactory", _wrap_itkObjectFactoryBase_RegisterFactory, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_UnRegisterFactory", _wrap_itkObjectFactoryBase_UnRegisterFactory, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_UnRegisterAllFactories", _wrap_itkObjectFactoryBase_UnRegisterAllFactories, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetRegisteredFactories", _wrap_itkObjectFactoryBase_GetRegisteredFactories, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetITKSourceVersion", _wrap_itkObjectFactoryBase_GetITKSourceVersion, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetDescription", _wrap_itkObjectFactoryBase_GetDescription, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetClassOverrideNames", _wrap_itkObjectFactoryBase_GetClassOverrideNames, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetClassOverrideWithNames", _wrap_itkObjectFactoryBase_GetClassOverrideWithNames, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetClassOverrideDescriptions", _wrap_itkObjectFactoryBase_GetClassOverrideDescriptions, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetEnableFlags", _wrap_itkObjectFactoryBase_GetEnableFlags, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_SetEnableFlag", _wrap_itkObjectFactoryBase_SetEnableFlag, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetEnableFlag", _wrap_itkObjectFactoryBase_GetEnableFlag, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Disable", _wrap_itkObjectFactoryBase_Disable, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_GetLibraryPath", _wrap_itkObjectFactoryBase_GetLibraryPath, METH_VARARGS, NULL}, { (char *)"delete_itkObjectFactoryBase", _wrap_delete_itkObjectFactoryBase, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_swigregister", itkObjectFactoryBase_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkObjectFactoryBase_Pointer", _wrap_new_itkObjectFactoryBase_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkObjectFactoryBase_Pointer", _wrap_delete_itkObjectFactoryBase_Pointer, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer___deref__", _wrap_itkObjectFactoryBase_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_IsNotNull", _wrap_itkObjectFactoryBase_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_IsNull", _wrap_itkObjectFactoryBase_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetPointer", _wrap_itkObjectFactoryBase_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetNameOfClass", _wrap_itkObjectFactoryBase_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_CreateInstance", _wrap_itkObjectFactoryBase_Pointer_CreateInstance, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_CreateAllInstance", _wrap_itkObjectFactoryBase_Pointer_CreateAllInstance, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_ReHash", _wrap_itkObjectFactoryBase_Pointer_ReHash, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_RegisterFactory", _wrap_itkObjectFactoryBase_Pointer_RegisterFactory, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_UnRegisterFactory", _wrap_itkObjectFactoryBase_Pointer_UnRegisterFactory, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_UnRegisterAllFactories", _wrap_itkObjectFactoryBase_Pointer_UnRegisterAllFactories, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetRegisteredFactories", _wrap_itkObjectFactoryBase_Pointer_GetRegisteredFactories, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetITKSourceVersion", _wrap_itkObjectFactoryBase_Pointer_GetITKSourceVersion, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetDescription", _wrap_itkObjectFactoryBase_Pointer_GetDescription, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetClassOverrideNames", _wrap_itkObjectFactoryBase_Pointer_GetClassOverrideNames, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetClassOverrideWithNames", _wrap_itkObjectFactoryBase_Pointer_GetClassOverrideWithNames, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions", _wrap_itkObjectFactoryBase_Pointer_GetClassOverrideDescriptions, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetEnableFlags", _wrap_itkObjectFactoryBase_Pointer_GetEnableFlags, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_SetEnableFlag", _wrap_itkObjectFactoryBase_Pointer_SetEnableFlag, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetEnableFlag", _wrap_itkObjectFactoryBase_Pointer_GetEnableFlag, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_Disable", _wrap_itkObjectFactoryBase_Pointer_Disable, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetLibraryPath", _wrap_itkObjectFactoryBase_Pointer_GetLibraryPath, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_New", _wrap_itkObjectFactoryBase_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_AddObserver", _wrap_itkObjectFactoryBase_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetCommand", _wrap_itkObjectFactoryBase_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_InvokeEvent", _wrap_itkObjectFactoryBase_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_RemoveObserver", _wrap_itkObjectFactoryBase_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_RemoveAllObservers", _wrap_itkObjectFactoryBase_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_HasObserver", _wrap_itkObjectFactoryBase_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_GetMetaDataDictionary", _wrap_itkObjectFactoryBase_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_SetMetaDataDictionary", _wrap_itkObjectFactoryBase_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_Print", _wrap_itkObjectFactoryBase_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_BreakOnError", _wrap_itkObjectFactoryBase_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_ToString", _wrap_itkObjectFactoryBase_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkObjectFactoryBase_Pointer_swigregister", itkObjectFactoryBase_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_GetMetaDataObjectTypeInfo", _wrap_itkMetaDataObjectBase_GetMetaDataObjectTypeInfo, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_GetMetaDataObjectTypeName", _wrap_itkMetaDataObjectBase_GetMetaDataObjectTypeName, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_GetNameOfClass", _wrap_itkMetaDataObjectBase_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Print", _wrap_itkMetaDataObjectBase_Print, METH_VARARGS, NULL}, { (char *)"delete_itkMetaDataObjectBase", _wrap_delete_itkMetaDataObjectBase, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_swigregister", itkMetaDataObjectBase_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkMetaDataObjectBase_Pointer", _wrap_new_itkMetaDataObjectBase_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkMetaDataObjectBase_Pointer", _wrap_delete_itkMetaDataObjectBase_Pointer, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer___deref__", _wrap_itkMetaDataObjectBase_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_IsNotNull", _wrap_itkMetaDataObjectBase_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_IsNull", _wrap_itkMetaDataObjectBase_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_GetPointer", _wrap_itkMetaDataObjectBase_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo", _wrap_itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeInfo, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName", _wrap_itkMetaDataObjectBase_Pointer_GetMetaDataObjectTypeName, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_GetNameOfClass", _wrap_itkMetaDataObjectBase_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_Print", _wrap_itkMetaDataObjectBase_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_New", _wrap_itkMetaDataObjectBase_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_BreakOnError", _wrap_itkMetaDataObjectBase_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_ToString", _wrap_itkMetaDataObjectBase_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkMetaDataObjectBase_Pointer_swigregister", itkMetaDataObjectBase_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_Print", _wrap_itkMetaDataDictionary_Print, METH_VARARGS, NULL}, { (char *)"new_itkMetaDataDictionary", _wrap_new_itkMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"delete_itkMetaDataDictionary", _wrap_delete_itkMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetKeys", _wrap_itkMetaDataDictionary_GetKeys, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_HasKey", _wrap_itkMetaDataDictionary_HasKey, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_Get", _wrap_itkMetaDataDictionary_Get, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_Set", _wrap_itkMetaDataDictionary_Set, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetType", _wrap_itkMetaDataDictionary_GetType, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetString", _wrap_itkMetaDataDictionary_GetString, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetString", _wrap_itkMetaDataDictionary_SetString, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetInt", _wrap_itkMetaDataDictionary_GetInt, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetInt", _wrap_itkMetaDataDictionary_SetInt, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetDouble", _wrap_itkMetaDataDictionary_GetDouble, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetDouble", _wrap_itkMetaDataDictionary_SetDouble, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetGCP", _wrap_itkMetaDataDictionary_GetGCP, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetGCP", _wrap_itkMetaDataDictionary_SetGCP, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetVector", _wrap_itkMetaDataDictionary_GetVector, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetVector", _wrap_itkMetaDataDictionary_SetVector, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetImageKWL", _wrap_itkMetaDataDictionary_GetImageKWL, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetImageKWL", _wrap_itkMetaDataDictionary_SetImageKWL, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetVectorDataKWL", _wrap_itkMetaDataDictionary_GetVectorDataKWL, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetVectorDataKWL", _wrap_itkMetaDataDictionary_SetVectorDataKWL, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_GetBoolVector", _wrap_itkMetaDataDictionary_GetBoolVector, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_SetBoolVector", _wrap_itkMetaDataDictionary_SetBoolVector, METH_VARARGS, NULL}, { (char *)"itkMetaDataDictionary_swigregister", itkMetaDataDictionary_swigregister, METH_VARARGS, NULL}, { (char *)"itkCommand_GetNameOfClass", _wrap_itkCommand_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkCommand_Execute", _wrap_itkCommand_Execute, METH_VARARGS, NULL}, { (char *)"delete_itkCommand", _wrap_delete_itkCommand, METH_VARARGS, NULL}, { (char *)"itkCommand_swigregister", itkCommand_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkCommand_Pointer", _wrap_new_itkCommand_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkCommand_Pointer", _wrap_delete_itkCommand_Pointer, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer___deref__", _wrap_itkCommand_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_IsNotNull", _wrap_itkCommand_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_IsNull", _wrap_itkCommand_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_GetPointer", _wrap_itkCommand_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_GetNameOfClass", _wrap_itkCommand_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_Execute", _wrap_itkCommand_Pointer_Execute, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_New", _wrap_itkCommand_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_AddObserver", _wrap_itkCommand_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_GetCommand", _wrap_itkCommand_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_InvokeEvent", _wrap_itkCommand_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_RemoveObserver", _wrap_itkCommand_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_RemoveAllObservers", _wrap_itkCommand_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_HasObserver", _wrap_itkCommand_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_GetMetaDataDictionary", _wrap_itkCommand_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_SetMetaDataDictionary", _wrap_itkCommand_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_Print", _wrap_itkCommand_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_BreakOnError", _wrap_itkCommand_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_ToString", _wrap_itkCommand_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkCommand_Pointer_swigregister", itkCommand_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkEventObject", _wrap_delete_itkEventObject, METH_VARARGS, NULL}, { (char *)"itkEventObject_MakeObject", _wrap_itkEventObject_MakeObject, METH_VARARGS, NULL}, { (char *)"itkEventObject_Print", _wrap_itkEventObject_Print, METH_VARARGS, NULL}, { (char *)"itkEventObject_GetEventName", _wrap_itkEventObject_GetEventName, METH_VARARGS, NULL}, { (char *)"itkEventObject_CheckEvent", _wrap_itkEventObject_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkEventObject_swigregister", itkEventObject_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkNoEvent", _wrap_delete_itkNoEvent, METH_VARARGS, NULL}, { (char *)"itkNoEvent_GetEventName", _wrap_itkNoEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkNoEvent_CheckEvent", _wrap_itkNoEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkNoEvent_MakeObject", _wrap_itkNoEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkNoEvent", _wrap_new_itkNoEvent, METH_VARARGS, NULL}, { (char *)"itkNoEvent_swigregister", itkNoEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkAnyEvent", _wrap_delete_itkAnyEvent, METH_VARARGS, NULL}, { (char *)"itkAnyEvent_GetEventName", _wrap_itkAnyEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkAnyEvent_CheckEvent", _wrap_itkAnyEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkAnyEvent_MakeObject", _wrap_itkAnyEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkAnyEvent", _wrap_new_itkAnyEvent, METH_VARARGS, NULL}, { (char *)"itkAnyEvent_swigregister", itkAnyEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkDeleteEvent", _wrap_delete_itkDeleteEvent, METH_VARARGS, NULL}, { (char *)"itkDeleteEvent_GetEventName", _wrap_itkDeleteEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkDeleteEvent_CheckEvent", _wrap_itkDeleteEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkDeleteEvent_MakeObject", _wrap_itkDeleteEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkDeleteEvent", _wrap_new_itkDeleteEvent, METH_VARARGS, NULL}, { (char *)"itkDeleteEvent_swigregister", itkDeleteEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkEndEvent", _wrap_delete_itkEndEvent, METH_VARARGS, NULL}, { (char *)"itkEndEvent_GetEventName", _wrap_itkEndEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkEndEvent_CheckEvent", _wrap_itkEndEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkEndEvent_MakeObject", _wrap_itkEndEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkEndEvent", _wrap_new_itkEndEvent, METH_VARARGS, NULL}, { (char *)"itkEndEvent_swigregister", itkEndEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkExitEvent", _wrap_delete_itkExitEvent, METH_VARARGS, NULL}, { (char *)"itkExitEvent_GetEventName", _wrap_itkExitEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkExitEvent_CheckEvent", _wrap_itkExitEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkExitEvent_MakeObject", _wrap_itkExitEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkExitEvent", _wrap_new_itkExitEvent, METH_VARARGS, NULL}, { (char *)"itkExitEvent_swigregister", itkExitEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkIterationEvent", _wrap_delete_itkIterationEvent, METH_VARARGS, NULL}, { (char *)"itkIterationEvent_GetEventName", _wrap_itkIterationEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkIterationEvent_CheckEvent", _wrap_itkIterationEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkIterationEvent_MakeObject", _wrap_itkIterationEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkIterationEvent", _wrap_new_itkIterationEvent, METH_VARARGS, NULL}, { (char *)"itkIterationEvent_swigregister", itkIterationEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkModifiedEvent", _wrap_delete_itkModifiedEvent, METH_VARARGS, NULL}, { (char *)"itkModifiedEvent_GetEventName", _wrap_itkModifiedEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkModifiedEvent_CheckEvent", _wrap_itkModifiedEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkModifiedEvent_MakeObject", _wrap_itkModifiedEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkModifiedEvent", _wrap_new_itkModifiedEvent, METH_VARARGS, NULL}, { (char *)"itkModifiedEvent_swigregister", itkModifiedEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkPickEvent", _wrap_delete_itkPickEvent, METH_VARARGS, NULL}, { (char *)"itkPickEvent_GetEventName", _wrap_itkPickEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkPickEvent_CheckEvent", _wrap_itkPickEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkPickEvent_MakeObject", _wrap_itkPickEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkPickEvent", _wrap_new_itkPickEvent, METH_VARARGS, NULL}, { (char *)"itkPickEvent_swigregister", itkPickEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkProgressEvent", _wrap_delete_itkProgressEvent, METH_VARARGS, NULL}, { (char *)"itkProgressEvent_GetEventName", _wrap_itkProgressEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkProgressEvent_CheckEvent", _wrap_itkProgressEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkProgressEvent_MakeObject", _wrap_itkProgressEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkProgressEvent", _wrap_new_itkProgressEvent, METH_VARARGS, NULL}, { (char *)"itkProgressEvent_swigregister", itkProgressEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkStartEvent", _wrap_delete_itkStartEvent, METH_VARARGS, NULL}, { (char *)"itkStartEvent_GetEventName", _wrap_itkStartEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkStartEvent_CheckEvent", _wrap_itkStartEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkStartEvent_MakeObject", _wrap_itkStartEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkStartEvent", _wrap_new_itkStartEvent, METH_VARARGS, NULL}, { (char *)"itkStartEvent_swigregister", itkStartEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkStartPickEvent", _wrap_delete_itkStartPickEvent, METH_VARARGS, NULL}, { (char *)"itkStartPickEvent_GetEventName", _wrap_itkStartPickEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkStartPickEvent_CheckEvent", _wrap_itkStartPickEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkStartPickEvent_MakeObject", _wrap_itkStartPickEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkStartPickEvent", _wrap_new_itkStartPickEvent, METH_VARARGS, NULL}, { (char *)"itkStartPickEvent_swigregister", itkStartPickEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkUserEvent", _wrap_delete_itkUserEvent, METH_VARARGS, NULL}, { (char *)"itkUserEvent_GetEventName", _wrap_itkUserEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkUserEvent_CheckEvent", _wrap_itkUserEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkUserEvent_MakeObject", _wrap_itkUserEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkUserEvent", _wrap_new_itkUserEvent, METH_VARARGS, NULL}, { (char *)"itkUserEvent_swigregister", itkUserEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkAbortCheckEvent", _wrap_delete_itkAbortCheckEvent, METH_VARARGS, NULL}, { (char *)"itkAbortCheckEvent_GetEventName", _wrap_itkAbortCheckEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkAbortCheckEvent_CheckEvent", _wrap_itkAbortCheckEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkAbortCheckEvent_MakeObject", _wrap_itkAbortCheckEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkAbortCheckEvent", _wrap_new_itkAbortCheckEvent, METH_VARARGS, NULL}, { (char *)"itkAbortCheckEvent_swigregister", itkAbortCheckEvent_swigregister, METH_VARARGS, NULL}, { (char *)"delete_itkEndPickEvent", _wrap_delete_itkEndPickEvent, METH_VARARGS, NULL}, { (char *)"itkEndPickEvent_GetEventName", _wrap_itkEndPickEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"itkEndPickEvent_CheckEvent", _wrap_itkEndPickEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"itkEndPickEvent_MakeObject", _wrap_itkEndPickEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_itkEndPickEvent", _wrap_new_itkEndPickEvent, METH_VARARGS, NULL}, { (char *)"itkEndPickEvent_swigregister", itkEndPickEvent_swigregister, METH_VARARGS, NULL}, { (char *)"new_ImageKeywordlist", _wrap_new_ImageKeywordlist, METH_VARARGS, NULL}, { (char *)"delete_ImageKeywordlist", _wrap_delete_ImageKeywordlist, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_GetKeywordlist", _wrap_ImageKeywordlist_GetKeywordlist, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_Clear", _wrap_ImageKeywordlist_Clear, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_Empty", _wrap_ImageKeywordlist_Empty, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_GetSize", _wrap_ImageKeywordlist_GetSize, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_GetMetadataByKey", _wrap_ImageKeywordlist_GetMetadataByKey, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_HasKey", _wrap_ImageKeywordlist_HasKey, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_ClearMetadataByKey", _wrap_ImageKeywordlist_ClearMetadataByKey, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_AddKey", _wrap_ImageKeywordlist_AddKey, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_Print", _wrap_ImageKeywordlist_Print, METH_VARARGS, NULL}, { (char *)"ImageKeywordlist_swigregister", ImageKeywordlist_swigregister, METH_VARARGS, NULL}, { (char *)"new_VectorDataKeywordlist", _wrap_new_VectorDataKeywordlist, METH_VARARGS, NULL}, { (char *)"delete_VectorDataKeywordlist", _wrap_delete_VectorDataKeywordlist, METH_VARARGS, NULL}, { (char *)"VectorDataKeywordlist_swigregister", VectorDataKeywordlist_swigregister, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_Id_set", _wrap_OTB_GCP_m_Id_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_Id_get", _wrap_OTB_GCP_m_Id_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_Info_set", _wrap_OTB_GCP_m_Info_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_Info_get", _wrap_OTB_GCP_m_Info_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPCol_set", _wrap_OTB_GCP_m_GCPCol_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPCol_get", _wrap_OTB_GCP_m_GCPCol_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPRow_set", _wrap_OTB_GCP_m_GCPRow_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPRow_get", _wrap_OTB_GCP_m_GCPRow_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPX_set", _wrap_OTB_GCP_m_GCPX_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPX_get", _wrap_OTB_GCP_m_GCPX_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPY_set", _wrap_OTB_GCP_m_GCPY_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPY_get", _wrap_OTB_GCP_m_GCPY_get, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPZ_set", _wrap_OTB_GCP_m_GCPZ_set, METH_VARARGS, NULL}, { (char *)"OTB_GCP_m_GCPZ_get", _wrap_OTB_GCP_m_GCPZ_get, METH_VARARGS, NULL}, { (char *)"new_OTB_GCP", _wrap_new_OTB_GCP, METH_VARARGS, NULL}, { (char *)"delete_OTB_GCP", _wrap_delete_OTB_GCP, METH_VARARGS, NULL}, { (char *)"OTB_GCP_Print", _wrap_OTB_GCP_Print, METH_VARARGS, NULL}, { (char *)"OTB_GCP_swigregister", OTB_GCP_swigregister, METH_VARARGS, NULL}, { (char *)"new_SwigPrintCallback", _wrap_new_SwigPrintCallback, METH_VARARGS, NULL}, { (char *)"delete_SwigPrintCallback", _wrap_delete_SwigPrintCallback, METH_VARARGS, NULL}, { (char *)"SwigPrintCallback_Call", _wrap_SwigPrintCallback_Call, METH_VARARGS, NULL}, { (char *)"SwigPrintCallback_Flush", _wrap_SwigPrintCallback_Flush, METH_VARARGS, NULL}, { (char *)"SwigPrintCallback_IsInteractive", _wrap_SwigPrintCallback_IsInteractive, METH_VARARGS, NULL}, { (char *)"disown_SwigPrintCallback", _wrap_disown_SwigPrintCallback, METH_VARARGS, NULL}, { (char *)"SwigPrintCallback_swigregister", SwigPrintCallback_swigregister, METH_VARARGS, NULL}, { (char *)"itkLogOutput_swigregister", itkLogOutput_swigregister, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_New", _wrap_PythonLogOutput_New, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_SetCallback", _wrap_PythonLogOutput_SetCallback, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Write", _wrap_PythonLogOutput_Write, METH_VARARGS, NULL}, { (char *)"delete_PythonLogOutput", _wrap_delete_PythonLogOutput, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_swigregister", PythonLogOutput_swigregister, METH_VARARGS, NULL}, { (char *)"new_PythonLogOutput_Pointer", _wrap_new_PythonLogOutput_Pointer, METH_VARARGS, NULL}, { (char *)"delete_PythonLogOutput_Pointer", _wrap_delete_PythonLogOutput_Pointer, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer___deref__", _wrap_PythonLogOutput_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_IsNotNull", _wrap_PythonLogOutput_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_IsNull", _wrap_PythonLogOutput_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_GetPointer", _wrap_PythonLogOutput_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_New", _wrap_PythonLogOutput_Pointer_New, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_SetCallback", _wrap_PythonLogOutput_Pointer_SetCallback, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_Write", _wrap_PythonLogOutput_Pointer_Write, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_GetNameOfClass", _wrap_PythonLogOutput_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_AddObserver", _wrap_PythonLogOutput_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_GetCommand", _wrap_PythonLogOutput_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_InvokeEvent", _wrap_PythonLogOutput_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_RemoveObserver", _wrap_PythonLogOutput_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_RemoveAllObservers", _wrap_PythonLogOutput_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_HasObserver", _wrap_PythonLogOutput_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_GetMetaDataDictionary", _wrap_PythonLogOutput_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_SetMetaDataDictionary", _wrap_PythonLogOutput_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_Print", _wrap_PythonLogOutput_Pointer_Print, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_BreakOnError", _wrap_PythonLogOutput_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_ToString", _wrap_PythonLogOutput_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"PythonLogOutput_Pointer_swigregister", PythonLogOutput_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"Logger_AddLogOutput", _wrap_Logger_AddLogOutput, METH_VARARGS, NULL}, { (char *)"Logger_Instance", _wrap_Logger_Instance, METH_VARARGS, NULL}, { (char *)"Logger_ResetOutputs", _wrap_Logger_ResetOutputs, METH_VARARGS, NULL}, { (char *)"Logger_Debug", _wrap_Logger_Debug, METH_VARARGS, NULL}, { (char *)"Logger_Info", _wrap_Logger_Info, METH_VARARGS, NULL}, { (char *)"Logger_Warning", _wrap_Logger_Warning, METH_VARARGS, NULL}, { (char *)"Logger_Critical", _wrap_Logger_Critical, METH_VARARGS, NULL}, { (char *)"Logger_Error", _wrap_Logger_Error, METH_VARARGS, NULL}, { (char *)"Logger_Fatal", _wrap_Logger_Fatal, METH_VARARGS, NULL}, { (char *)"Logger_swigregister", Logger_swigregister, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_New", _wrap_ProgressReporterManager_New, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_DeleteWatcherList", _wrap_ProgressReporterManager_DeleteWatcherList, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_SetLogOutputCallback", _wrap_ProgressReporterManager_SetLogOutputCallback, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_GetAddProcessCommand", _wrap_ProgressReporterManager_GetAddProcessCommand, METH_VARARGS, NULL}, { (char *)"delete_ProgressReporterManager", _wrap_delete_ProgressReporterManager, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_swigregister", ProgressReporterManager_swigregister, METH_VARARGS, NULL}, { (char *)"new_ProgressReporterManager_Pointer", _wrap_new_ProgressReporterManager_Pointer, METH_VARARGS, NULL}, { (char *)"delete_ProgressReporterManager_Pointer", _wrap_delete_ProgressReporterManager_Pointer, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer___deref__", _wrap_ProgressReporterManager_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_IsNotNull", _wrap_ProgressReporterManager_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_IsNull", _wrap_ProgressReporterManager_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_GetPointer", _wrap_ProgressReporterManager_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_New", _wrap_ProgressReporterManager_Pointer_New, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_DeleteWatcherList", _wrap_ProgressReporterManager_Pointer_DeleteWatcherList, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_SetLogOutputCallback", _wrap_ProgressReporterManager_Pointer_SetLogOutputCallback, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_GetAddProcessCommand", _wrap_ProgressReporterManager_Pointer_GetAddProcessCommand, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_GetNameOfClass", _wrap_ProgressReporterManager_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_AddObserver", _wrap_ProgressReporterManager_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_GetCommand", _wrap_ProgressReporterManager_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_InvokeEvent", _wrap_ProgressReporterManager_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_RemoveObserver", _wrap_ProgressReporterManager_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_RemoveAllObservers", _wrap_ProgressReporterManager_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_HasObserver", _wrap_ProgressReporterManager_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_GetMetaDataDictionary", _wrap_ProgressReporterManager_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_SetMetaDataDictionary", _wrap_ProgressReporterManager_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_Print", _wrap_ProgressReporterManager_Pointer_Print, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_BreakOnError", _wrap_ProgressReporterManager_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_ToString", _wrap_ProgressReporterManager_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"ProgressReporterManager_Pointer_swigregister", ProgressReporterManager_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"Application_SetName", _wrap_Application_SetName, METH_VARARGS, NULL}, { (char *)"Application_GetName", _wrap_Application_GetName, METH_VARARGS, NULL}, { (char *)"Application_SetDescription", _wrap_Application_SetDescription, METH_VARARGS, NULL}, { (char *)"Application_GetDescription", _wrap_Application_GetDescription, METH_VARARGS, NULL}, { (char *)"Application_Init", _wrap_Application_Init, METH_VARARGS, NULL}, { (char *)"Application_UpdateParameters", _wrap_Application_UpdateParameters, METH_VARARGS, NULL}, { (char *)"Application_Execute", _wrap_Application_Execute, METH_VARARGS, NULL}, { (char *)"Application_WriteOutput", _wrap_Application_WriteOutput, METH_VARARGS, NULL}, { (char *)"Application_ExecuteAndWriteOutput", _wrap_Application_ExecuteAndWriteOutput, METH_VARARGS, NULL}, { (char *)"Application_ConnectImage", _wrap_Application_ConnectImage, METH_VARARGS, NULL}, { (char *)"Application_PropagateConnectMode", _wrap_Application_PropagateConnectMode, METH_VARARGS, NULL}, { (char *)"Application_LoadParametersFromXML", _wrap_Application_LoadParametersFromXML, METH_VARARGS, NULL}, { (char *)"Application_SaveParametersToXML", _wrap_Application_SaveParametersToXML, METH_VARARGS, NULL}, { (char *)"Application_GetLogger", _wrap_Application_GetLogger, METH_VARARGS, NULL}, { (char *)"Application_IsDeprecated", _wrap_Application_IsDeprecated, METH_VARARGS, NULL}, { (char *)"Application_GetParametersKeys", _wrap_Application_GetParametersKeys, METH_VARARGS, NULL}, { (char *)"Application_GetParameterByKey", _wrap_Application_GetParameterByKey, METH_VARARGS, NULL}, { (char *)"Application_GetParameterName", _wrap_Application_GetParameterName, METH_VARARGS, NULL}, { (char *)"Application_GetParameterDescription", _wrap_Application_GetParameterDescription, METH_VARARGS, NULL}, { (char *)"Application_SetParameterDescription", _wrap_Application_SetParameterDescription, METH_VARARGS, NULL}, { (char *)"Application_SetParameterUserValue", _wrap_Application_SetParameterUserValue, METH_VARARGS, NULL}, { (char *)"Application_EnableParameter", _wrap_Application_EnableParameter, METH_VARARGS, NULL}, { (char *)"Application_DisableParameter", _wrap_Application_DisableParameter, METH_VARARGS, NULL}, { (char *)"Application_IsParameterEnabled", _wrap_Application_IsParameterEnabled, METH_VARARGS, NULL}, { (char *)"Application_IsMandatory", _wrap_Application_IsMandatory, METH_VARARGS, NULL}, { (char *)"Application_HasAutomaticValue", _wrap_Application_HasAutomaticValue, METH_VARARGS, NULL}, { (char *)"Application_HasUserValue", _wrap_Application_HasUserValue, METH_VARARGS, NULL}, { (char *)"Application_ClearValue", _wrap_Application_ClearValue, METH_VARARGS, NULL}, { (char *)"Application_HasValue", _wrap_Application_HasValue, METH_VARARGS, NULL}, { (char *)"Application_GetParameterUserLevel", _wrap_Application_GetParameterUserLevel, METH_VARARGS, NULL}, { (char *)"Application_GetParameterType", _wrap_Application_GetParameterType, METH_VARARGS, NULL}, { (char *)"Application_GetParameterRole", _wrap_Application_GetParameterRole, METH_VARARGS, NULL}, { (char *)"Application_GetChoiceKeys", _wrap_Application_GetChoiceKeys, METH_VARARGS, NULL}, { (char *)"Application_GetChoiceNames", _wrap_Application_GetChoiceNames, METH_VARARGS, NULL}, { (char *)"Application_IsApplicationReady", _wrap_Application_IsApplicationReady, METH_VARARGS, NULL}, { (char *)"Application_SetParameterInt", _wrap_Application_SetParameterInt, METH_VARARGS, NULL}, { (char *)"Application_SetParameterFloat", _wrap_Application_SetParameterFloat, METH_VARARGS, NULL}, { (char *)"Application_SetParameterString", _wrap_Application_SetParameterString, METH_VARARGS, NULL}, { (char *)"Application_SetParameterStringList", _wrap_Application_SetParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_SetParameterOutputImagePixelType", _wrap_Application_SetParameterOutputImagePixelType, METH_VARARGS, NULL}, { (char *)"Application_GetParameterOutputImagePixelType", _wrap_Application_GetParameterOutputImagePixelType, METH_VARARGS, NULL}, { (char *)"Application_GetParameterInt", _wrap_Application_GetParameterInt, METH_VARARGS, NULL}, { (char *)"Application_GetParameterFloat", _wrap_Application_GetParameterFloat, METH_VARARGS, NULL}, { (char *)"Application_GetParameterString", _wrap_Application_GetParameterString, METH_VARARGS, NULL}, { (char *)"Application_GetParameterStringList", _wrap_Application_GetParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_GetParameterAsString", _wrap_Application_GetParameterAsString, METH_VARARGS, NULL}, { (char *)"Application_GetListViewSingleSelectionMode", _wrap_Application_GetListViewSingleSelectionMode, METH_VARARGS, NULL}, { (char *)"Application_GetParameterOutputImage", _wrap_Application_GetParameterOutputImage, METH_VARARGS, NULL}, { (char *)"Application_SetParameterInputImage", _wrap_Application_SetParameterInputImage, METH_VARARGS, NULL}, { (char *)"Application_AddImageToParameterInputImageList", _wrap_Application_AddImageToParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_AddParameterStringList", _wrap_Application_AddParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_SetNthParameterInputImageList", _wrap_Application_SetNthParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_SetNthParameterStringList", _wrap_Application_SetNthParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_ClearParameterInputImageList", _wrap_Application_ClearParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_GetNumberOfElementsInParameterInputImageList", _wrap_Application_GetNumberOfElementsInParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_GetImageOrigin", _wrap_Application_GetImageOrigin, METH_VARARGS, NULL}, { (char *)"Application_GetImageSpacing", _wrap_Application_GetImageSpacing, METH_VARARGS, NULL}, { (char *)"Application_GetImageSize", _wrap_Application_GetImageSize, METH_VARARGS, NULL}, { (char *)"Application_GetImageNbBands", _wrap_Application_GetImageNbBands, METH_VARARGS, NULL}, { (char *)"Application_GetImageProjection", _wrap_Application_GetImageProjection, METH_VARARGS, NULL}, { (char *)"Application_GetImageKeywordlist", _wrap_Application_GetImageKeywordlist, METH_VARARGS, NULL}, { (char *)"Application_PropagateRequestedRegion", _wrap_Application_PropagateRequestedRegion, METH_VARARGS, NULL}, { (char *)"Application_GetImageRequestedRegion", _wrap_Application_GetImageRequestedRegion, METH_VARARGS, NULL}, { (char *)"Application_GetImageMetaData", _wrap_Application_GetImageMetaData, METH_VARARGS, NULL}, { (char *)"Application_GetImageBasePixelType", _wrap_Application_GetImageBasePixelType, METH_VARARGS, NULL}, { (char *)"Application_GetProgressSource", _wrap_Application_GetProgressSource, METH_VARARGS, NULL}, { (char *)"Application_GetProgressDescription", _wrap_Application_GetProgressDescription, METH_VARARGS, NULL}, { (char *)"Application_FreeRessources", _wrap_Application_FreeRessources, METH_VARARGS, NULL}, { (char *)"Application_SetDocLongDescription", _wrap_Application_SetDocLongDescription, METH_VARARGS, NULL}, { (char *)"Application_GetDocLongDescription", _wrap_Application_GetDocLongDescription, METH_VARARGS, NULL}, { (char *)"Application_SetDocAuthors", _wrap_Application_SetDocAuthors, METH_VARARGS, NULL}, { (char *)"Application_GetDocAuthors", _wrap_Application_GetDocAuthors, METH_VARARGS, NULL}, { (char *)"Application_SetDocLimitations", _wrap_Application_SetDocLimitations, METH_VARARGS, NULL}, { (char *)"Application_GetDocLimitations", _wrap_Application_GetDocLimitations, METH_VARARGS, NULL}, { (char *)"Application_SetDocSeeAlso", _wrap_Application_SetDocSeeAlso, METH_VARARGS, NULL}, { (char *)"Application_GetDocSeeAlso", _wrap_Application_GetDocSeeAlso, METH_VARARGS, NULL}, { (char *)"Application_SetDocTags", _wrap_Application_SetDocTags, METH_VARARGS, NULL}, { (char *)"Application_AddDocTag", _wrap_Application_AddDocTag, METH_VARARGS, NULL}, { (char *)"Application_GetDocTags", _wrap_Application_GetDocTags, METH_VARARGS, NULL}, { (char *)"Application_GetParameterList", _wrap_Application_GetParameterList, METH_VARARGS, NULL}, { (char *)"Application_GetNumberOfExamples", _wrap_Application_GetNumberOfExamples, METH_VARARGS, NULL}, { (char *)"Application_GetExampleComment", _wrap_Application_GetExampleComment, METH_VARARGS, NULL}, { (char *)"Application_GetExampleNumberOfParameters", _wrap_Application_GetExampleNumberOfParameters, METH_VARARGS, NULL}, { (char *)"Application_GetExampleParameterKey", _wrap_Application_GetExampleParameterKey, METH_VARARGS, NULL}, { (char *)"Application_GetExampleParameterValue", _wrap_Application_GetExampleParameterValue, METH_VARARGS, NULL}, { (char *)"Application_SetDocExampleParameterValue", _wrap_Application_SetDocExampleParameterValue, METH_VARARGS, NULL}, { (char *)"Application_SetExampleComment", _wrap_Application_SetExampleComment, METH_VARARGS, NULL}, { (char *)"Application_AddExample", _wrap_Application_AddExample, METH_VARARGS, NULL}, { (char *)"Application_GetCLExample", _wrap_Application_GetCLExample, METH_VARARGS, NULL}, { (char *)"Application_GetHtmlExample", _wrap_Application_GetHtmlExample, METH_VARARGS, NULL}, { (char *)"Application_GetOutputParametersSumUp", _wrap_Application_GetOutputParametersSumUp, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromUInt8NumpyArray_", _wrap_Application_SetVectorImageFromUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromInt16NumpyArray_", _wrap_Application_SetVectorImageFromInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromUInt16NumpyArray_", _wrap_Application_SetVectorImageFromUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromInt32NumpyArray_", _wrap_Application_SetVectorImageFromInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromUInt32NumpyArray_", _wrap_Application_SetVectorImageFromUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromFloatNumpyArray_", _wrap_Application_SetVectorImageFromFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromDoubleNumpyArray_", _wrap_Application_SetVectorImageFromDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromCFloatNumpyArray_", _wrap_Application_SetVectorImageFromCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetVectorImageFromCDoubleNumpyArray_", _wrap_Application_SetVectorImageFromCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromUInt8NumpyArray_", _wrap_Application_SetImageFromUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromInt16NumpyArray_", _wrap_Application_SetImageFromInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromUInt16NumpyArray_", _wrap_Application_SetImageFromUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromInt32NumpyArray_", _wrap_Application_SetImageFromInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromUInt32NumpyArray_", _wrap_Application_SetImageFromUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromFloatNumpyArray_", _wrap_Application_SetImageFromFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromDoubleNumpyArray_", _wrap_Application_SetImageFromDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromCFloatNumpyArray_", _wrap_Application_SetImageFromCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_SetImageFromCDoubleNumpyArray_", _wrap_Application_SetImageFromCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsUInt8NumpyArray_", _wrap_Application_GetVectorImageAsUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsInt16NumpyArray_", _wrap_Application_GetVectorImageAsInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsUInt16NumpyArray_", _wrap_Application_GetVectorImageAsUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsInt32NumpyArray_", _wrap_Application_GetVectorImageAsInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsUInt32NumpyArray_", _wrap_Application_GetVectorImageAsUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsFloatNumpyArray_", _wrap_Application_GetVectorImageAsFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsDoubleNumpyArray_", _wrap_Application_GetVectorImageAsDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsCFloatNumpyArray_", _wrap_Application_GetVectorImageAsCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_GetVectorImageAsCDoubleNumpyArray_", _wrap_Application_GetVectorImageAsCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_ConvertPixelTypeToNumpy", _wrap_Application_ConvertPixelTypeToNumpy, METH_VARARGS, NULL}, { (char *)"Application_SetupImageInformation", _wrap_Application_SetupImageInformation, METH_VARARGS, NULL}, { (char *)"delete_Application", _wrap_delete_Application, METH_VARARGS, NULL}, { (char *)"Application_swigregister", Application_swigregister, METH_VARARGS, NULL}, { (char *)"new_Application_Pointer", _wrap_new_Application_Pointer, METH_VARARGS, NULL}, { (char *)"delete_Application_Pointer", _wrap_delete_Application_Pointer, METH_VARARGS, NULL}, { (char *)"Application_Pointer___deref__", _wrap_Application_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsNotNull", _wrap_Application_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsNull", _wrap_Application_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetPointer", _wrap_Application_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetName", _wrap_Application_Pointer_SetName, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetName", _wrap_Application_Pointer_GetName, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDescription", _wrap_Application_Pointer_SetDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDescription", _wrap_Application_Pointer_GetDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_Init", _wrap_Application_Pointer_Init, METH_VARARGS, NULL}, { (char *)"Application_Pointer_UpdateParameters", _wrap_Application_Pointer_UpdateParameters, METH_VARARGS, NULL}, { (char *)"Application_Pointer_Execute", _wrap_Application_Pointer_Execute, METH_VARARGS, NULL}, { (char *)"Application_Pointer_WriteOutput", _wrap_Application_Pointer_WriteOutput, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ExecuteAndWriteOutput", _wrap_Application_Pointer_ExecuteAndWriteOutput, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ConnectImage", _wrap_Application_Pointer_ConnectImage, METH_VARARGS, NULL}, { (char *)"Application_Pointer_PropagateConnectMode", _wrap_Application_Pointer_PropagateConnectMode, METH_VARARGS, NULL}, { (char *)"Application_Pointer_LoadParametersFromXML", _wrap_Application_Pointer_LoadParametersFromXML, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SaveParametersToXML", _wrap_Application_Pointer_SaveParametersToXML, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetLogger", _wrap_Application_Pointer_GetLogger, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsDeprecated", _wrap_Application_Pointer_IsDeprecated, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParametersKeys", _wrap_Application_Pointer_GetParametersKeys, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterByKey", _wrap_Application_Pointer_GetParameterByKey, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterName", _wrap_Application_Pointer_GetParameterName, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterDescription", _wrap_Application_Pointer_GetParameterDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterDescription", _wrap_Application_Pointer_SetParameterDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterUserValue", _wrap_Application_Pointer_SetParameterUserValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_EnableParameter", _wrap_Application_Pointer_EnableParameter, METH_VARARGS, NULL}, { (char *)"Application_Pointer_DisableParameter", _wrap_Application_Pointer_DisableParameter, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsParameterEnabled", _wrap_Application_Pointer_IsParameterEnabled, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsMandatory", _wrap_Application_Pointer_IsMandatory, METH_VARARGS, NULL}, { (char *)"Application_Pointer_HasAutomaticValue", _wrap_Application_Pointer_HasAutomaticValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_HasUserValue", _wrap_Application_Pointer_HasUserValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ClearValue", _wrap_Application_Pointer_ClearValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_HasValue", _wrap_Application_Pointer_HasValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterUserLevel", _wrap_Application_Pointer_GetParameterUserLevel, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterType", _wrap_Application_Pointer_GetParameterType, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterRole", _wrap_Application_Pointer_GetParameterRole, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetChoiceKeys", _wrap_Application_Pointer_GetChoiceKeys, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetChoiceNames", _wrap_Application_Pointer_GetChoiceNames, METH_VARARGS, NULL}, { (char *)"Application_Pointer_IsApplicationReady", _wrap_Application_Pointer_IsApplicationReady, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterInt", _wrap_Application_Pointer_SetParameterInt, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterFloat", _wrap_Application_Pointer_SetParameterFloat, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterString", _wrap_Application_Pointer_SetParameterString, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterStringList", _wrap_Application_Pointer_SetParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterOutputImagePixelType", _wrap_Application_Pointer_SetParameterOutputImagePixelType, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterOutputImagePixelType", _wrap_Application_Pointer_GetParameterOutputImagePixelType, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterInt", _wrap_Application_Pointer_GetParameterInt, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterFloat", _wrap_Application_Pointer_GetParameterFloat, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterString", _wrap_Application_Pointer_GetParameterString, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterStringList", _wrap_Application_Pointer_GetParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterAsString", _wrap_Application_Pointer_GetParameterAsString, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetListViewSingleSelectionMode", _wrap_Application_Pointer_GetListViewSingleSelectionMode, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterOutputImage", _wrap_Application_Pointer_GetParameterOutputImage, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetParameterInputImage", _wrap_Application_Pointer_SetParameterInputImage, METH_VARARGS, NULL}, { (char *)"Application_Pointer_AddImageToParameterInputImageList", _wrap_Application_Pointer_AddImageToParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_AddParameterStringList", _wrap_Application_Pointer_AddParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetNthParameterInputImageList", _wrap_Application_Pointer_SetNthParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetNthParameterStringList", _wrap_Application_Pointer_SetNthParameterStringList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ClearParameterInputImageList", _wrap_Application_Pointer_ClearParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetNumberOfElementsInParameterInputImageList", _wrap_Application_Pointer_GetNumberOfElementsInParameterInputImageList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageOrigin", _wrap_Application_Pointer_GetImageOrigin, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageSpacing", _wrap_Application_Pointer_GetImageSpacing, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageSize", _wrap_Application_Pointer_GetImageSize, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageNbBands", _wrap_Application_Pointer_GetImageNbBands, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageProjection", _wrap_Application_Pointer_GetImageProjection, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageKeywordlist", _wrap_Application_Pointer_GetImageKeywordlist, METH_VARARGS, NULL}, { (char *)"Application_Pointer_PropagateRequestedRegion", _wrap_Application_Pointer_PropagateRequestedRegion, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageRequestedRegion", _wrap_Application_Pointer_GetImageRequestedRegion, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageMetaData", _wrap_Application_Pointer_GetImageMetaData, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetImageBasePixelType", _wrap_Application_Pointer_GetImageBasePixelType, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetProgressSource", _wrap_Application_Pointer_GetProgressSource, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetProgressDescription", _wrap_Application_Pointer_GetProgressDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_FreeRessources", _wrap_Application_Pointer_FreeRessources, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocLongDescription", _wrap_Application_Pointer_SetDocLongDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDocLongDescription", _wrap_Application_Pointer_GetDocLongDescription, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocAuthors", _wrap_Application_Pointer_SetDocAuthors, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDocAuthors", _wrap_Application_Pointer_GetDocAuthors, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocLimitations", _wrap_Application_Pointer_SetDocLimitations, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDocLimitations", _wrap_Application_Pointer_GetDocLimitations, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocSeeAlso", _wrap_Application_Pointer_SetDocSeeAlso, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDocSeeAlso", _wrap_Application_Pointer_GetDocSeeAlso, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocTags", _wrap_Application_Pointer_SetDocTags, METH_VARARGS, NULL}, { (char *)"Application_Pointer_AddDocTag", _wrap_Application_Pointer_AddDocTag, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetDocTags", _wrap_Application_Pointer_GetDocTags, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetParameterList", _wrap_Application_Pointer_GetParameterList, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetNumberOfExamples", _wrap_Application_Pointer_GetNumberOfExamples, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetExampleComment", _wrap_Application_Pointer_GetExampleComment, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetExampleNumberOfParameters", _wrap_Application_Pointer_GetExampleNumberOfParameters, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetExampleParameterKey", _wrap_Application_Pointer_GetExampleParameterKey, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetExampleParameterValue", _wrap_Application_Pointer_GetExampleParameterValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetDocExampleParameterValue", _wrap_Application_Pointer_SetDocExampleParameterValue, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetExampleComment", _wrap_Application_Pointer_SetExampleComment, METH_VARARGS, NULL}, { (char *)"Application_Pointer_AddExample", _wrap_Application_Pointer_AddExample, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetCLExample", _wrap_Application_Pointer_GetCLExample, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetHtmlExample", _wrap_Application_Pointer_GetHtmlExample, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetOutputParametersSumUp", _wrap_Application_Pointer_GetOutputParametersSumUp, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromUInt8NumpyArray_", _wrap_Application_Pointer_SetVectorImageFromUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromInt16NumpyArray_", _wrap_Application_Pointer_SetVectorImageFromInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromUInt16NumpyArray_", _wrap_Application_Pointer_SetVectorImageFromUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromInt32NumpyArray_", _wrap_Application_Pointer_SetVectorImageFromInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromUInt32NumpyArray_", _wrap_Application_Pointer_SetVectorImageFromUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromFloatNumpyArray_", _wrap_Application_Pointer_SetVectorImageFromFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromDoubleNumpyArray_", _wrap_Application_Pointer_SetVectorImageFromDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromCFloatNumpyArray_", _wrap_Application_Pointer_SetVectorImageFromCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetVectorImageFromCDoubleNumpyArray_", _wrap_Application_Pointer_SetVectorImageFromCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromUInt8NumpyArray_", _wrap_Application_Pointer_SetImageFromUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromInt16NumpyArray_", _wrap_Application_Pointer_SetImageFromInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromUInt16NumpyArray_", _wrap_Application_Pointer_SetImageFromUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromInt32NumpyArray_", _wrap_Application_Pointer_SetImageFromInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromUInt32NumpyArray_", _wrap_Application_Pointer_SetImageFromUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromFloatNumpyArray_", _wrap_Application_Pointer_SetImageFromFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromDoubleNumpyArray_", _wrap_Application_Pointer_SetImageFromDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromCFloatNumpyArray_", _wrap_Application_Pointer_SetImageFromCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetImageFromCDoubleNumpyArray_", _wrap_Application_Pointer_SetImageFromCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsUInt8NumpyArray_", _wrap_Application_Pointer_GetVectorImageAsUInt8NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsInt16NumpyArray_", _wrap_Application_Pointer_GetVectorImageAsInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsUInt16NumpyArray_", _wrap_Application_Pointer_GetVectorImageAsUInt16NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsInt32NumpyArray_", _wrap_Application_Pointer_GetVectorImageAsInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsUInt32NumpyArray_", _wrap_Application_Pointer_GetVectorImageAsUInt32NumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsFloatNumpyArray_", _wrap_Application_Pointer_GetVectorImageAsFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsDoubleNumpyArray_", _wrap_Application_Pointer_GetVectorImageAsDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsCFloatNumpyArray_", _wrap_Application_Pointer_GetVectorImageAsCFloatNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetVectorImageAsCDoubleNumpyArray_", _wrap_Application_Pointer_GetVectorImageAsCDoubleNumpyArray_, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ConvertPixelTypeToNumpy", _wrap_Application_Pointer_ConvertPixelTypeToNumpy, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetupImageInformation", _wrap_Application_Pointer_SetupImageInformation, METH_VARARGS, NULL}, { (char *)"Application_Pointer_New", _wrap_Application_Pointer_New, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetNameOfClass", _wrap_Application_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"Application_Pointer_AddObserver", _wrap_Application_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetCommand", _wrap_Application_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"Application_Pointer_InvokeEvent", _wrap_Application_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"Application_Pointer_RemoveObserver", _wrap_Application_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"Application_Pointer_RemoveAllObservers", _wrap_Application_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"Application_Pointer_HasObserver", _wrap_Application_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"Application_Pointer_GetMetaDataDictionary", _wrap_Application_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"Application_Pointer_SetMetaDataDictionary", _wrap_Application_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"Application_Pointer_Print", _wrap_Application_Pointer_Print, METH_VARARGS, NULL}, { (char *)"Application_Pointer_BreakOnError", _wrap_Application_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"Application_Pointer_ToString", _wrap_Application_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"Application_Pointer_swigregister", Application_Pointer_swigregister, METH_VARARGS, NULL}, { (char *)"Registry_GetAvailableApplications", _wrap_Registry_GetAvailableApplications, METH_VARARGS, NULL}, { (char *)"Registry_CreateApplicationWithoutLogger", _wrap_Registry_CreateApplicationWithoutLogger, METH_VARARGS, NULL}, { (char *)"Registry_AddApplicationPath", _wrap_Registry_AddApplicationPath, METH_VARARGS, NULL}, { (char *)"Registry_SetApplicationPath", _wrap_Registry_SetApplicationPath, METH_VARARGS, NULL}, { (char *)"Registry_CleanRegistry", _wrap_Registry_CleanRegistry, METH_VARARGS, NULL}, { (char *)"Registry_swigregister", Registry_swigregister, METH_VARARGS, NULL}, { (char *)"delete_AddProcessToWatchEvent", _wrap_delete_AddProcessToWatchEvent, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_GetEventName", _wrap_AddProcessToWatchEvent_GetEventName, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_CheckEvent", _wrap_AddProcessToWatchEvent_CheckEvent, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_MakeObject", _wrap_AddProcessToWatchEvent_MakeObject, METH_VARARGS, NULL}, { (char *)"new_AddProcessToWatchEvent", _wrap_new_AddProcessToWatchEvent, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_GetProcess", _wrap_AddProcessToWatchEvent_GetProcess, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_SetProcess", _wrap_AddProcessToWatchEvent_SetProcess, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_SetProcessDescription", _wrap_AddProcessToWatchEvent_SetProcessDescription, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_GetProcessDescription", _wrap_AddProcessToWatchEvent_GetProcessDescription, METH_VARARGS, NULL}, { (char *)"AddProcessToWatchEvent_swigregister", AddProcessToWatchEvent_swigregister, METH_VARARGS, NULL}, { (char *)"itkPyCommand_New", _wrap_itkPyCommand_New, METH_VARARGS, NULL}, { (char *)"itkPyCommand_GetNameOfClass", _wrap_itkPyCommand_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkPyCommand_SetCommandCallable", _wrap_itkPyCommand_SetCommandCallable, METH_VARARGS, NULL}, { (char *)"itkPyCommand_GetCommandCallable", _wrap_itkPyCommand_GetCommandCallable, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Execute", _wrap_itkPyCommand_Execute, METH_VARARGS, NULL}, { (char *)"delete_itkPyCommand", _wrap_delete_itkPyCommand, METH_VARARGS, NULL}, { (char *)"itkPyCommand_swigregister", itkPyCommand_swigregister, METH_VARARGS, NULL}, { (char *)"new_itkPyCommand_Pointer", _wrap_new_itkPyCommand_Pointer, METH_VARARGS, NULL}, { (char *)"delete_itkPyCommand_Pointer", _wrap_delete_itkPyCommand_Pointer, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer___deref__", _wrap_itkPyCommand_Pointer___deref__, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_IsNotNull", _wrap_itkPyCommand_Pointer_IsNotNull, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_IsNull", _wrap_itkPyCommand_Pointer_IsNull, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_GetPointer", _wrap_itkPyCommand_Pointer_GetPointer, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_New", _wrap_itkPyCommand_Pointer_New, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_GetNameOfClass", _wrap_itkPyCommand_Pointer_GetNameOfClass, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_SetCommandCallable", _wrap_itkPyCommand_Pointer_SetCommandCallable, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_GetCommandCallable", _wrap_itkPyCommand_Pointer_GetCommandCallable, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_Execute", _wrap_itkPyCommand_Pointer_Execute, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_AddObserver", _wrap_itkPyCommand_Pointer_AddObserver, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_GetCommand", _wrap_itkPyCommand_Pointer_GetCommand, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_InvokeEvent", _wrap_itkPyCommand_Pointer_InvokeEvent, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_RemoveObserver", _wrap_itkPyCommand_Pointer_RemoveObserver, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_RemoveAllObservers", _wrap_itkPyCommand_Pointer_RemoveAllObservers, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_HasObserver", _wrap_itkPyCommand_Pointer_HasObserver, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_GetMetaDataDictionary", _wrap_itkPyCommand_Pointer_GetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_SetMetaDataDictionary", _wrap_itkPyCommand_Pointer_SetMetaDataDictionary, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_Print", _wrap_itkPyCommand_Pointer_Print, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_BreakOnError", _wrap_itkPyCommand_Pointer_BreakOnError, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_ToString", _wrap_itkPyCommand_Pointer_ToString, METH_VARARGS, NULL}, { (char *)"itkPyCommand_Pointer_swigregister", itkPyCommand_Pointer_swigregister, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_PythonLogOutputTo_p_itkLogOutput(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLogOutput *) ((PythonLogOutput *) x)); } static void *_p_itkCommandTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((itkCommand *) x)); } static void *_p_ApplicationTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((Application *) x)); } static void *_p_RegistryTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((Registry *) x)); } static void *_p_itkPyCommandTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) (itkCommand *) ((itkPyCommand *) x)); } static void *_p_itkLogOutputTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((itkLogOutput *) x)); } static void *_p_PythonLogOutputTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) (itkLogOutput *) ((PythonLogOutput *) x)); } static void *_p_ProgressReporterManagerTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((ProgressReporterManager *) x)); } static void *_p_itkProcessObjectTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((itkProcessObject *) x)); } static void *_p_itkObjectFactoryBaseTo_p_itkObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkObject *) ((itkObjectFactoryBase *) x)); } static void *_p_itkProgressEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkProgressEvent *) x)); } static void *_p_itkDeleteEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkDeleteEvent *) x)); } static void *_p_itkExitEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkExitEvent *) x)); } static void *_p_itkStartEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkStartEvent *) x)); } static void *_p_itkIterationEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkIterationEvent *) x)); } static void *_p_itkModifiedEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkModifiedEvent *) x)); } static void *_p_itkPickEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkPickEvent *) x)); } static void *_p_itkStartPickEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) (itkPickEvent *) ((itkStartPickEvent *) x)); } static void *_p_itkUserEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkUserEvent *) x)); } static void *_p_itkAbortCheckEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) (itkPickEvent *) ((itkAbortCheckEvent *) x)); } static void *_p_itkEndPickEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) (itkPickEvent *) ((itkEndPickEvent *) x)); } static void *_p_itkEndEventTo_p_itkAnyEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkAnyEvent *) ((itkEndEvent *) x)); } static void *_p_itkStartPickEventTo_p_itkPickEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkPickEvent *) ((itkStartPickEvent *) x)); } static void *_p_itkAbortCheckEventTo_p_itkPickEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkPickEvent *) ((itkAbortCheckEvent *) x)); } static void *_p_itkEndPickEventTo_p_itkPickEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkPickEvent *) ((itkEndPickEvent *) x)); } static void *_p_AddProcessToWatchEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) ((AddProcessToWatchEvent *) x)); } static void *_p_itkUserEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkUserEvent *) x)); } static void *_p_itkStartEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkStartEvent *) x)); } static void *_p_itkEndEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkEndEvent *) x)); } static void *_p_itkProgressEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkProgressEvent *) x)); } static void *_p_itkEndPickEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *)(itkPickEvent *) ((itkEndPickEvent *) x)); } static void *_p_itkAbortCheckEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *)(itkPickEvent *) ((itkAbortCheckEvent *) x)); } static void *_p_itkStartPickEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *)(itkPickEvent *) ((itkStartPickEvent *) x)); } static void *_p_itkPickEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkPickEvent *) x)); } static void *_p_itkExitEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkExitEvent *) x)); } static void *_p_itkDeleteEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkDeleteEvent *) x)); } static void *_p_itkModifiedEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkModifiedEvent *) x)); } static void *_p_itkNoEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) ((itkNoEvent *) x)); } static void *_p_itkIterationEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) (itkAnyEvent *) ((itkIterationEvent *) x)); } static void *_p_itkAnyEventTo_p_itkEventObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkEventObject *) ((itkAnyEvent *) x)); } static void *_p_itkCommandTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((itkCommand *) x)); } static void *_p_ApplicationTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((Application *) x)); } static void *_p_RegistryTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((Registry *) x)); } static void *_p_itkPyCommandTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *)(itkCommand *) ((itkPyCommand *) x)); } static void *_p_itkLogOutputTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((itkLogOutput *) x)); } static void *_p_PythonLogOutputTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *)(itkLogOutput *) ((PythonLogOutput *) x)); } static void *_p_itkMetaDataObjectBaseTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) ((itkMetaDataObjectBase *) x)); } static void *_p_ProgressReporterManagerTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((ProgressReporterManager *) x)); } static void *_p_itkObjectTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) ((itkObject *) x)); } static void *_p_itkProcessObjectTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((itkProcessObject *) x)); } static void *_p_itkObjectFactoryBaseTo_p_itkLightObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkLightObject *) (itkObject *) ((itkObjectFactoryBase *) x)); } static void *_p_itkPyCommandTo_p_itkCommand(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itkCommand *) ((itkPyCommand *) x)); } static void *_p_itk__VectorT_double_2_tTo_p_itk__FixedArrayT_double_2_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itk::FixedArray< double,2 > *) ((itk::Vector< double,2 > *) x)); } static void *_p_itk__PointT_double_2_tTo_p_itk__FixedArrayT_double_2_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((itk::FixedArray< double,2 > *) ((itk::Point< double,2 > *) x)); } static swig_type_info _swigt__p_AddProcessToWatchEvent = {"_p_AddProcessToWatchEvent", "AddProcessToWatchEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Application = {"_p_Application", "Application *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Application_Pointer = {"_p_Application_Pointer", "Application_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ImageBaseType = {"_p_ImageBaseType", "ImageBaseType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_int16_t = {"_p_KWIML_INT_int16_t", "KWIML_INT_int16_t *|itk::int_least16_t *|itk::int_fast16_t *|itk::int16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_int32_t = {"_p_KWIML_INT_int32_t", "KWIML_INT_int32_t *|itk::int_least32_t *|itk::int_fast32_t *|itk::int32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_int64_t = {"_p_KWIML_INT_int64_t", "KWIML_INT_int64_t *|itk::int_least64_t *|itk::int_fast64_t *|itk::int64_t *|itk::intmax_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_int8_t = {"_p_KWIML_INT_int8_t", "itk::int_least8_t *|itk::int_fast8_t *|KWIML_INT_int8_t *|itk::int8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_uint16_t = {"_p_KWIML_INT_uint16_t", "KWIML_INT_uint16_t *|itk::uint_least16_t *|itk::uint_fast16_t *|itk::uint16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_uint32_t = {"_p_KWIML_INT_uint32_t", "KWIML_INT_uint32_t *|itk::uint_least32_t *|itk::uint_fast32_t *|itk::uint32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_uint64_t = {"_p_KWIML_INT_uint64_t", "KWIML_INT_uint64_t *|itk::uint_least64_t *|itk::uint_fast64_t *|itk::uint64_t *|itk::uintmax_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KWIML_INT_uint8_t = {"_p_KWIML_INT_uint8_t", "itk::uint_least8_t *|itk::uint_fast8_t *|KWIML_INT_uint8_t *|itk::uint8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KeywordlistMap = {"_p_KeywordlistMap", "KeywordlistMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_KeywordlistMapSizeType = {"_p_KeywordlistMapSizeType", "KeywordlistMapSizeType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Logger = {"_p_Logger", "Logger *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_NumericTraitsT_double_t__RealType = {"_p_NumericTraitsT_double_t__RealType", "NumericTraits< double >::RealType *|itk::Vector< double,2 >::RealValueType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Parameter = {"_p_Parameter", "Parameter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ProgressReporterManager = {"_p_ProgressReporterManager", "ProgressReporterManager *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ProgressReporterManager_Pointer = {"_p_ProgressReporterManager_Pointer", "ProgressReporterManager_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_PythonLogOutput = {"_p_PythonLogOutput", "PythonLogOutput *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_PythonLogOutput_Pointer = {"_p_PythonLogOutput_Pointer", "PythonLogOutput_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_RealValueType = {"_p_RealValueType", "RealValueType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Registry = {"_p_Registry", "Registry *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 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_const_reference = {"_p_const_reference", "const_reference *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "itk::SpacePrecisionType *|double *", 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_itkAbortCheckEvent = {"_p_itkAbortCheckEvent", "itkAbortCheckEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkAnyEvent = {"_p_itkAnyEvent", "itkAnyEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkCommand = {"_p_itkCommand", "itkCommand *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkCommand_Pointer = {"_p_itkCommand_Pointer", "itkCommand_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkDeleteEvent = {"_p_itkDeleteEvent", "itkDeleteEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkEndEvent = {"_p_itkEndEvent", "itkEndEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkEndPickEvent = {"_p_itkEndPickEvent", "itkEndPickEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkEventObject = {"_p_itkEventObject", "itkEventObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkExitEvent = {"_p_itkExitEvent", "itkExitEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkIndent = {"_p_itkIndent", "itkIndent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkIterationEvent = {"_p_itkIterationEvent", "itkIterationEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkLightObject = {"_p_itkLightObject", "itkLightObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkLightObject_Pointer = {"_p_itkLightObject_Pointer", "itkLightObject_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkLogOutput = {"_p_itkLogOutput", "itkLogOutput *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkMetaDataDictionary = {"_p_itkMetaDataDictionary", "itkMetaDataDictionary *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkMetaDataObjectBase = {"_p_itkMetaDataObjectBase", "itkMetaDataObjectBase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkMetaDataObjectBase_Pointer = {"_p_itkMetaDataObjectBase_Pointer", "itkMetaDataObjectBase_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkModifiedEvent = {"_p_itkModifiedEvent", "itkModifiedEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkNoEvent = {"_p_itkNoEvent", "itkNoEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkObject = {"_p_itkObject", "itkObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkObjectFactoryBase = {"_p_itkObjectFactoryBase", "itkObjectFactoryBase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkObjectFactoryBase_Pointer = {"_p_itkObjectFactoryBase_Pointer", "itkObjectFactoryBase_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkObject_Pointer = {"_p_itkObject_Pointer", "itkObject_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkPickEvent = {"_p_itkPickEvent", "itkPickEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkProcessObject = {"_p_itkProcessObject", "itkProcessObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkProcessObject_Pointer = {"_p_itkProcessObject_Pointer", "itkProcessObject_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkProgressEvent = {"_p_itkProgressEvent", "itkProgressEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkPyCommand = {"_p_itkPyCommand", "itkPyCommand *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkPyCommand_Pointer = {"_p_itkPyCommand_Pointer", "itkPyCommand_Pointer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkStartEvent = {"_p_itkStartEvent", "itkStartEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkStartPickEvent = {"_p_itkStartPickEvent", "itkStartPickEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itkUserEvent = {"_p_itkUserEvent", "itkUserEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__FixedArrayT_double_2_t = {"_p_itk__FixedArrayT_double_2_t", "itk::FixedArray< double,2 > *|itk::FixedArray< itk::SpacePrecisionType,2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__ImageRegionT_2_t = {"_p_itk__ImageRegionT_2_t", "itk::ImageRegion< 2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__IndexT_2_t = {"_p_itk__IndexT_2_t", "itk::Index< 2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__PointT_double_2_t = {"_p_itk__PointT_double_2_t", "itk::Point< double,2 > *|itk::Point< itk::SpacePrecisionType,2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__SizeT_2_t = {"_p_itk__SizeT_2_t", "itk::Size< 2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_itk__VectorT_double_2_t = {"_p_itk__VectorT_double_2_t", "itk::Vector< double,2 > *|itk::Vector< itk::SpacePrecisionType,2 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "itk::IndexValueType *|itk::OffsetValueType *|long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__ImageKeywordlist = {"_p_otb__ImageKeywordlist", "otb::ImageKeywordlist *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__OTB_GCP = {"_p_otb__OTB_GCP", "otb::OTB_GCP *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__SwigPrintCallback = {"_p_otb__SwigPrintCallback", "otb::SwigPrintCallback *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__VectorDataKeywordlist = {"_p_otb__VectorDataKeywordlist", "otb::VectorDataKeywordlist *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__ComplexImagePixelType = {"_p_otb__Wrapper__ComplexImagePixelType", "enum otb::Wrapper::ComplexImagePixelType *|otb::Wrapper::ComplexImagePixelType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__ImagePixelType = {"_p_otb__Wrapper__ImagePixelType", "enum otb::Wrapper::ImagePixelType *|otb::Wrapper::ImagePixelType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__ParameterGroup = {"_p_otb__Wrapper__ParameterGroup", "otb::Wrapper::ParameterGroup *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__ParameterType = {"_p_otb__Wrapper__ParameterType", "enum otb::Wrapper::ParameterType *|otb::Wrapper::ParameterType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__Role = {"_p_otb__Wrapper__Role", "enum otb::Wrapper::Role *|otb::Wrapper::Role *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_otb__Wrapper__UserLevel = {"_p_otb__Wrapper__UserLevel", "enum otb::Wrapper::UserLevel *|otb::Wrapper::UserLevel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_double = {"_p_p_double", "double **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_float = {"_p_p_float", "float **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_int = {"_p_p_int", "int **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_short = {"_p_p_short", "short **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_std__complexT_double_t = {"_p_p_std__complexT_double_t", "std::complex< double > **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_std__complexT_float_t = {"_p_p_std__complexT_float_t", "std::complex< float > **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_unsigned_char = {"_p_p_unsigned_char", "unsigned char **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_unsigned_int = {"_p_p_unsigned_int", "unsigned int **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_unsigned_short = {"_p_p_unsigned_short", "unsigned short **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ptrdiff_t = {"_p_ptrdiff_t", "::ptrdiff_t *|itk::intptr_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_reference = {"_p_reference", "reference *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_t = {"_p_size_t", "itk::uintptr_t *|::size_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_bool_t = {"_p_std__allocatorT_bool_t", "std::vector< bool >::allocator_type *|std::allocator< bool > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_double_t = {"_p_std__allocatorT_double_t", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t", "std::map< std::string,std::string >::allocator_type *|std::allocator< std::pair< std::string const,std::string > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__allocatorT_std__string_t", "std::vector< std::string >::allocator_type *|std::allocator< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__complexT_double_t = {"_p_std__complexT_double_t", "std::complex< double > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__complexT_float_t = {"_p_std__complexT_float_t", "std::complex< float > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__lessT_std__string_t = {"_p_std__lessT_std__string_t", "std::less< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_bool_t = {"_p_std__listT_bool_t", "std::list< bool > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_itkLightObject_Pointer_t = {"_p_std__listT_itkLightObject_Pointer_t", "std::list< itkLightObject_Pointer > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_itkObjectFactoryBase_p_t = {"_p_std__listT_itkObjectFactoryBase_p_t", "std::list< itkObjectFactoryBase * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_std__string_t = {"_p_std__listT_std__string_t", "std::list< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t = {"_p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t", "std::map< std::string,std::string > *|std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__type_info = {"_p_std__type_info", "std::type_info *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t = {"_p_std__vectorT_bool_std__allocatorT_bool_t_t", "std::vector< bool,std::allocator< bool > > *|std::vector< bool > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t = {"_p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t", "std::vector< std::pair< std::string,std::string >,std::allocator< std::pair< std::string,std::string > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *|std::vector< std::string > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "itk::ThreadIdType *|unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "itk::IdentifierType *|itk::ModifiedTimeType *|itk::SizeValueType *|unsigned long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_AddProcessToWatchEvent, &_swigt__p_Application, &_swigt__p_Application_Pointer, &_swigt__p_ImageBaseType, &_swigt__p_KWIML_INT_int16_t, &_swigt__p_KWIML_INT_int32_t, &_swigt__p_KWIML_INT_int64_t, &_swigt__p_KWIML_INT_int8_t, &_swigt__p_KWIML_INT_uint16_t, &_swigt__p_KWIML_INT_uint32_t, &_swigt__p_KWIML_INT_uint64_t, &_swigt__p_KWIML_INT_uint8_t, &_swigt__p_KeywordlistMap, &_swigt__p_KeywordlistMapSizeType, &_swigt__p_Logger, &_swigt__p_NumericTraitsT_double_t__RealType, &_swigt__p_Parameter, &_swigt__p_ProgressReporterManager, &_swigt__p_ProgressReporterManager_Pointer, &_swigt__p_PythonLogOutput, &_swigt__p_PythonLogOutput_Pointer, &_swigt__p_RealValueType, &_swigt__p_Registry, &_swigt__p_allocator_type, &_swigt__p_char, &_swigt__p_const_reference, &_swigt__p_difference_type, &_swigt__p_double, &_swigt__p_int, &_swigt__p_itkAbortCheckEvent, &_swigt__p_itkAnyEvent, &_swigt__p_itkCommand, &_swigt__p_itkCommand_Pointer, &_swigt__p_itkDeleteEvent, &_swigt__p_itkEndEvent, &_swigt__p_itkEndPickEvent, &_swigt__p_itkEventObject, &_swigt__p_itkExitEvent, &_swigt__p_itkIndent, &_swigt__p_itkIterationEvent, &_swigt__p_itkLightObject, &_swigt__p_itkLightObject_Pointer, &_swigt__p_itkLogOutput, &_swigt__p_itkMetaDataDictionary, &_swigt__p_itkMetaDataObjectBase, &_swigt__p_itkMetaDataObjectBase_Pointer, &_swigt__p_itkModifiedEvent, &_swigt__p_itkNoEvent, &_swigt__p_itkObject, &_swigt__p_itkObjectFactoryBase, &_swigt__p_itkObjectFactoryBase_Pointer, &_swigt__p_itkObject_Pointer, &_swigt__p_itkPickEvent, &_swigt__p_itkProcessObject, &_swigt__p_itkProcessObject_Pointer, &_swigt__p_itkProgressEvent, &_swigt__p_itkPyCommand, &_swigt__p_itkPyCommand_Pointer, &_swigt__p_itkStartEvent, &_swigt__p_itkStartPickEvent, &_swigt__p_itkUserEvent, &_swigt__p_itk__FixedArrayT_double_2_t, &_swigt__p_itk__ImageRegionT_2_t, &_swigt__p_itk__IndexT_2_t, &_swigt__p_itk__PointT_double_2_t, &_swigt__p_itk__SizeT_2_t, &_swigt__p_itk__VectorT_double_2_t, &_swigt__p_key_type, &_swigt__p_long, &_swigt__p_mapped_type, &_swigt__p_otb__ImageKeywordlist, &_swigt__p_otb__OTB_GCP, &_swigt__p_otb__SwigPrintCallback, &_swigt__p_otb__VectorDataKeywordlist, &_swigt__p_otb__Wrapper__ComplexImagePixelType, &_swigt__p_otb__Wrapper__ImagePixelType, &_swigt__p_otb__Wrapper__ParameterGroup, &_swigt__p_otb__Wrapper__ParameterType, &_swigt__p_otb__Wrapper__Role, &_swigt__p_otb__Wrapper__UserLevel, &_swigt__p_p_PyObject, &_swigt__p_p_double, &_swigt__p_p_float, &_swigt__p_p_int, &_swigt__p_p_short, &_swigt__p_p_std__complexT_double_t, &_swigt__p_p_std__complexT_float_t, &_swigt__p_p_unsigned_char, &_swigt__p_p_unsigned_int, &_swigt__p_p_unsigned_short, &_swigt__p_ptrdiff_t, &_swigt__p_reference, &_swigt__p_size_t, &_swigt__p_size_type, &_swigt__p_std__allocatorT_bool_t, &_swigt__p_std__allocatorT_double_t, &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, &_swigt__p_std__allocatorT_std__string_t, &_swigt__p_std__complexT_double_t, &_swigt__p_std__complexT_float_t, &_swigt__p_std__invalid_argument, &_swigt__p_std__lessT_std__string_t, &_swigt__p_std__listT_bool_t, &_swigt__p_std__listT_itkLightObject_Pointer_t, &_swigt__p_std__listT_itkObjectFactoryBase_p_t, &_swigt__p_std__listT_std__string_t, &_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, &_swigt__p_std__ostream, &_swigt__p_std__type_info, &_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t, &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, &_swigt__p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t, &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, &_swigt__p_swig__SwigPyIterator, &_swigt__p_unsigned_int, &_swigt__p_unsigned_long, &_swigt__p_value_type, }; static swig_cast_info _swigc__p_AddProcessToWatchEvent[] = { {&_swigt__p_AddProcessToWatchEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Application[] = { {&_swigt__p_Application, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Application_Pointer[] = { {&_swigt__p_Application_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ImageBaseType[] = { {&_swigt__p_ImageBaseType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_int16_t[] = { {&_swigt__p_KWIML_INT_int16_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_int32_t[] = { {&_swigt__p_KWIML_INT_int32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_int64_t[] = { {&_swigt__p_KWIML_INT_int64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_int8_t[] = { {&_swigt__p_KWIML_INT_int8_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_uint16_t[] = { {&_swigt__p_KWIML_INT_uint16_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_uint32_t[] = { {&_swigt__p_KWIML_INT_uint32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_uint64_t[] = { {&_swigt__p_KWIML_INT_uint64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KWIML_INT_uint8_t[] = { {&_swigt__p_KWIML_INT_uint8_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KeywordlistMap[] = { {&_swigt__p_KeywordlistMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_KeywordlistMapSizeType[] = { {&_swigt__p_KeywordlistMapSizeType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Logger[] = { {&_swigt__p_Logger, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_NumericTraitsT_double_t__RealType[] = { {&_swigt__p_NumericTraitsT_double_t__RealType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Parameter[] = { {&_swigt__p_Parameter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ProgressReporterManager[] = { {&_swigt__p_ProgressReporterManager, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ProgressReporterManager_Pointer[] = { {&_swigt__p_ProgressReporterManager_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_PythonLogOutput[] = { {&_swigt__p_PythonLogOutput, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_PythonLogOutput_Pointer[] = { {&_swigt__p_PythonLogOutput_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RealValueType[] = { {&_swigt__p_RealValueType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Registry[] = { {&_swigt__p_Registry, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 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_const_reference[] = { {&_swigt__p_const_reference, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 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_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkAbortCheckEvent[] = { {&_swigt__p_itkAbortCheckEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkAnyEvent[] = { {&_swigt__p_itkProgressEvent, _p_itkProgressEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkDeleteEvent, _p_itkDeleteEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkExitEvent, _p_itkExitEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkStartEvent, _p_itkStartEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkIterationEvent, _p_itkIterationEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkModifiedEvent, _p_itkModifiedEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkPickEvent, _p_itkPickEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkStartPickEvent, _p_itkStartPickEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkAbortCheckEvent, _p_itkAbortCheckEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkEndPickEvent, _p_itkEndPickEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkUserEvent, _p_itkUserEventTo_p_itkAnyEvent, 0, 0}, {&_swigt__p_itkAnyEvent, 0, 0, 0}, {&_swigt__p_itkEndEvent, _p_itkEndEventTo_p_itkAnyEvent, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkCommand[] = { {&_swigt__p_itkCommand, 0, 0, 0}, {&_swigt__p_itkPyCommand, _p_itkPyCommandTo_p_itkCommand, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkCommand_Pointer[] = { {&_swigt__p_itkCommand_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkDeleteEvent[] = { {&_swigt__p_itkDeleteEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkEndEvent[] = { {&_swigt__p_itkEndEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkEndPickEvent[] = { {&_swigt__p_itkEndPickEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkEventObject[] = { {&_swigt__p_AddProcessToWatchEvent, _p_AddProcessToWatchEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkEventObject, 0, 0, 0}, {&_swigt__p_itkUserEvent, _p_itkUserEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkStartEvent, _p_itkStartEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkEndEvent, _p_itkEndEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkProgressEvent, _p_itkProgressEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkEndPickEvent, _p_itkEndPickEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkAbortCheckEvent, _p_itkAbortCheckEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkStartPickEvent, _p_itkStartPickEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkPickEvent, _p_itkPickEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkExitEvent, _p_itkExitEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkDeleteEvent, _p_itkDeleteEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkModifiedEvent, _p_itkModifiedEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkNoEvent, _p_itkNoEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkIterationEvent, _p_itkIterationEventTo_p_itkEventObject, 0, 0}, {&_swigt__p_itkAnyEvent, _p_itkAnyEventTo_p_itkEventObject, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkExitEvent[] = { {&_swigt__p_itkExitEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkIndent[] = { {&_swigt__p_itkIndent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkIterationEvent[] = { {&_swigt__p_itkIterationEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkLightObject[] = { {&_swigt__p_itkCommand, _p_itkCommandTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkPyCommand, _p_itkPyCommandTo_p_itkLightObject, 0, 0}, {&_swigt__p_Application, _p_ApplicationTo_p_itkLightObject, 0, 0}, {&_swigt__p_Registry, _p_RegistryTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkLogOutput, _p_itkLogOutputTo_p_itkLightObject, 0, 0}, {&_swigt__p_PythonLogOutput, _p_PythonLogOutputTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkLightObject, 0, 0, 0}, {&_swigt__p_itkMetaDataObjectBase, _p_itkMetaDataObjectBaseTo_p_itkLightObject, 0, 0}, {&_swigt__p_ProgressReporterManager, _p_ProgressReporterManagerTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkObject, _p_itkObjectTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkProcessObject, _p_itkProcessObjectTo_p_itkLightObject, 0, 0}, {&_swigt__p_itkObjectFactoryBase, _p_itkObjectFactoryBaseTo_p_itkLightObject, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkLightObject_Pointer[] = { {&_swigt__p_itkLightObject_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkLogOutput[] = { {&_swigt__p_itkLogOutput, 0, 0, 0}, {&_swigt__p_PythonLogOutput, _p_PythonLogOutputTo_p_itkLogOutput, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkMetaDataDictionary[] = { {&_swigt__p_itkMetaDataDictionary, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkMetaDataObjectBase[] = { {&_swigt__p_itkMetaDataObjectBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkMetaDataObjectBase_Pointer[] = { {&_swigt__p_itkMetaDataObjectBase_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkModifiedEvent[] = { {&_swigt__p_itkModifiedEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkNoEvent[] = { {&_swigt__p_itkNoEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkObject[] = { {&_swigt__p_itkCommand, _p_itkCommandTo_p_itkObject, 0, 0}, {&_swigt__p_itkPyCommand, _p_itkPyCommandTo_p_itkObject, 0, 0}, {&_swigt__p_Application, _p_ApplicationTo_p_itkObject, 0, 0}, {&_swigt__p_Registry, _p_RegistryTo_p_itkObject, 0, 0}, {&_swigt__p_itkLogOutput, _p_itkLogOutputTo_p_itkObject, 0, 0}, {&_swigt__p_PythonLogOutput, _p_PythonLogOutputTo_p_itkObject, 0, 0}, {&_swigt__p_ProgressReporterManager, _p_ProgressReporterManagerTo_p_itkObject, 0, 0}, {&_swigt__p_itkObject, 0, 0, 0}, {&_swigt__p_itkProcessObject, _p_itkProcessObjectTo_p_itkObject, 0, 0}, {&_swigt__p_itkObjectFactoryBase, _p_itkObjectFactoryBaseTo_p_itkObject, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkObjectFactoryBase[] = { {&_swigt__p_itkObjectFactoryBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkObjectFactoryBase_Pointer[] = { {&_swigt__p_itkObjectFactoryBase_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkObject_Pointer[] = { {&_swigt__p_itkObject_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkPickEvent[] = { {&_swigt__p_itkPickEvent, 0, 0, 0}, {&_swigt__p_itkStartPickEvent, _p_itkStartPickEventTo_p_itkPickEvent, 0, 0}, {&_swigt__p_itkAbortCheckEvent, _p_itkAbortCheckEventTo_p_itkPickEvent, 0, 0}, {&_swigt__p_itkEndPickEvent, _p_itkEndPickEventTo_p_itkPickEvent, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkProcessObject[] = { {&_swigt__p_itkProcessObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkProcessObject_Pointer[] = { {&_swigt__p_itkProcessObject_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkProgressEvent[] = { {&_swigt__p_itkProgressEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkPyCommand[] = { {&_swigt__p_itkPyCommand, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkPyCommand_Pointer[] = { {&_swigt__p_itkPyCommand_Pointer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkStartEvent[] = { {&_swigt__p_itkStartEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkStartPickEvent[] = { {&_swigt__p_itkStartPickEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itkUserEvent[] = { {&_swigt__p_itkUserEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__FixedArrayT_double_2_t[] = { {&_swigt__p_itk__FixedArrayT_double_2_t, 0, 0, 0}, {&_swigt__p_itk__VectorT_double_2_t, _p_itk__VectorT_double_2_tTo_p_itk__FixedArrayT_double_2_t, 0, 0}, {&_swigt__p_itk__PointT_double_2_t, _p_itk__PointT_double_2_tTo_p_itk__FixedArrayT_double_2_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__ImageRegionT_2_t[] = { {&_swigt__p_itk__ImageRegionT_2_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__IndexT_2_t[] = { {&_swigt__p_itk__IndexT_2_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__PointT_double_2_t[] = { {&_swigt__p_itk__PointT_double_2_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__SizeT_2_t[] = { {&_swigt__p_itk__SizeT_2_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_itk__VectorT_double_2_t[] = { {&_swigt__p_itk__VectorT_double_2_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_key_type[] = { {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mapped_type[] = { {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__ImageKeywordlist[] = { {&_swigt__p_otb__ImageKeywordlist, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__OTB_GCP[] = { {&_swigt__p_otb__OTB_GCP, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__SwigPrintCallback[] = { {&_swigt__p_otb__SwigPrintCallback, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__VectorDataKeywordlist[] = { {&_swigt__p_otb__VectorDataKeywordlist, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__ComplexImagePixelType[] = { {&_swigt__p_otb__Wrapper__ComplexImagePixelType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__ImagePixelType[] = { {&_swigt__p_otb__Wrapper__ImagePixelType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__ParameterGroup[] = { {&_swigt__p_otb__Wrapper__ParameterGroup, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__ParameterType[] = { {&_swigt__p_otb__Wrapper__ParameterType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__Role[] = { {&_swigt__p_otb__Wrapper__Role, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_otb__Wrapper__UserLevel[] = { {&_swigt__p_otb__Wrapper__UserLevel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_double[] = { {&_swigt__p_p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_float[] = { {&_swigt__p_p_float, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_int[] = { {&_swigt__p_p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_short[] = { {&_swigt__p_p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_std__complexT_double_t[] = { {&_swigt__p_p_std__complexT_double_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_std__complexT_float_t[] = { {&_swigt__p_p_std__complexT_float_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_unsigned_char[] = { {&_swigt__p_p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_unsigned_int[] = { {&_swigt__p_p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_unsigned_short[] = { {&_swigt__p_p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ptrdiff_t[] = { {&_swigt__p_ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_reference[] = { {&_swigt__p_reference, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_bool_t[] = { {&_swigt__p_std__allocatorT_bool_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_double_t[] = { {&_swigt__p_std__allocatorT_double_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t[] = { {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = { {&_swigt__p_std__allocatorT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__complexT_double_t[] = { {&_swigt__p_std__complexT_double_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__complexT_float_t[] = { {&_swigt__p_std__complexT_float_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__lessT_std__string_t[] = { {&_swigt__p_std__lessT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_bool_t[] = { {&_swigt__p_std__listT_bool_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_itkLightObject_Pointer_t[] = { {&_swigt__p_std__listT_itkLightObject_Pointer_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_itkObjectFactoryBase_p_t[] = { {&_swigt__p_std__listT_itkObjectFactoryBase_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_std__string_t[] = { {&_swigt__p_std__listT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t[] = { {&_swigt__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__ostream[] = { {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__type_info[] = { {&_swigt__p_std__type_info, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t[] = { {&_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t[] = { {&_swigt__p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = { {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 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_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_AddProcessToWatchEvent, _swigc__p_Application, _swigc__p_Application_Pointer, _swigc__p_ImageBaseType, _swigc__p_KWIML_INT_int16_t, _swigc__p_KWIML_INT_int32_t, _swigc__p_KWIML_INT_int64_t, _swigc__p_KWIML_INT_int8_t, _swigc__p_KWIML_INT_uint16_t, _swigc__p_KWIML_INT_uint32_t, _swigc__p_KWIML_INT_uint64_t, _swigc__p_KWIML_INT_uint8_t, _swigc__p_KeywordlistMap, _swigc__p_KeywordlistMapSizeType, _swigc__p_Logger, _swigc__p_NumericTraitsT_double_t__RealType, _swigc__p_Parameter, _swigc__p_ProgressReporterManager, _swigc__p_ProgressReporterManager_Pointer, _swigc__p_PythonLogOutput, _swigc__p_PythonLogOutput_Pointer, _swigc__p_RealValueType, _swigc__p_Registry, _swigc__p_allocator_type, _swigc__p_char, _swigc__p_const_reference, _swigc__p_difference_type, _swigc__p_double, _swigc__p_int, _swigc__p_itkAbortCheckEvent, _swigc__p_itkAnyEvent, _swigc__p_itkCommand, _swigc__p_itkCommand_Pointer, _swigc__p_itkDeleteEvent, _swigc__p_itkEndEvent, _swigc__p_itkEndPickEvent, _swigc__p_itkEventObject, _swigc__p_itkExitEvent, _swigc__p_itkIndent, _swigc__p_itkIterationEvent, _swigc__p_itkLightObject, _swigc__p_itkLightObject_Pointer, _swigc__p_itkLogOutput, _swigc__p_itkMetaDataDictionary, _swigc__p_itkMetaDataObjectBase, _swigc__p_itkMetaDataObjectBase_Pointer, _swigc__p_itkModifiedEvent, _swigc__p_itkNoEvent, _swigc__p_itkObject, _swigc__p_itkObjectFactoryBase, _swigc__p_itkObjectFactoryBase_Pointer, _swigc__p_itkObject_Pointer, _swigc__p_itkPickEvent, _swigc__p_itkProcessObject, _swigc__p_itkProcessObject_Pointer, _swigc__p_itkProgressEvent, _swigc__p_itkPyCommand, _swigc__p_itkPyCommand_Pointer, _swigc__p_itkStartEvent, _swigc__p_itkStartPickEvent, _swigc__p_itkUserEvent, _swigc__p_itk__FixedArrayT_double_2_t, _swigc__p_itk__ImageRegionT_2_t, _swigc__p_itk__IndexT_2_t, _swigc__p_itk__PointT_double_2_t, _swigc__p_itk__SizeT_2_t, _swigc__p_itk__VectorT_double_2_t, _swigc__p_key_type, _swigc__p_long, _swigc__p_mapped_type, _swigc__p_otb__ImageKeywordlist, _swigc__p_otb__OTB_GCP, _swigc__p_otb__SwigPrintCallback, _swigc__p_otb__VectorDataKeywordlist, _swigc__p_otb__Wrapper__ComplexImagePixelType, _swigc__p_otb__Wrapper__ImagePixelType, _swigc__p_otb__Wrapper__ParameterGroup, _swigc__p_otb__Wrapper__ParameterType, _swigc__p_otb__Wrapper__Role, _swigc__p_otb__Wrapper__UserLevel, _swigc__p_p_PyObject, _swigc__p_p_double, _swigc__p_p_float, _swigc__p_p_int, _swigc__p_p_short, _swigc__p_p_std__complexT_double_t, _swigc__p_p_std__complexT_float_t, _swigc__p_p_unsigned_char, _swigc__p_p_unsigned_int, _swigc__p_p_unsigned_short, _swigc__p_ptrdiff_t, _swigc__p_reference, _swigc__p_size_t, _swigc__p_size_type, _swigc__p_std__allocatorT_bool_t, _swigc__p_std__allocatorT_double_t, _swigc__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, _swigc__p_std__allocatorT_std__string_t, _swigc__p_std__complexT_double_t, _swigc__p_std__complexT_float_t, _swigc__p_std__invalid_argument, _swigc__p_std__lessT_std__string_t, _swigc__p_std__listT_bool_t, _swigc__p_std__listT_itkLightObject_Pointer_t, _swigc__p_std__listT_itkObjectFactoryBase_p_t, _swigc__p_std__listT_std__string_t, _swigc__p_std__mapT_std__string_std__string_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_std__string_t_t_t, _swigc__p_std__ostream, _swigc__p_std__type_info, _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t, _swigc__p_std__vectorT_double_std__allocatorT_double_t_t, _swigc__p_std__vectorT_std__pairT_std__string_std__string_t_std__allocatorT_std__pairT_std__string_std__string_t_t_t, _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, _swigc__p_swig__SwigPyIterator, _swigc__p_unsigned_int, _swigc__p_unsigned_long, _swigc__p_value_type, }; /* -------- 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 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 * 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 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); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our 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_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } 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_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } 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 = { #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_tag */ #endif #if PY_VERSION_HEX >= 0x03040000 0, /* tp_finalize */ #endif #ifdef COUNT_ALLOCS 0, /* tp_allocs */ 0, /* tp_frees */ 0, /* tp_maxalloc */ #if PY_VERSION_HEX >= 0x02050000 0, /* tp_prev */ #endif 0 /* 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) continue; c = strstr(c, "swig_ptr: "); if (c) { 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 }; PyTypeObject *builtin_pytype; int builtin_base_count; swig_type_info *builtin_basetype; PyObject *tuple; PyGetSetDescrObject *static_getset; PyTypeObject *metatype; PyTypeObject *swigpyobject; SwigPyClientData *cd; PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; PyObject *self = 0; int i; (void)builtin_pytype; (void)builtin_base_count; (void)builtin_basetype; (void)tuple; (void)static_getset; (void)self; /* Metaclass is used to implement static member variables */ metatype = SwigPyObjectType(); assert(metatype); #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 = SwigPyObject_TypeOnce(); 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; } else if (swigpyobject->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); import_array(); SWIG_Python_SetConstant(d, "ParameterType_Int",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Int))); SWIG_Python_SetConstant(d, "ParameterType_Float",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Float))); SWIG_Python_SetConstant(d, "ParameterType_String",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_String))); SWIG_Python_SetConstant(d, "ParameterType_StringList",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_StringList))); SWIG_Python_SetConstant(d, "ParameterType_InputFilename",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputFilename))); SWIG_Python_SetConstant(d, "ParameterType_InputFilenameList",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputFilenameList))); SWIG_Python_SetConstant(d, "ParameterType_OutputFilename",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_OutputFilename))); SWIG_Python_SetConstant(d, "ParameterType_Directory",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Directory))); SWIG_Python_SetConstant(d, "ParameterType_Choice",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Choice))); SWIG_Python_SetConstant(d, "ParameterType_InputImage",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputImage))); SWIG_Python_SetConstant(d, "ParameterType_InputImageList",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputImageList))); SWIG_Python_SetConstant(d, "ParameterType_InputVectorData",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputVectorData))); SWIG_Python_SetConstant(d, "ParameterType_InputVectorDataList",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_InputVectorDataList))); SWIG_Python_SetConstant(d, "ParameterType_OutputImage",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_OutputImage))); SWIG_Python_SetConstant(d, "ParameterType_OutputVectorData",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_OutputVectorData))); SWIG_Python_SetConstant(d, "ParameterType_Radius",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Radius))); SWIG_Python_SetConstant(d, "ParameterType_Group",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Group))); SWIG_Python_SetConstant(d, "ParameterType_ListView",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_ListView))); SWIG_Python_SetConstant(d, "ParameterType_RAM",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_RAM))); SWIG_Python_SetConstant(d, "ParameterType_Bool",SWIG_From_int(static_cast< int >(otb::Wrapper::ParameterType_Bool))); SWIG_Python_SetConstant(d, "UserLevel_Basic",SWIG_From_int(static_cast< int >(otb::Wrapper::UserLevel_Basic))); SWIG_Python_SetConstant(d, "UserLevel_Advanced",SWIG_From_int(static_cast< int >(otb::Wrapper::UserLevel_Advanced))); SWIG_Python_SetConstant(d, "ImagePixelType_uint8",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_uint8))); SWIG_Python_SetConstant(d, "ImagePixelType_int16",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_int16))); SWIG_Python_SetConstant(d, "ImagePixelType_uint16",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_uint16))); SWIG_Python_SetConstant(d, "ImagePixelType_int32",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_int32))); SWIG_Python_SetConstant(d, "ImagePixelType_uint32",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_uint32))); SWIG_Python_SetConstant(d, "ImagePixelType_float",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_float))); SWIG_Python_SetConstant(d, "ImagePixelType_double",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_double))); SWIG_Python_SetConstant(d, "ImagePixelType_cint16",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_cint16))); SWIG_Python_SetConstant(d, "ImagePixelType_cint32",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_cint32))); SWIG_Python_SetConstant(d, "ImagePixelType_cfloat",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_cfloat))); SWIG_Python_SetConstant(d, "ImagePixelType_cdouble",SWIG_From_int(static_cast< int >(otb::Wrapper::ImagePixelType_cdouble))); SWIG_Python_SetConstant(d, "Role_Input",SWIG_From_int(static_cast< int >(otb::Wrapper::Role_Input))); SWIG_Python_SetConstant(d, "Role_Output",SWIG_From_int(static_cast< int >(otb::Wrapper::Role_Output))); SWIG_Python_SetConstant(d, "ComplexImagePixelType_float",SWIG_From_int(static_cast< int >(otb::Wrapper::ComplexImagePixelType_float))); SWIG_Python_SetConstant(d, "ComplexImagePixelType_double",SWIG_From_int(static_cast< int >(otb::Wrapper::ComplexImagePixelType_double))); #if PY_VERSION_HEX >= 0x03000000 return m; #else return; #endif }