You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25639 lines
978 KiB
C++

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* 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_PYTHON_DIRECTOR_NO_VTABLE
#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> 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<T>& rhs);
SwigValueWrapper(const SwigValueWrapper<T>& 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 <typename T> 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(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
# include <math.h>
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
/* Use debug wrappers with the Python release dll */
# undef _DEBUG
# include <Python.h>
# define _DEBUG 1
#else
# include <Python.h>
#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
#define SWIG_POINTER_NO_NULL 0x4
/* 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 (<obj is ok>) {
if (<need new object>) {
*ptr = <ptr to new allocated object>;
return SWIG_NEWOBJ;
} else {
*ptr = <ptr to old object>;
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 <string.h>
#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<int>" == "Class<int >", 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 <name1>|<name2>|...
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 <name1>|<name2>|...
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 >= 0x03030000
return (char *)PyUnicode_AsUTF8(str);
#elif PY_VERSION_HEX >= 0x03000000
char *newstr = 0;
str = PyUnicode_AsUTF8String(str);
if (str) {
char *cstr;
Py_ssize_t len;
if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
newstr = (char *) malloc(len+1);
if (newstr)
memcpy(newstr, cstr, len+1);
}
Py_XDECREF(str);
}
return newstr;
#else
return PyString_AsString(str);
#endif
}
#if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
# define SWIG_Python_str_DelForPy3(x)
#else
# define SWIG_Python_str_DelForPy3(x) free( (void*) (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
}
#ifndef PyObject_DEL
# define PyObject_DEL PyObject_Del
#endif
// SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
// interface files check for it.
# define SWIGPY_USE_CAPSULE
# define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
#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) {
PyObject *old_str = PyObject_Str(value);
const char *tmp = SWIG_Python_str_AsChar(old_str);
PyErr_Clear();
Py_XINCREF(type);
if (tmp)
PyErr_Format(type, "%s %s", tmp, mesg);
else
PyErr_Format(type, "%s", mesg);
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str);
Py_DECREF(value);
} else {
PyErr_SetString(PyExc_RuntimeError, mesg);
}
}
SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject *obj)
{
PyObject *error;
if (obj)
return 0;
error = PyErr_Occurred();
return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
}
SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char *message)
{
if (SWIG_Python_TypeErrorOccurred(NULL)) {
/* Use existing TypeError to preserve stacktrace and enhance with given message */
PyObject *newvalue;
PyObject *type = NULL, *value = NULL, *traceback = NULL;
PyErr_Fetch(&type, &value, &traceback);
#if PY_VERSION_HEX >= 0x03000000
newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
#else
newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
#endif
Py_XDECREF(value);
PyErr_Restore(type, newvalue, traceback);
} else {
/* Raise TypeError using given message */
PyErr_SetString(PyExc_TypeError, message);
}
}
#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)
# define SWIG_PYTHON_USE_GIL
# 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;
const char *name;
long lvalue;
double dvalue;
void *pvalue;
swig_type_info **ptype;
} swig_const_info;
#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.
*
* ----------------------------------------------------------------------------- */
#if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
# error "This version of SWIG only supports Python >= 2.7"
#endif
#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
# error "This version of SWIG only supports Python 3 >= 3.2"
#endif
/* 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) {
PyDict_SetItemString(d, name, obj);
Py_DECREF(obj);
if (public_interface)
SwigPyBuiltin_AddPublicSymbol(public_interface, name);
}
#else
SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
PyDict_SetItemString(d, name, obj);
Py_DECREF(obj);
}
#endif
/* Append a value to the result obj */
SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
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;
}
/* 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;
}
}
}
SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
int no_kwargs = 1;
if (kwargs) {
assert(PyDict_Check(kwargs));
if (PyDict_Size(kwargs) > 0) {
PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
no_kwargs = 0;
}
}
return no_kwargs;
}
/* A functor is a function object with one single object argument */
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
/*
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
/* 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;
int fail = data ? data->implicitconv : 0;
if (fail)
PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
return fail;
}
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 {
data->newraw = PyObject_GetAttrString(data->klass, "__new__");
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, "__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);
data->delargs = !(flags & (METH_O));
} 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 *
SwigPyObject_repr(SwigPyObject *v)
{
const char *name = SWIG_TypePrettyName(v->ty);
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
if (v->next) {
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
# 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;
}
/* We need a version taking two PyObject* parameters so it's a valid
* PyCFunction to use in swigobject_methods[]. */
SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
return SwigPyObject_repr((SwigPyObject*)v);
}
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 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 *type = NULL, *value = NULL, *traceback = NULL;
PyErr_Fetch(&type, &value, &traceback);
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(type, value, traceback);
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;
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*
SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *) v;
if (sobj->next) {
Py_INCREF(sobj->next);
return sobj->next;
} else {
return SWIG_Py_Void();
}
}
SWIGINTERN PyObject*
SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
sobj->own = 0;
return SWIG_Py_Void();
}
SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
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 (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
return NULL;
} else {
SwigPyObject *sobj = (SwigPyObject *)v;
PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
if (PyObject_IsTrue(val)) {
SwigPyObject_acquire(v,args);
} else {
SwigPyObject_disown(v,args);
}
}
return obj;
}
}
static PyMethodDef
swigobject_methods[] = {
{"disown", SwigPyObject_disown, METH_NOARGS, "releases ownership of the pointer"},
{"acquire", SwigPyObject_acquire, METH_NOARGS, "acquires ownership of the pointer"},
{"own", SwigPyObject_own, METH_VARARGS, "returns/sets ownership of the pointer"},
{"append", SwigPyObject_append, METH_O, "appends another 'this' object"},
{"next", SwigPyObject_next, METH_NOARGS, "returns the next 'this' object"},
{"__repr__",SwigPyObject_repr2, METH_NOARGS, "returns object representation"},
{0, 0, 0, 0}
};
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 */
#else
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
#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
"SwigPyObject", /* tp_name */
sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)SwigPyObject_dealloc, /* tp_dealloc */
0, /* tp_print */
(getattrfunc)0, /* tp_getattr */
(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 */
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 */
0, /* tp_del */
0, /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
0, /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
0, /* tp_print */
#endif
#ifdef COUNT_ALLOCS
0, /* tp_allocs */
0, /* tp_frees */
0, /* tp_maxalloc */
0, /* tp_prev */
0 /* tp_next */
#endif
};
swigpyobject_type = tmp;
type_init = 1;
if (PyType_Ready(&swigpyobject_type) < 0)
return NULL;
}
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 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("<Swig Packed at %s%s>", result, v->ty->name);
} else {
return SWIG_Python_str_FromFormat("<Swig Packed %s>", 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((const char *)v->pack, (const 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
"SwigPyPacked", /* tp_name */
sizeof(SwigPyPacked), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)SwigPyPacked_dealloc, /* tp_dealloc */
0, /* 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 */
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 */
0, /* tp_del */
0, /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
0, /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
0, /* tp_print */
#endif
#ifdef COUNT_ALLOCS
0, /* tp_allocs */
0, /* tp_frees */
0, /* tp_maxalloc */
0, /* tp_prev */
0 /* tp_next */
#endif
};
swigpypacked_type = tmp;
type_init = 1;
if (PyType_Ready(&swigpypacked_type) < 0)
return NULL;
}
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
* ----------------------------------------------------------------------------- */
static PyObject *Swig_This_global = NULL;
SWIGRUNTIME PyObject *
SWIG_This(void)
{
if (Swig_This_global == NULL)
Swig_This_global = SWIG_Python_str_FromChar("this");
return Swig_This_global;
}
/* #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)
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 (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : 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;
swig_cast_info *tc;
/* 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;
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;
}
return SWIG_OK;
}
}
/* Convert a packed pointer 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)
{
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
if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
Py_DECREF(inst);
inst = 0;
}
#endif
}
} else {
#if PY_VERSION_HEX >= 0x03000000
PyObject *empty_args = PyTuple_New(0);
if (empty_args) {
PyObject *empty_kwargs = PyDict_New();
if (empty_kwargs) {
inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
Py_DECREF(empty_kwargs);
if (inst) {
if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
Py_DECREF(inst);
inst = 0;
} else {
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
}
}
}
Py_DECREF(empty_args);
}
#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;
}
SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
{
#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;
}
return PyDict_SetItem(dict, SWIG_This(), swig_this);
}
#endif
return PyObject_SetAttr(inst, SWIG_This(), swig_this);
}
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 {
if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
return NULL;
}
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
type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
if (PyErr_Occurred()) {
PyErr_Clear();
type_pointer = (void *)0;
}
#endif
}
return (swig_module_info *) type_pointer;
}
SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject *obj)
{
swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
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_global = 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("swig_runtime_data" SWIG_RUNTIME_VERSION);
#else
static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
#endif
PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
if (pointer && module) {
PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
} else {
Py_XDECREF(pointer);
}
}
/* 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) {
descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
} else {
swig_module_info *swig_module = SWIG_GetModule(0);
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
if (descriptor) {
obj = PyCapsule_New((void*) descriptor, NULL, NULL);
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) {
PyObject *old_str = PyObject_Str(value);
const char *tmp = SWIG_Python_str_AsChar(old_str);
const char *errmesg = tmp ? tmp : "Invalid error message";
Py_XINCREF(type);
PyErr_Clear();
if (infront) {
PyErr_Format(type, "%s %s", mesg, errmesg);
} else {
PyErr_Format(type, "%s %s", errmesg, 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);
if (!encoded_name)
return -1;
}
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
#ifdef __cplusplus
extern "C" {
#endif
/* Method creation and docstring support functions */
SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
#ifdef __cplusplus
}
#endif
#define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_BackfillingBuffer swig_types[0]
#define SWIGTYPE_p_BufferPtr swig_types[1]
#define SWIGTYPE_p_Gempa__CAPS__AnyDataRecord swig_types[2]
#define SWIGTYPE_p_Gempa__CAPS__DataRecord swig_types[3]
#define SWIGTYPE_p_Gempa__CAPS__DataRecord__Header swig_types[4]
#define SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus swig_types[5]
#define SWIGTYPE_p_Gempa__CAPS__Encoder swig_types[6]
#define SWIGTYPE_p_Gempa__CAPS__EncoderFactory swig_types[7]
#define SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord swig_types[8]
#define SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory swig_types[9]
#define SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord swig_types[10]
#define SWIGTYPE_p_Gempa__CAPS__MSEEDEncoderFactory swig_types[11]
#define SWIGTYPE_p_Gempa__CAPS__MetaPacket swig_types[12]
#define SWIGTYPE_p_Gempa__CAPS__Packet swig_types[13]
#define SWIGTYPE_p_Gempa__CAPS__PacketDataHeader swig_types[14]
#define SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2 swig_types[15]
#define SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1 swig_types[16]
#define SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2 swig_types[17]
#define SWIGTYPE_p_Gempa__CAPS__Plugin swig_types[18]
#define SWIGTYPE_p_Gempa__CAPS__Plugin__Stats swig_types[19]
#define SWIGTYPE_p_Gempa__CAPS__Quality swig_types[20]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk swig_types[21]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader swig_types[22]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator swig_types[23]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk swig_types[24]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__SID swig_types[25]
#define SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk swig_types[26]
#define SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord swig_types[27]
#define SWIGTYPE_p_Gempa__CAPS__RawDataRecord swig_types[28]
#define SWIGTYPE_p_Gempa__CAPS__RawPacket swig_types[29]
#define SWIGTYPE_p_Gempa__CAPS__RawResponseHeader swig_types[30]
#define SWIGTYPE_p_Gempa__CAPS__ResponseHeader swig_types[31]
#define SWIGTYPE_p_Gempa__CAPS__SPClock swig_types[32]
#define SWIGTYPE_p_Gempa__CAPS__SSLSocket swig_types[33]
#define SWIGTYPE_p_Gempa__CAPS__Socket swig_types[34]
#define SWIGTYPE_p_Gempa__CAPS__Socket__Device__Status swig_types[35]
#define SWIGTYPE_p_Gempa__CAPS__Steim1EncoderFactory swig_types[36]
#define SWIGTYPE_p_Gempa__CAPS__Steim2EncoderFactory swig_types[37]
#define SWIGTYPE_p_Gempa__CAPS__SteimEncoderFactory swig_types[38]
#define SWIGTYPE_p_Gempa__CAPS__Time swig_types[39]
#define SWIGTYPE_p_Gempa__CAPS__TimeSpan swig_types[40]
#define SWIGTYPE_p_Gempa__CAPS__TimeStamp swig_types[41]
#define SWIGTYPE_p_Gempa__CAPS__UOM swig_types[42]
#define SWIGTYPE_p_Gempa__CAPS__arraybuf swig_types[43]
#define SWIGTYPE_p_PacketAckFunc swig_types[44]
#define SWIGTYPE_p_PacketBuffer swig_types[45]
#define SWIGTYPE_p_SSL_CTX swig_types[46]
#define SWIGTYPE_p_StreamStates swig_types[47]
#define SWIGTYPE_p_X509 swig_types[48]
#define SWIGTYPE_p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t swig_types[49]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t swig_types[50]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t swig_types[51]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Packet_t swig_types[52]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Plugin_t swig_types[53]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t swig_types[54]
#define SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Socket_t swig_types[55]
#define SWIGTYPE_p_char swig_types[56]
#define SWIGTYPE_p_charArray swig_types[57]
#define SWIGTYPE_p_count_t swig_types[58]
#define SWIGTYPE_p_f_p_q_const__char_v_______void swig_types[59]
#define SWIGTYPE_p_int swig_types[60]
#define SWIGTYPE_p_long_long swig_types[61]
#define SWIGTYPE_p_off_type swig_types[62]
#define SWIGTYPE_p_p_f_p_q_const__char_v_______void swig_types[63]
#define SWIGTYPE_p_pos_type swig_types[64]
#define SWIGTYPE_p_short swig_types[65]
#define SWIGTYPE_p_signed_char swig_types[66]
#define SWIGTYPE_p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t swig_types[67]
#define SWIGTYPE_p_std__ios_base__openmode swig_types[68]
#define SWIGTYPE_p_std__ios_base__seekdir swig_types[69]
#define SWIGTYPE_p_std__istream swig_types[70]
#define SWIGTYPE_p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t swig_types[71]
#define SWIGTYPE_p_std__ostream swig_types[72]
#define SWIGTYPE_p_std__streambuf swig_types[73]
#define SWIGTYPE_p_std__streambuf__off_type swig_types[74]
#define SWIGTYPE_p_std__streambuf__pos_type swig_types[75]
#define SWIGTYPE_p_std__streampos swig_types[76]
#define SWIGTYPE_p_std__streamsize swig_types[77]
#define SWIGTYPE_p_std__string swig_types[78]
#define SWIGTYPE_p_std__vectorT_char_t swig_types[79]
#define SWIGTYPE_p_timeval swig_types[80]
#define SWIGTYPE_p_unsigned_char swig_types[81]
#define SWIGTYPE_p_unsigned_int swig_types[82]
#define SWIGTYPE_p_unsigned_long_long swig_types[83]
#define SWIGTYPE_p_unsigned_short swig_types[84]
static swig_type_info *swig_types[86];
static swig_module_info swig_module = {swig_types, 85, 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) -------- */
#ifdef SWIG_TypeQuery
# undef SWIG_TypeQuery
#endif
#define SWIG_TypeQuery SWIG_Python_TypeQuery
/*-----------------------------------------------
@(target):= _CAPS.so
------------------------------------------------*/
#if PY_VERSION_HEX >= 0x03000000
# define SWIG_init PyInit__CAPS
#else
# define SWIG_init init_CAPS
#endif
#define SWIG_name "_CAPS"
#define SWIGVERSION 0x040002
#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 <stdexcept>
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 <stdint.h> // Use the C99 official header
#define SWIG_FILE_WITH_INIT
#include <gempa/caps/utils.h>
#include <gempa/caps/anypacket.h>
#include <gempa/caps/datetime.h>
#include <gempa/caps/log.h>
#include <gempa/caps/mseedpacket.h>
#include <gempa/caps/packet.h>
#include <gempa/caps/plugin.h>
typedef Gempa::CAPS::Plugin::Buffer Buffer;
#include <gempa/caps/rawpacket.h>
#include <gempa/caps/riff.h>
#include <gempa/caps/rtcm2packet.h>
#include <gempa/caps/socket.h>
#include <gempa/caps/mseed/spclock.h>
#include <numpy/ndarrayobject.h>
#include <string>
#ifndef SWIG_FILE_WITH_INIT
#define NO_IMPORT_ARRAY
#endif
#include "stdio.h"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <complex>
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 <float.h>
#include <math.h>
SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double *d, double min, double max) {
double x = *d;
if ((min <= x && x <= max)) {
double fx = floor(x);
double cx = ceil(x);
double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
if ((errno == EDOM) || (errno == ERANGE)) {
errno = 0;
} else {
double summ, reps, diff;
if (rd < x) {
diff = x - rd;
} else if (rd > x) {
diff = rd - x;
} else {
return 1;
}
summ = rd + x;
reps = diff/summ;
if (reps < 8*DBL_EPSILON) {
*d = rd;
return 1;
}
}
}
return 0;
}
SWIGINTERN int
SWIG_AsVal_long (PyObject *obj, long* val)
{
#if 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;
}
SWIGINTERNINLINE PyObject*
SWIG_From_bool (bool value)
{
return PyBool_FromLong(value ? 1 : 0);
}
#define SWIG_From_long PyInt_FromLong
#define SWIG_From_double PyFloat_FromDouble
#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
# define LLONG_MAX __LONG_LONG_MAX__
# define LLONG_MIN (-LLONG_MAX - 1LL)
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif
SWIGINTERN int
SWIG_AsVal_int (PyObject * obj, int *val)
{
long v;
int res = SWIG_AsVal_long (obj, &v);
if (SWIG_IsOK(res)) {
if ((v < INT_MIN || v > INT_MAX)) {
return SWIG_OverflowError;
} else {
if (val) *val = static_cast< int >(v);
}
}
return res;
}
SWIGINTERN 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;
int ret = SWIG_OK;
#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 (!obj)
return SWIG_TypeError;
if (alloc)
*alloc = SWIG_NEWOBJ;
#endif
if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
return SWIG_TypeError;
#else
if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
return SWIG_TypeError;
#endif
if (cptr) {
if (alloc) {
if (*alloc == SWIG_NEWOBJ) {
*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);
if (!*cptr)
ret = SWIG_TypeError;
#endif
}
}
if (psize) *psize = len + 1;
#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
Py_XDECREF(obj);
#endif
return ret;
} 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 (!obj)
return SWIG_TypeError;
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;
}
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
return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
#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());
}
SWIGINTERNINLINE PyObject*
SWIG_From_int (int value)
{
return PyInt_FromLong((long) value);
}
SWIGINTERN int
SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
{
char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
if (SWIG_IsOK(res)) {
/* special case of single char conversion when we don't need space for NUL */
if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
if (csize <= size) {
if (val) {
if (csize) memcpy(val, cptr, csize*sizeof(char));
if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
}
if (alloc == SWIG_NEWOBJ) {
delete[] cptr;
res = SWIG_DelNewMask(res);
}
return res;
}
if (alloc == SWIG_NEWOBJ) delete[] cptr;
}
return SWIG_TypeError;
}
SWIGINTERN size_t
SWIG_strnlen(const char* s, size_t maxlen)
{
const char *p;
for (p = s; maxlen-- && *p; p++)
;
return p - s;
}
SWIGINTERN int
SWIG_AsVal_short (PyObject * obj, short *val)
{
long v;
int res = SWIG_AsVal_long (obj, &v);
if (SWIG_IsOK(res)) {
if ((v < SHRT_MIN || v > SHRT_MAX)) {
return SWIG_OverflowError;
} else {
if (val) *val = static_cast< short >(v);
}
}
return res;
}
SWIGINTERNINLINE PyObject *
SWIG_From_short (short value)
{
return SWIG_From_long (value);
}
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;
}
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;
}
SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long (unsigned long value)
{
return (value > LONG_MAX) ?
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
}
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_short (unsigned short value)
{
return SWIG_From_unsigned_SS_long (value);
}
SWIGINTERN int
SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
{
unsigned long v;
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
if (SWIG_IsOK(res)) {
if ((v > UCHAR_MAX)) {
return SWIG_OverflowError;
} else {
if (val) *val = static_cast< unsigned char >(v);
}
}
return res;
}
SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_char (unsigned char value)
{
return SWIG_From_unsigned_SS_long (value);
}
SWIGINTERN int
SWIG_AsVal_char (PyObject * obj, char *val)
{
int res = SWIG_AsCharArray(obj, val, 1);
if (!SWIG_IsOK(res)) {
long v;
res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
if (SWIG_IsOK(res)) {
if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
if (val) *val = static_cast< char >(v);
} else {
res = SWIG_OverflowError;
}
}
}
return res;
}
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
# define SWIG_LONG_LONG_AVAILABLE
#endif
#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 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;
}
SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_int (unsigned int value)
{
return PyInt_FromSize_t((size_t) value);
}
SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr(const char *cptr)
{
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
}
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;
}
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;
}
#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
#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
#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;
}
SWIGINTERN Gempa::CAPS::Plugin::Status Gempa_CAPS_Plugin_push__SWIG_6(Gempa::CAPS::Plugin *self,std::string const &net,std::string const &sta,std::string const &loc,std::string const &cha,Gempa::CAPS::Time const &stime,int16_t numerator,int16_t denominator,std::string const &uom,PyObject *obj,int type){
PyArrayObject *arr = NULL;
Gempa::CAPS::DataType dataType = (Gempa::CAPS::DataType)type;
Gempa::CAPS::Plugin::Status status = Gempa::CAPS::Plugin::PacketLoss;
switch(type) {
case Gempa::CAPS::DT_INT8:
arr = (PyArrayObject*) PyArray_ContiguousFromObject(obj, PyArray_CHAR, 1, 1);
if ( arr == NULL )
break;
status = self->push(net, sta, loc, cha, stime, numerator, denominator,
uom, (int8_t*)(arr->data), arr->dimensions[0], dataType);
break;
case Gempa::CAPS::DT_INT16:
arr = (PyArrayObject*) PyArray_ContiguousFromObject(obj, PyArray_INT16, 1, 1);
if ( arr == NULL )
break;
status = self->push(net, sta, loc, cha, stime, numerator, denominator,
uom, (int16_t*)(arr->data), arr->dimensions[0], dataType);
break;
case Gempa::CAPS::DT_INT32:
arr = (PyArrayObject*) PyArray_ContiguousFromObject(obj, PyArray_INT32, 1, 1);
if ( arr == NULL )
break;
status = self->push(net, sta, loc, cha, stime, numerator, denominator,
uom, (int32_t*)(arr->data), arr->dimensions[0], dataType);
break;
case Gempa::CAPS::DT_FLOAT:
arr = (PyArrayObject*) PyArray_ContiguousFromObject(obj, PyArray_FLOAT32, 1, 1);
if ( arr == NULL )
break;
status = self->push(net, sta, loc, cha, stime, numerator, denominator,
uom, (float*)(arr->data), arr->dimensions[0], dataType);
break;
case Gempa::CAPS::DT_DOUBLE:
arr = (PyArrayObject*) PyArray_ContiguousFromObject(obj, PyArray_FLOAT64, 1, 1);
if ( arr == NULL )
break;
status = self->push(net, sta, loc, cha, stime, numerator, denominator,
uom, (double*)(arr->data), arr->dimensions[0], dataType);
break;
default:
break;
}
Py_XDECREF(arr);
return status;
}
SWIGINTERN Gempa::CAPS::Plugin::Status Gempa_CAPS_Plugin_push__SWIG_7(Gempa::CAPS::Plugin *self,std::string const &net,std::string const &sta,std::string const &loc,std::string const &cha,Gempa::CAPS::Time const &stime,uint16_t numerator,uint16_t denominator,std::string const &format,PyObject *obj){
char *data;
Py_ssize_t len;
if ( PyBytes_AsStringAndSize(obj, &data, &len) == -1 )
return Gempa::CAPS::Plugin::PacketLoss;
return self->push(net, sta, loc, cha, stime, numerator,
denominator, format, data, len);
}
typedef char charArray;
SWIGINTERN charArray *new_charArray(size_t nelements){
return (new char[nelements]());
}
SWIGINTERN void delete_charArray(charArray *self){
delete[] self;
}
SWIGINTERN char charArray___getitem__(charArray *self,size_t index){
return self[index];
}
SWIGINTERNINLINE PyObject *
SWIG_From_char (char c)
{
return SWIG_FromCharPtrAndSize(&c,1);
}
SWIGINTERN void charArray___setitem__(charArray *self,size_t index,char value){
self[index] = value;
}
SWIGINTERN char *charArray_cast(charArray *self){
return self;
}
SWIGINTERN charArray *charArray_frompointer(char *t){
return static_cast< charArray * >(t);
}
#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
timeval *arg1 = (timeval *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_timeval, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeSpan" "', argument " "1"" of type '" "timeval *""'");
}
arg1 = reinterpret_cast< timeval * >(argp1);
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
timeval *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_timeval, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeSpan" "', argument " "1"" of type '" "timeval const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeSpan" "', argument " "1"" of type '" "timeval const &""'");
}
arg1 = reinterpret_cast< timeval * >(argp1);
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan((timeval const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
double arg1 ;
double val1 ;
int ecode1 = 0 ;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimeSpan" "', argument " "1"" of type '" "double""'");
}
arg1 = static_cast< double >(val1);
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
long arg1 ;
long arg2 ;
long val1 ;
int ecode1 = 0 ;
long val2 ;
int ecode2 = 0 ;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
ecode1 = SWIG_AsVal_long(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimeSpan" "', argument " "1"" of type '" "long""'");
}
arg1 = static_cast< long >(val1);
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimeSpan" "', argument " "2"" of type '" "long""'");
}
arg2 = static_cast< long >(val2);
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan(arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::TimeSpan *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeSpan" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeSpan" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = (Gempa::CAPS::TimeSpan *)new Gempa::CAPS::TimeSpan((Gempa::CAPS::TimeSpan const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_TimeSpan", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_TimeSpan__SWIG_0(self, argc, argv);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_timeval, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_TimeSpan__SWIG_1(self, argc, argv);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_timeval, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_TimeSpan__SWIG_2(self, argc, argv);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_TimeSpan__SWIG_5(self, argc, argv);
}
}
if (argc == 1) {
int _v;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_TimeSpan__SWIG_3(self, argc, argv);
}
}
if (argc == 2) {
int _v;
{
int res = SWIG_AsVal_long(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_long(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_TimeSpan__SWIG_4(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_TimeSpan'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::TimeSpan::TimeSpan()\n"
" Gempa::CAPS::TimeSpan::TimeSpan(timeval *)\n"
" Gempa::CAPS::TimeSpan::TimeSpan(timeval const &)\n"
" Gempa::CAPS::TimeSpan::TimeSpan(double)\n"
" Gempa::CAPS::TimeSpan::TimeSpan(long,long)\n"
" Gempa::CAPS::TimeSpan::TimeSpan(Gempa::CAPS::TimeSpan const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_TimeSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___eq__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___eq__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___eq__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___eq__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator ==((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___ne__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ne__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ne__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___ne__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator !=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___lt__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___lt__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___lt__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___lt__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator <((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___le__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___le__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___le__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___le__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator <=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___gt__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___gt__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___gt__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___gt__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator >((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___ge__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ge__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ge__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___ge__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (bool)((Gempa::CAPS::TimeSpan const *)arg1)->operator >=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___add__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___add__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___add__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___add__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = ((Gempa::CAPS::TimeSpan const *)arg1)->operator +((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::TimeSpan(static_cast< const Gempa::CAPS::TimeSpan& >(result))), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan result;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___sub__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___sub__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___sub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___sub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = ((Gempa::CAPS::TimeSpan const *)arg1)->operator -((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::TimeSpan(static_cast< const Gempa::CAPS::TimeSpan& >(result))), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_TimeSpan___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___iadd__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___iadd__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___iadd__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___iadd__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (Gempa::CAPS::TimeSpan *) &(arg1)->operator +=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan___isub__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___isub__" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___isub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___isub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (Gempa::CAPS::TimeSpan *) &(arg1)->operator -=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::TimeSpan result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_abs" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = ((Gempa::CAPS::TimeSpan const *)arg1)->abs();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::TimeSpan(static_cast< const Gempa::CAPS::TimeSpan& >(result))), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_seconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
long result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_seconds" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = (long)((Gempa::CAPS::TimeSpan const *)arg1)->seconds();
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_microseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
long result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_microseconds" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = (long)((Gempa::CAPS::TimeSpan const *)arg1)->microseconds();
resultobj = SWIG_From_long(static_cast< long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
double result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_length" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = (double)((Gempa::CAPS::TimeSpan const *)arg1)->length();
resultobj = SWIG_From_double(static_cast< double >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
long arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
long val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan_set" "', argument " "2"" of type '" "long""'");
}
arg2 = static_cast< long >(val2);
result = (Gempa::CAPS::TimeSpan *) &(arg1)->set(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_setUSecs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
long arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
long val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "TimeSpan_setUSecs", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_setUSecs" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan_setUSecs" "', argument " "2"" of type '" "long""'");
}
arg2 = static_cast< long >(val2);
result = (Gempa::CAPS::TimeSpan *) &(arg1)->setUSecs(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_elapsedTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_elapsedTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_elapsedTime" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TimeSpan_elapsedTime" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TimeSpan_elapsedTime" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TimeSpan_elapsedTime" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
((Gempa::CAPS::TimeSpan const *)arg1)->elapsedTime(arg2,arg3,arg4,arg5);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_elapsedTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_elapsedTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_elapsedTime" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TimeSpan_elapsedTime" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TimeSpan_elapsedTime" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
((Gempa::CAPS::TimeSpan const *)arg1)->elapsedTime(arg2,arg3,arg4);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_elapsedTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_elapsedTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_elapsedTime" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TimeSpan_elapsedTime" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
((Gempa::CAPS::TimeSpan const *)arg1)->elapsedTime(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_elapsedTime__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
int *arg2 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_elapsedTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_elapsedTime" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
((Gempa::CAPS::TimeSpan const *)arg1)->elapsedTime(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeSpan_elapsedTime(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[6] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "TimeSpan_elapsedTime", 0, 5, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_TimeSpan_elapsedTime__SWIG_3(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_TimeSpan_elapsedTime__SWIG_2(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_TimeSpan_elapsedTime__SWIG_1(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_TimeSpan_elapsedTime__SWIG_0(self, argc, argv);
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TimeSpan_elapsedTime'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::TimeSpan::elapsedTime(int *,int *,int *,int *) const\n"
" Gempa::CAPS::TimeSpan::elapsedTime(int *,int *,int *) const\n"
" Gempa::CAPS::TimeSpan::elapsedTime(int *,int *) const\n"
" Gempa::CAPS::TimeSpan::elapsedTime(int *) const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_delete_TimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = (Gempa::CAPS::TimeSpan *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeSpan" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *TimeSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *TimeSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN int Swig_var_Time_Null_set(PyObject *) {
SWIG_Error(SWIG_AttributeError,"Variable Time_Null is read-only.");
return 1;
}
SWIGINTERN PyObject *Swig_var_Time_Null_get(void) {
PyObject *pyobj = 0;
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&Gempa::CAPS::Time::Null), SWIGTYPE_p_Gempa__CAPS__Time, 0 );
return pyobj;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
long arg1 ;
long arg2 ;
long val1 ;
int ecode1 = 0 ;
long val2 ;
int ecode2 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
ecode1 = SWIG_AsVal_long(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "long""'");
}
arg1 = static_cast< long >(val1);
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "long""'");
}
arg2 = static_cast< long >(val2);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeSpan *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Time" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Time" "', argument " "1"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp1);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time((Gempa::CAPS::TimeSpan const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
timeval *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_timeval, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Time" "', argument " "1"" of type '" "timeval const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Time" "', argument " "1"" of type '" "timeval const &""'");
}
arg1 = reinterpret_cast< timeval * >(argp1);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time((timeval const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
timeval *arg1 = (timeval *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_timeval, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Time" "', argument " "1"" of type '" "timeval *""'");
}
arg1 = reinterpret_cast< timeval * >(argp1);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
double arg1 ;
double val1 ;
int ecode1 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "double""'");
}
arg1 = static_cast< double >(val1);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_6(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int arg6 ;
int arg7 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Time" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Time" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Time" "', argument " "5"" of type '" "int""'");
}
arg5 = static_cast< int >(val5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Time" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Time" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_7(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int arg6 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Time" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Time" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Time" "', argument " "5"" of type '" "int""'");
}
arg5 = static_cast< int >(val5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Time" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2,arg3,arg4,arg5,arg6);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_8(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Time" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Time" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Time" "', argument " "5"" of type '" "int""'");
}
arg5 = static_cast< int >(val5);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2,arg3,arg4,arg5);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_9(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Time" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Time" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2,arg3,arg4);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_10(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Time" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Time" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Time" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time(arg1,arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time__SWIG_11(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::Time *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Time" "', argument " "1"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Time" "', argument " "1"" of type '" "Gempa::CAPS::Time const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = (Gempa::CAPS::Time *)new Gempa::CAPS::Time((Gempa::CAPS::Time const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Time(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[8] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_Time", 0, 7, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_Time__SWIG_0(self, argc, argv);
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Time__SWIG_11(self, argc, argv);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_timeval, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Time__SWIG_3(self, argc, argv);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_timeval, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Time__SWIG_4(self, argc, argv);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Time__SWIG_2(self, argc, argv);
}
}
if (argc == 1) {
int _v;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_5(self, argc, argv);
}
}
if (argc == 2) {
int _v;
{
int res = SWIG_AsVal_long(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_long(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_1(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_10(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_9(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_8(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_7(self, argc, argv);
}
}
}
}
}
}
}
if (argc == 7) {
int _v;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Time__SWIG_6(self, argc, argv);
}
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Time'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Time::Time()\n"
" Gempa::CAPS::Time::Time(long,long)\n"
" Gempa::CAPS::Time::Time(Gempa::CAPS::TimeSpan const &)\n"
" Gempa::CAPS::Time::Time(timeval const &)\n"
" Gempa::CAPS::Time::Time(timeval *)\n"
" Gempa::CAPS::Time::Time(double)\n"
" Gempa::CAPS::Time::Time(int,int,int,int,int,int,int)\n"
" Gempa::CAPS::Time::Time(int,int,int,int,int,int)\n"
" Gempa::CAPS::Time::Time(int,int,int,int,int)\n"
" Gempa::CAPS::Time::Time(int,int,int,int)\n"
" Gempa::CAPS::Time::Time(int,int,int)\n"
" Gempa::CAPS::Time::Time(Gempa::CAPS::Time const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Time___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___nonzero__" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = (bool)((Gempa::CAPS::Time const *)arg1)->operator bool();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "Time___add__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___add__" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time___add__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Time___add__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = ((Gempa::CAPS::Time const *)arg1)->operator +((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_Time___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
Gempa::CAPS::Time result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___sub__" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time___sub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Time___sub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = ((Gempa::CAPS::Time const *)arg1)->operator -((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_Time___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
Gempa::CAPS::TimeSpan result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___sub__" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time___sub__" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Time___sub__" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
result = ((Gempa::CAPS::Time const *)arg1)->operator -((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::TimeSpan(static_cast< const Gempa::CAPS::TimeSpan& >(result))), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_Time___sub__(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Time___sub__", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time___sub____SWIG_1(self, argc, argv);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time___sub____SWIG_0(self, argc, argv);
}
}
}
fail:
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_Time___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "Time___iadd__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___iadd__" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time___iadd__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Time___iadd__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (Gempa::CAPS::Time *) &(arg1)->operator +=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "Time___isub__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time___isub__" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time___isub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Time___isub__" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (Gempa::CAPS::Time *) &(arg1)->operator -=((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int arg6 ;
int arg7 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
PyObject *swig_obj[8] ;
Gempa::CAPS::Time *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "Time_set", 8, 8, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_set" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Time_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Time_set" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Time_set" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Time_set" "', argument " "5"" of type '" "int""'");
}
arg5 = static_cast< int >(val5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Time_set" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Time_set" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Time_set" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Time *) &(arg1)->set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
int *arg7 = (int *) 0 ;
int *arg8 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
void *argp7 = 0 ;
int res7 = 0 ;
void *argp8 = 0 ;
int res8 = 0 ;
bool result;
if ((nobjs < 8) || (nobjs > 8)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Time_get" "', argument " "6"" of type '" "int *""'");
}
arg6 = reinterpret_cast< int * >(argp6);
res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res7)) {
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Time_get" "', argument " "7"" of type '" "int *""'");
}
arg7 = reinterpret_cast< int * >(argp7);
res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res8)) {
SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Time_get" "', argument " "8"" of type '" "int *""'");
}
arg8 = reinterpret_cast< int * >(argp8);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
int *arg7 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
void *argp7 = 0 ;
int res7 = 0 ;
bool result;
if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Time_get" "', argument " "6"" of type '" "int *""'");
}
arg6 = reinterpret_cast< int * >(argp6);
res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res7)) {
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Time_get" "', argument " "7"" of type '" "int *""'");
}
arg7 = reinterpret_cast< int * >(argp7);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3,arg4,arg5,arg6,arg7);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
bool result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Time_get" "', argument " "6"" of type '" "int *""'");
}
arg6 = reinterpret_cast< int * >(argp6);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3,arg4,arg5,arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
bool result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3,arg4,arg5);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
bool result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3,arg4);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get__SWIG_6(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[9] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Time_get", 0, 8, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_6(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_5(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_4(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_3(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_2(self, argc, argv);
}
}
}
}
}
}
}
if (argc == 7) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
}
}
if (argc == 8) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Time_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Time::get(int *,int *,int *,int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get(int *,int *,int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get(int *,int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get(int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get(int *,int *,int *) const\n"
" Gempa::CAPS::Time::get(int *,int *) const\n"
" Gempa::CAPS::Time::get(int *) const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
int *arg7 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
void *argp7 = 0 ;
int res7 = 0 ;
bool result;
if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get2" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get2" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get2" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Time_get2" "', argument " "6"" of type '" "int *""'");
}
arg6 = reinterpret_cast< int * >(argp6);
res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res7)) {
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Time_get2" "', argument " "7"" of type '" "int *""'");
}
arg7 = reinterpret_cast< int * >(argp7);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2,arg3,arg4,arg5,arg6,arg7);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
int *arg6 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
bool result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get2" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get2" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get2" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Time_get2" "', argument " "6"" of type '" "int *""'");
}
arg6 = reinterpret_cast< int * >(argp6);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2,arg3,arg4,arg5,arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
int *arg5 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
bool result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get2" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get2" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Time_get2" "', argument " "5"" of type '" "int *""'");
}
arg5 = reinterpret_cast< int * >(argp5);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2,arg3,arg4,arg5);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
int *arg4 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
bool result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get2" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Time_get2" "', argument " "4"" of type '" "int *""'");
}
arg4 = reinterpret_cast< int * >(argp4);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2,arg3,arg4);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
int *arg3 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_get2" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
int *arg2 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_get2" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_get2" "', argument " "2"" of type '" "int *""'");
}
arg2 = reinterpret_cast< int * >(argp2);
result = (bool)((Gempa::CAPS::Time const *)arg1)->get2(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_get2(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[8] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Time_get2", 0, 7, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_5(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_4(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_3(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_2(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_1(self, argc, argv);
}
}
}
}
}
}
}
if (argc == 7) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Time, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Time_get2__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Time_get2'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Time::get2(int *,int *,int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get2(int *,int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get2(int *,int *,int *,int *) const\n"
" Gempa::CAPS::Time::get2(int *,int *,int *) const\n"
" Gempa::CAPS::Time::get2(int *,int *) const\n"
" Gempa::CAPS::Time::get2(int *) const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Time_LocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "Time_LocalTime", 0, 0, 0)) SWIG_fail;
result = Gempa::CAPS::Time::LocalTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_GMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "Time_GMT", 0, 0, 0)) SWIG_fail;
result = Gempa::CAPS::Time::GMT();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_FromYearDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "Time_FromYearDay", 2, 2, swig_obj)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Time_FromYearDay" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Time_FromYearDay" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = Gempa::CAPS::Time::FromYearDay(arg1,arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_localtime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_localtime" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = (Gempa::CAPS::Time *) &(arg1)->localtime();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_gmt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_gmt" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = (Gempa::CAPS::Time *) &(arg1)->gmt();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_toLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_toLocalTime" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = ((Gempa::CAPS::Time const *)arg1)->toLocalTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_toGMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_toGMT" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = ((Gempa::CAPS::Time const *)arg1)->toGMT();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_valid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_valid" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = (bool)((Gempa::CAPS::Time const *)arg1)->valid();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
std::string result;
if (!SWIG_Python_UnpackTuple(args, "Time_toString", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_toString" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_toString" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = ((Gempa::CAPS::Time const *)arg1)->toString((char const *)arg2);
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_iso(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_iso" "', argument " "1"" of type '" "Gempa::CAPS::Time const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
result = ((Gempa::CAPS::Time const *)arg1)->iso();
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Time_fromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 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 *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "Time_fromString", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_fromString" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_fromString" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Time_fromString" "', argument " "3"" of type '" "char const *""'");
}
arg3 = reinterpret_cast< char * >(buf3);
result = (bool)(arg1)->fromString((char const *)arg2,(char const *)arg3);
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_Time_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "Time_FromString", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Time_FromString" "', argument " "1"" of type '" "char const *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Time_FromString" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = Gempa::CAPS::Time::FromString((char const *)arg1,(char const *)arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Time *arg1 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Time" "', argument " "1"" of type '" "Gempa::CAPS::Time *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Time * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Time_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Time, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Time_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_UOM_str_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *arg1 = (Gempa::CAPS::UOM *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
int res2 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "UOM_str_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UOM_str_set" "', argument " "1"" of type '" "Gempa::CAPS::UOM *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::UOM * >(argp1);
res2 = SWIG_AsCharArray(swig_obj[1], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UOM_str_set" "', argument " "2"" of type '" "char [4]""'");
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->str,arg2,4*sizeof(char));
else memset(arg1->str,0,4*sizeof(char));
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_UOM_str_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *arg1 = (Gempa::CAPS::UOM *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UOM_str_get" "', argument " "1"" of type '" "Gempa::CAPS::UOM *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::UOM * >(argp1);
result = (char *)(char *) ((arg1)->str);
{
size_t size = SWIG_strnlen(result, 4);
resultobj = SWIG_FromCharPtrAndSize(result, size);
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_UOM_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *arg1 = (Gempa::CAPS::UOM *) 0 ;
int32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "UOM_ID_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UOM_ID_set" "', argument " "1"" of type '" "Gempa::CAPS::UOM *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::UOM * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UOM_ID_set" "', argument " "2"" of type '" "int32_t""'");
}
arg2 = static_cast< int32_t >(val2);
if (arg1) (arg1)->ID = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_UOM_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *arg1 = (Gempa::CAPS::UOM *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UOM_ID_get" "', argument " "1"" of type '" "Gempa::CAPS::UOM *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::UOM * >(argp1);
result = (int32_t) ((arg1)->ID);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_UOM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_UOM", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::UOM *)new Gempa::CAPS::UOM();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__UOM, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_UOM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::UOM *arg1 = (Gempa::CAPS::UOM *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__UOM, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UOM" "', argument " "1"" of type '" "Gempa::CAPS::UOM *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::UOM * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *UOM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__UOM, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *UOM_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_Quality_str_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *arg1 = (Gempa::CAPS::Quality *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
int res2 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Quality_str_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quality_str_set" "', argument " "1"" of type '" "Gempa::CAPS::Quality *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Quality * >(argp1);
res2 = SWIG_AsCharArray(swig_obj[1], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Quality_str_set" "', argument " "2"" of type '" "char [4]""'");
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->str,arg2,4*sizeof(char));
else memset(arg1->str,0,4*sizeof(char));
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Quality_str_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *arg1 = (Gempa::CAPS::Quality *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quality_str_get" "', argument " "1"" of type '" "Gempa::CAPS::Quality *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Quality * >(argp1);
result = (char *)(char *) ((arg1)->str);
{
size_t size = SWIG_strnlen(result, 4);
resultobj = SWIG_FromCharPtrAndSize(result, size);
}
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Quality_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *arg1 = (Gempa::CAPS::Quality *) 0 ;
int32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Quality_ID_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quality_ID_set" "', argument " "1"" of type '" "Gempa::CAPS::Quality *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Quality * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Quality_ID_set" "', argument " "2"" of type '" "int32_t""'");
}
arg2 = static_cast< int32_t >(val2);
if (arg1) (arg1)->ID = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Quality_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *arg1 = (Gempa::CAPS::Quality *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quality_ID_get" "', argument " "1"" of type '" "Gempa::CAPS::Quality *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Quality * >(argp1);
result = (int32_t) ((arg1)->ID);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Quality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_Quality", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::Quality *)new Gempa::CAPS::Quality();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Quality, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Quality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Quality *arg1 = (Gempa::CAPS::Quality *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Quality, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Quality" "', argument " "1"" of type '" "Gempa::CAPS::Quality *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Quality * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Quality_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Quality, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Quality_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_TimeStamp_year_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
int16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_year_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_year_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_year_set" "', argument " "2"" of type '" "int16_t""'");
}
arg2 = static_cast< int16_t >(val2);
if (arg1) (arg1)->year = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_year_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_year_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (int16_t) ((arg1)->year);
resultobj = SWIG_From_short(static_cast< short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_yday_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_yday_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_yday_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_yday_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->yday = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_yday_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_yday_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (uint16_t) ((arg1)->yday);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_hour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
uint8_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_hour_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_hour_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_hour_set" "', argument " "2"" of type '" "uint8_t""'");
}
arg2 = static_cast< uint8_t >(val2);
if (arg1) (arg1)->hour = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_hour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_hour_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (uint8_t) ((arg1)->hour);
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_minute_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
uint8_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_minute_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_minute_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_minute_set" "', argument " "2"" of type '" "uint8_t""'");
}
arg2 = static_cast< uint8_t >(val2);
if (arg1) (arg1)->minute = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_minute_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_minute_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (uint8_t) ((arg1)->minute);
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
uint8_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_second_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_second_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_second_set" "', argument " "2"" of type '" "uint8_t""'");
}
arg2 = static_cast< uint8_t >(val2);
if (arg1) (arg1)->second = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_second_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (uint8_t) ((arg1)->second);
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_unused_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
uint8_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_unused_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_unused_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_unused_set" "', argument " "2"" of type '" "uint8_t""'");
}
arg2 = static_cast< uint8_t >(val2);
if (arg1) (arg1)->unused = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_unused_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_unused_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (uint8_t) ((arg1)->unused);
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_usec_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
int32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "TimeStamp_usec_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_usec_set" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeStamp_usec_set" "', argument " "2"" of type '" "int32_t""'");
}
arg2 = static_cast< int32_t >(val2);
if (arg1) (arg1)->usec = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_TimeStamp_usec_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeStamp_usec_get" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = (int32_t) ((arg1)->usec);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_TimeStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_TimeStamp", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::TimeStamp *)new Gempa::CAPS::TimeStamp();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__TimeStamp, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_TimeStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = (Gempa::CAPS::TimeStamp *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__TimeStamp, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeStamp" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *TimeStamp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__TimeStamp, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *TimeStamp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_PacketDataHeader__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::PacketDataHeader *)new Gempa::CAPS::PacketDataHeader();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_PacketDataHeader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
uint16_t arg1 ;
unsigned short val1 ;
int ecode1 = 0 ;
Gempa::CAPS::PacketDataHeader *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
ecode1 = SWIG_AsVal_unsigned_SS_short(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PacketDataHeader" "', argument " "1"" of type '" "uint16_t""'");
}
arg1 = static_cast< uint16_t >(val1);
result = (Gempa::CAPS::PacketDataHeader *)new Gempa::CAPS::PacketDataHeader(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_PacketDataHeader(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[2] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_PacketDataHeader", 0, 1, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_PacketDataHeader__SWIG_0(self, argc, argv);
}
if (argc == 1) {
int _v;
{
int res = SWIG_AsVal_unsigned_SS_short(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_PacketDataHeader__SWIG_1(self, argc, argv);
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_PacketDataHeader'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::PacketDataHeader::PacketDataHeader()\n"
" Gempa::CAPS::PacketDataHeader::PacketDataHeader(uint16_t)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_version_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_version_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketDataHeader_version_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->version = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_version_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
result = (uint16_t) ((arg1)->version);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_packetType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
Gempa::CAPS::PacketType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_packetType_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_packetType_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketDataHeader_packetType_set" "', argument " "2"" of type '" "Gempa::CAPS::PacketType""'");
}
arg2 = static_cast< Gempa::CAPS::PacketType >(val2);
if (arg1) (arg1)->packetType = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_packetType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_packetType_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
result = (Gempa::CAPS::PacketType) ((arg1)->packetType);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_unitOfMeasurement_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
Gempa::CAPS::UOM *arg2 = (Gempa::CAPS::UOM *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_unitOfMeasurement_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_unitOfMeasurement_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeader_unitOfMeasurement_set" "', argument " "2"" of type '" "Gempa::CAPS::UOM *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::UOM * >(argp2);
if (arg1) (arg1)->unitOfMeasurement = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_unitOfMeasurement_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::UOM *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_unitOfMeasurement_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
result = (Gempa::CAPS::UOM *)& ((arg1)->unitOfMeasurement);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__UOM, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_setUOM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_setUOM", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_setUOM" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeader_setUOM" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)(arg1)->setUOM((char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_uom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
char arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char val2 ;
int ecode2 = 0 ;
std::string result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_uom" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketDataHeader_uom" "', argument " "2"" of type '" "char""'");
}
arg2 = static_cast< char >(val2);
result = ((Gempa::CAPS::PacketDataHeader const *)arg1)->uom(arg2);
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_uom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::string result;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_uom" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
result = ((Gempa::CAPS::PacketDataHeader const *)arg1)->uom();
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_uom(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "PacketDataHeader_uom", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_PacketDataHeader_uom__SWIG_1(self, argc, argv);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_char(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_PacketDataHeader_uom__SWIG_0(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'PacketDataHeader_uom'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::PacketDataHeader::uom(char) const\n"
" Gempa::CAPS::PacketDataHeader::uom() const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
Gempa::CAPS::PacketDataHeader *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader___ne__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader___ne__" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeader___ne__" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeader const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeader___ne__" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeader const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp2);
result = (bool)((Gempa::CAPS::PacketDataHeader const *)arg1)->operator !=((Gempa::CAPS::PacketDataHeader const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
result = (int)((Gempa::CAPS::PacketDataHeader const *)arg1)->dataSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_put" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeader_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeader_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::PacketDataHeader const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeader_get", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->get(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PacketDataHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeader *arg1 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketDataHeader" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PacketDataHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *PacketDataHeader_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_PacketDataHeaderV2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_PacketDataHeaderV2", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::PacketDataHeaderV2 *)new Gempa::CAPS::PacketDataHeaderV2();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_samplingFrequencyNumerator_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2_samplingFrequencyNumerator_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_samplingFrequencyNumerator_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketDataHeaderV2_samplingFrequencyNumerator_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->samplingFrequencyNumerator = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_samplingFrequencyNumerator_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_samplingFrequencyNumerator_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
result = (uint16_t) ((arg1)->samplingFrequencyNumerator);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_samplingFrequencyDenominator_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2_samplingFrequencyDenominator_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_samplingFrequencyDenominator_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketDataHeaderV2_samplingFrequencyDenominator_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->samplingFrequencyDenominator = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_samplingFrequencyDenominator_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_samplingFrequencyDenominator_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
result = (uint16_t) ((arg1)->samplingFrequencyDenominator);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_quality_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
Gempa::CAPS::Quality *arg2 = (Gempa::CAPS::Quality *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2_quality_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_quality_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeaderV2_quality_set" "', argument " "2"" of type '" "Gempa::CAPS::Quality *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Quality * >(argp2);
if (arg1) (arg1)->quality = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_quality_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Quality *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_quality_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
result = (Gempa::CAPS::Quality *)& ((arg1)->quality);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Quality, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
Gempa::CAPS::PacketDataHeaderV2 *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2___ne__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2___ne__" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeaderV2___ne__" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeaderV2 const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeaderV2___ne__" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeaderV2 const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp2);
result = (bool)((Gempa::CAPS::PacketDataHeaderV2 const *)arg1)->operator !=((Gempa::CAPS::PacketDataHeaderV2 const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
result = (int)((Gempa::CAPS::PacketDataHeaderV2 const *)arg1)->dataSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_put" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeaderV2_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeaderV2_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::PacketDataHeaderV2 const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketDataHeaderV2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketDataHeaderV2_get", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketDataHeaderV2_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketDataHeaderV2_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketDataHeaderV2_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->get(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PacketDataHeaderV2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketDataHeaderV2 *arg1 = (Gempa::CAPS::PacketDataHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketDataHeaderV2" "', argument " "1"" of type '" "Gempa::CAPS::PacketDataHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketDataHeaderV2 * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PacketDataHeaderV2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__PacketDataHeaderV2, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *PacketDataHeaderV2_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_SIDSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
uint8_t *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV1_SIDSize_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_SIDSize_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketHeaderV1_SIDSize_set" "', argument " "2"" of type '" "uint8_t [4]""'");
}
arg2 = reinterpret_cast< uint8_t * >(argp2);
{
if (arg2) {
size_t ii = 0;
for (; ii < (size_t)4; ++ii) *(uint8_t *)&arg1->SIDSize[ii] = *((uint8_t *)arg2 + ii);
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SIDSize""' of type '""uint8_t [4]""'");
}
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_SIDSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_SIDSize_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
result = (uint8_t *)(uint8_t *) ((arg1)->SIDSize);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV1_size_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_size_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketHeaderV1_size_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->size = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_size_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
result = (uint16_t) ((arg1)->size);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV1_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_put" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketHeaderV1_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketHeaderV1_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV1_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV1_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
result = ((Gempa::CAPS::PacketHeaderV1 const *)arg1)->dataSize();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_PacketHeaderV1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_PacketHeaderV1", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::PacketHeaderV1 *)new Gempa::CAPS::PacketHeaderV1();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PacketHeaderV1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV1 *arg1 = (Gempa::CAPS::PacketHeaderV1 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketHeaderV1" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV1 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV1 * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PacketHeaderV1_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__PacketHeaderV1, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *PacketHeaderV1_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_SIDSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
uint8_t *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV2_SIDSize_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_SIDSize_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketHeaderV2_SIDSize_set" "', argument " "2"" of type '" "uint8_t [4]""'");
}
arg2 = reinterpret_cast< uint8_t * >(argp2);
{
if (arg2) {
size_t ii = 0;
for (; ii < (size_t)4; ++ii) *(uint8_t *)&arg1->SIDSize[ii] = *((uint8_t *)arg2 + ii);
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SIDSize""' of type '""uint8_t [4]""'");
}
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_SIDSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_SIDSize_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
result = (uint8_t *)(uint8_t *) ((arg1)->SIDSize);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
uint32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV2_size_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_size_set" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PacketHeaderV2_size_set" "', argument " "2"" of type '" "uint32_t""'");
}
arg2 = static_cast< uint32_t >(val2);
if (arg1) (arg1)->size = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_size_get" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
result = (uint32_t) ((arg1)->size);
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "PacketHeaderV2_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_put" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PacketHeaderV2_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PacketHeaderV2_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PacketHeaderV2_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PacketHeaderV2_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
result = ((Gempa::CAPS::PacketHeaderV2 const *)arg1)->dataSize();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_PacketHeaderV2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_PacketHeaderV2", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::PacketHeaderV2 *)new Gempa::CAPS::PacketHeaderV2();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PacketHeaderV2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::PacketHeaderV2 *arg1 = (Gempa::CAPS::PacketHeaderV2 *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketHeaderV2" "', argument " "1"" of type '" "Gempa::CAPS::PacketHeaderV2 *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::PacketHeaderV2 * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PacketHeaderV2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__PacketHeaderV2, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *PacketHeaderV2_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_ResponseHeader_id_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ResponseHeader_id_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ResponseHeader_id_set" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ResponseHeader_id_set" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
if (arg1) (arg1)->id = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ResponseHeader_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
uint16_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ResponseHeader_id_get" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
result = (uint16_t) ((arg1)->id);
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ResponseHeader_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
int32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ResponseHeader_size_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ResponseHeader_size_set" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ResponseHeader_size_set" "', argument " "2"" of type '" "int32_t""'");
}
arg2 = static_cast< int32_t >(val2);
if (arg1) (arg1)->size = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ResponseHeader_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ResponseHeader_size_get" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
result = (int32_t) ((arg1)->size);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ResponseHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ResponseHeader_get", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ResponseHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ResponseHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ResponseHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->get(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_ResponseHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_ResponseHeader", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::ResponseHeader *)new Gempa::CAPS::ResponseHeader();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__ResponseHeader, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_ResponseHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::ResponseHeader *arg1 = (Gempa::CAPS::ResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__ResponseHeader, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ResponseHeader" "', argument " "1"" of type '" "Gempa::CAPS::ResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::ResponseHeader * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *ResponseHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__ResponseHeader, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *ResponseHeader_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_delete_DataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataRecord" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (char *)((Gempa::CAPS::DataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_readMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::DataRecord::Header *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
PyObject *swig_obj[6] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "DataRecord_readMetaData", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_readMetaData" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_readMetaData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
result = (bool)(arg1)->readMetaData(*arg2,arg3,*arg4,*arg5,*arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (bool)((Gempa::CAPS::DataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (bool)((Gempa::CAPS::DataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "DataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::DataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_dataSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
size_t result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataRecord_dataSize" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = ((Gempa::CAPS::DataRecord const *)arg1)->dataSize(arg2);
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_dataSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t result;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = ((Gempa::CAPS::DataRecord const *)arg1)->dataSize();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_dataSize(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "DataRecord_dataSize", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_DataRecord_dataSize__SWIG_1(self, argc, argv);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_DataRecord_dataSize__SWIG_0(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DataRecord_dataSize'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::DataRecord::dataSize(bool) const\n"
" Gempa::CAPS::DataRecord::dataSize() const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_DataRecord_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_get__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_get__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (arg1)->get(*arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "DataRecord_get", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_DataRecord_get__SWIG_3(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_DataRecord_get__SWIG_2(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_DataRecord_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_DataRecord_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DataRecord_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::DataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::DataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::DataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::DataRecord::get(std::streambuf &,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_DataRecord_put__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
bool arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataRecord_put" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = (bool)((Gempa::CAPS::DataRecord const *)arg1)->put(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_put__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::DataRecord const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_put(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[4] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "DataRecord_put", 0, 3, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_DataRecord_put__SWIG_1(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_DataRecord_put__SWIG_0(self, argc, argv);
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DataRecord_put'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::DataRecord::put(std::streambuf &,bool) const\n"
" Gempa::CAPS::DataRecord::put(std::streambuf &) const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_DataRecord_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_header" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)((Gempa::CAPS::DataRecord const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_startTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_startTime" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = ((Gempa::CAPS::DataRecord const *)arg1)->startTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_endTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_endTime" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = ((Gempa::CAPS::DataRecord const *)arg1)->endTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::DataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_buffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Buffer *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_buffer" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Buffer *)(arg1)->buffer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_DataRecord_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord *arg1 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Buffer *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataRecord_data" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Buffer *)(arg1)->data();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *DataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__DataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_RawPacket_header_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
Gempa::CAPS::PacketDataHeader *arg2 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawPacket_header_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_header_set" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawPacket_header_set" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp2);
if (arg1) (arg1)->header = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_header_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketDataHeader *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_header_get" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
result = (Gempa::CAPS::PacketDataHeader *)& ((arg1)->header);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_SID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
std::string *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawPacket_SID_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_SID_set" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_std__string, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawPacket_SID_set" "', argument " "2"" of type '" "std::string [4]""'");
}
arg2 = reinterpret_cast< std::string * >(argp2);
{
if (arg2) {
size_t ii = 0;
for (; ii < (size_t)4; ++ii) *(std::string *)&arg1->SID[ii] = *((std::string *)arg2 + ii);
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SID""' of type '""std::string [4]""'");
}
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_SID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_SID_get" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
result = (std::string *)(std::string *) ((arg1)->SID);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__string, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
std::vector< char > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawPacket_data_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_data_set" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
{
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_char_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawPacket_data_set" "', argument " "2"" of type '" "std::vector< char >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawPacket_data_set" "', argument " "2"" of type '" "std::vector< char >""'");
} else {
std::vector< char > * temp = reinterpret_cast< std::vector< char > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
if (arg1) (arg1)->data = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::vector< char > result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_data_get" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
result = ((arg1)->data);
resultobj = SWIG_NewPointerObj((new std::vector< char >(static_cast< const std::vector< char >& >(result))), SWIGTYPE_p_std__vectorT_char_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_record_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
Gempa::CAPS::DataRecord *arg2 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawPacket_record_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_record_set" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawPacket_record_set" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp2);
if (arg1) (arg1)->record = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawPacket_record_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawPacket_record_get" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
result = (Gempa::CAPS::DataRecord *) ((arg1)->record);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_RawPacket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_RawPacket", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RawPacket *)new Gempa::CAPS::RawPacket();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RawPacket, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_RawPacket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawPacket *arg1 = (Gempa::CAPS::RawPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawPacket, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RawPacket" "', argument " "1"" of type '" "Gempa::CAPS::RawPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawPacket * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *RawPacket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RawPacket, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *RawPacket_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_MetaPacket_SID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
std::string *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_SID_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_SID_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_std__string, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_SID_set" "', argument " "2"" of type '" "std::string [4]""'");
}
arg2 = reinterpret_cast< std::string * >(argp2);
{
if (arg2) {
size_t ii = 0;
for (; ii < (size_t)4; ++ii) *(std::string *)&arg1->SID[ii] = *((std::string *)arg2 + ii);
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SID""' of type '""std::string [4]""'");
}
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_SID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_SID_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (std::string *)(std::string *) ((arg1)->SID);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__string, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_packetDataHeader_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::PacketDataHeader *arg2 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_packetDataHeader_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_packetDataHeader_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_packetDataHeader_set" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp2);
if (arg1) (arg1)->packetDataHeader = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_packetDataHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketDataHeader *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_packetDataHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::PacketDataHeader *)& ((arg1)->packetDataHeader);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_record_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::DataRecord *arg2 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_record_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_record_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_record_set" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp2);
if (arg1) (arg1)->record = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_record_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_record_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::DataRecord *) ((arg1)->record);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_recordHeader_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::DataRecord::Header *arg2 = (Gempa::CAPS::DataRecord::Header *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_recordHeader_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_recordHeader_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_recordHeader_set" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord::Header *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp2);
if (arg1) (arg1)->recordHeader = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_recordHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_recordHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)& ((arg1)->recordHeader);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_startTime_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::Time *arg2 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_startTime_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_startTime_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_startTime_set" "', argument " "2"" of type '" "Gempa::CAPS::Time *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
if (arg1) (arg1)->startTime = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_startTime_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_startTime_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::Time *)& ((arg1)->startTime);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_endTime_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::Time *arg2 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_endTime_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_endTime_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_endTime_set" "', argument " "2"" of type '" "Gempa::CAPS::Time *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
if (arg1) (arg1)->endTime = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_endTime_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_endTime_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::Time *)& ((arg1)->endTime);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_timestamp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
Gempa::CAPS::Time *arg2 = (Gempa::CAPS::Time *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "MetaPacket_timestamp_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_timestamp_set" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetaPacket_timestamp_set" "', argument " "2"" of type '" "Gempa::CAPS::Time *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
if (arg1) (arg1)->timestamp = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MetaPacket_timestamp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaPacket_timestamp_get" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
result = (Gempa::CAPS::Time *)& ((arg1)->timestamp);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_MetaPacket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_MetaPacket", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::MetaPacket *)new Gempa::CAPS::MetaPacket();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__MetaPacket, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_MetaPacket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MetaPacket *arg1 = (Gempa::CAPS::MetaPacket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MetaPacket, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaPacket" "', argument " "1"" of type '" "Gempa::CAPS::MetaPacket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MetaPacket * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *MetaPacket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__MetaPacket, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *MetaPacket_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_Packet__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::Packet *)new Gempa::CAPS::Packet();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Packet, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Packet__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecordPtr arg1 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
void *argp1 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
Gempa::CAPS::Packet *result = 0 ;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
{
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Packet" "', argument " "1"" of type '" "Gempa::CAPS::DataRecordPtr""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Packet" "', argument " "1"" of type '" "Gempa::CAPS::DataRecordPtr""'");
} else {
Gempa::CAPS::DataRecordPtr * temp = reinterpret_cast< Gempa::CAPS::DataRecordPtr * >(argp1);
arg1 = *temp;
if (SWIG_IsNewObj(res1)) delete temp;
}
}
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Packet" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Packet" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Packet" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Packet" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Packet" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Packet" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Packet" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Packet" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
result = (Gempa::CAPS::Packet *)new Gempa::CAPS::Packet(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Packet, SWIG_POINTER_NEW | 0 );
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Packet(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[6] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_Packet", 0, 5, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_Packet__SWIG_0(self, argc, argv);
}
if (argc == 5) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, SWIG_POINTER_NO_NULL | 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Packet__SWIG_1(self, argc, argv);
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Packet'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Packet::Packet()\n"
" Gempa::CAPS::Packet::Packet(Gempa::CAPS::DataRecordPtr,std::string const &,std::string const &,std::string const &,std::string const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Packet_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Packet *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_clone" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (Gempa::CAPS::Packet *)(arg1)->clone();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_buffer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
Gempa::CAPS::Packet::BufferPtr arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_buffer_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_buffer_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_buffer_set" "', argument " "2"" of type '" "Gempa::CAPS::Packet::BufferPtr""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_buffer_set" "', argument " "2"" of type '" "Gempa::CAPS::Packet::BufferPtr""'");
} else {
Gempa::CAPS::Packet::BufferPtr * temp = reinterpret_cast< Gempa::CAPS::Packet::BufferPtr * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
if (arg1) (arg1)->buffer = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_buffer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Packet::BufferPtr result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_buffer_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = ((arg1)->buffer);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Packet::BufferPtr(static_cast< const Gempa::CAPS::Packet::BufferPtr& >(result))), SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_record_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
Gempa::CAPS::DataRecordPtr arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_record_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_record_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_record_set" "', argument " "2"" of type '" "Gempa::CAPS::DataRecordPtr""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_record_set" "', argument " "2"" of type '" "Gempa::CAPS::DataRecordPtr""'");
} else {
Gempa::CAPS::DataRecordPtr * temp = reinterpret_cast< Gempa::CAPS::DataRecordPtr * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
if (arg1) (arg1)->record = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_record_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecordPtr result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_record_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = ((arg1)->record);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecordPtr(static_cast< const Gempa::CAPS::DataRecordPtr& >(result))), SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_networkCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_networkCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_networkCode_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_networkCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_networkCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->networkCode = *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_Packet_networkCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_networkCode_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->networkCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_stationCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_stationCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_stationCode_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_stationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_stationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->stationCode = *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_Packet_stationCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_stationCode_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->stationCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_locationCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_locationCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_locationCode_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_locationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_locationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->locationCode = *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_Packet_locationCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_locationCode_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->locationCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_channelCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_channelCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_channelCode_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_channelCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_channelCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->channelCode = *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_Packet_channelCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_channelCode_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->channelCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_streamID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_streamID_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_streamID_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_streamID_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_streamID_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->streamID = *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_Packet_streamID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_streamID_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->streamID);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_dataType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
Gempa::CAPS::DataType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_dataType_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_dataType_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Packet_dataType_set" "', argument " "2"" of type '" "Gempa::CAPS::DataType""'");
}
arg2 = static_cast< Gempa::CAPS::DataType >(val2);
if (arg1) (arg1)->dataType = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_dataType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_dataType_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (Gempa::CAPS::DataType) ((arg1)->dataType);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_dt_us_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
int64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
long long val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_dt_us_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_dt_us_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
ecode2 = SWIG_AsVal_long_SS_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Packet_dt_us_set" "', argument " "2"" of type '" "int64_t""'");
}
arg2 = static_cast< int64_t >(val2);
if (arg1) (arg1)->dt_us = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_dt_us_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int64_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_dt_us_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (int64_t) ((arg1)->dt_us);
resultobj = SWIG_From_long_SS_long(static_cast< long long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_uom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_uom_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_uom_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Packet_uom_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Packet_uom_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->uom = *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_Packet_uom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_uom_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (std::string *) & ((arg1)->uom);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_timingQuality_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Packet_timingQuality_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_timingQuality_set" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Packet_timingQuality_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->timingQuality = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_timingQuality_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_timingQuality_get" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = (int) ((arg1)->timingQuality);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Packet_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_size" "', argument " "1"" of type '" "Gempa::CAPS::Packet const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
result = ((Gempa::CAPS::Packet const *)arg1)->size();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Packet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Packet *arg1 = (Gempa::CAPS::Packet *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Packet, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Packet" "', argument " "1"" of type '" "Gempa::CAPS::Packet *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Packet * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Packet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Packet, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Packet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_AnyDataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_AnyDataRecord", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::AnyDataRecord *)new Gempa::CAPS::AnyDataRecord();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_setType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_setType", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_setType" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_setType" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)(arg1)->setType((char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_type" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (char *)((Gempa::CAPS::AnyDataRecord const *)arg1)->type();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (char *)((Gempa::CAPS::AnyDataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_readMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::DataRecord::Header *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
PyObject *swig_obj[6] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_readMetaData", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_readMetaData" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_readMetaData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AnyDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "AnyDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "AnyDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
result = (bool)(arg1)->readMetaData(*arg2,arg3,*arg4,*arg5,*arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_header" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)((Gempa::CAPS::AnyDataRecord const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_startTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_startTime" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = ((Gempa::CAPS::AnyDataRecord const *)arg1)->startTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_endTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_endTime" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = ((Gempa::CAPS::AnyDataRecord const *)arg1)->endTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::AnyDataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::AnyDataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "AnyDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::AnyDataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
size_t result;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_dataSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AnyDataRecord_dataSize" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = ((Gempa::CAPS::AnyDataRecord const *)arg1)->dataSize(arg2);
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "AnyDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "AnyDataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "AnyDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_get__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_get__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (arg1)->get(*arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "AnyDataRecord_get", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_AnyDataRecord_get__SWIG_3(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_AnyDataRecord_get__SWIG_2(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_AnyDataRecord_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_AnyDataRecord_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'AnyDataRecord_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::AnyDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::AnyDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::AnyDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::AnyDataRecord::get(std::streambuf &,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
bool arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_put", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_put" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = (bool)((Gempa::CAPS::AnyDataRecord const *)arg1)->put(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::AnyDataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_setStartTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_setStartTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_setStartTime" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->setStartTime((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_setEndTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_setEndTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_setEndTime" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_setEndTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AnyDataRecord_setEndTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->setEndTime((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_setSamplingFrequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
uint16_t arg2 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_setSamplingFrequency", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_setSamplingFrequency" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AnyDataRecord_setSamplingFrequency" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_setSamplingFrequency" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
(arg1)->setSamplingFrequency(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::AnyDataRecord::Buffer *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_data" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
result = (Gempa::CAPS::AnyDataRecord::Buffer *)(arg1)->data();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_char_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_AnyDataRecord_setData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
char *arg2 = (char *) 0 ;
size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "AnyDataRecord_setData", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AnyDataRecord_setData" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AnyDataRecord_setData" "', argument " "2"" of type '" "char *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AnyDataRecord_setData" "', argument " "3"" of type '" "size_t""'");
}
arg3 = static_cast< size_t >(val3);
(arg1)->setData(arg2,arg3);
resultobj = SWIG_Py_Void();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_AnyDataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::AnyDataRecord *arg1 = (Gempa::CAPS::AnyDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnyDataRecord" "', argument " "1"" of type '" "Gempa::CAPS::AnyDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::AnyDataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *AnyDataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__AnyDataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *AnyDataRecord_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN int Swig_var_LogHandler_set(PyObject *_val) {
{
Gempa::CAPS::LogOutput *inp = 0;
int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_f_p_q_const__char_v_______void, 0 );
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""Gempa::CAPS::LogHandler""' of type '""Gempa::CAPS::LogOutput [Gempa::CAPS::LL_QUANTITY]""'");
} else if (inp) {
size_t ii = 0;
for (; ii < (size_t)Gempa::CAPS::LL_QUANTITY; ++ii) *(Gempa::CAPS::LogOutput *)&Gempa::CAPS::LogHandler[ii] = *((Gempa::CAPS::LogOutput *)inp + ii);
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Gempa::CAPS::LogHandler""' of type '""Gempa::CAPS::LogOutput [Gempa::CAPS::LL_QUANTITY]""'");
}
}
return 0;
fail:
return 1;
}
SWIGINTERN PyObject *Swig_var_LogHandler_get(void) {
PyObject *pyobj = 0;
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(Gempa::CAPS::LogHandler), SWIGTYPE_p_p_f_p_q_const__char_v_______void, 0 );
return pyobj;
}
SWIGINTERN PyObject *_wrap_SetLogHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::LogLevel arg1 ;
Gempa::CAPS::LogOutput arg2 = (Gempa::CAPS::LogOutput) 0 ;
int val1 ;
int ecode1 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SetLogHandler", 2, 2, swig_obj)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SetLogHandler" "', argument " "1"" of type '" "Gempa::CAPS::LogLevel""'");
}
arg1 = static_cast< Gempa::CAPS::LogLevel >(val1);
{
int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char_v_______void);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SetLogHandler" "', argument " "2"" of type '" "Gempa::CAPS::LogOutput""'");
}
}
Gempa::CAPS::SetLogHandler(arg1,arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SPClock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::SPClock *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_SPClock", 2, 2, swig_obj)) SWIG_fail;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SPClock" "', argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SPClock" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = (Gempa::CAPS::SPClock *)new Gempa::CAPS::SPClock(arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__SPClock, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_syncTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SPClock_syncTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_syncTime" "', argument " "1"" of type '" "Gempa::CAPS::SPClock *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SPClock_syncTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SPClock_syncTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->syncTime((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_tick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_tick" "', argument " "1"" of type '" "Gempa::CAPS::SPClock *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
(arg1)->tick();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_getTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Time result;
if (!SWIG_Python_UnpackTuple(args, "SPClock_getTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_getTime" "', argument " "1"" of type '" "Gempa::CAPS::SPClock const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SPClock_getTime" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = ((Gempa::CAPS::SPClock const *)arg1)->getTime(arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_correction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_correction" "', argument " "1"" of type '" "Gempa::CAPS::SPClock const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
result = (int)((Gempa::CAPS::SPClock const *)arg1)->correction();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_freqn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_freqn_get" "', argument " "1"" of type '" "Gempa::CAPS::SPClock *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
result = (int)(int) ((arg1)->freqn);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SPClock_freqd_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SPClock_freqd_get" "', argument " "1"" of type '" "Gempa::CAPS::SPClock *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
result = (int)(int) ((arg1)->freqd);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_SPClock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SPClock *arg1 = (Gempa::CAPS::SPClock *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SPClock, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SPClock" "', argument " "1"" of type '" "Gempa::CAPS::SPClock *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SPClock * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SPClock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__SPClock, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *SPClock_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_delete_Encoder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Encoder" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_push(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Encoder_push", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_push" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Encoder_push" "', argument " "2"" of type '" "void *""'");
}
(arg1)->push(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_flush" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
(arg1)->flush();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_reset" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
(arg1)->reset();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_type" "', argument " "1"" of type '" "Gempa::CAPS::Encoder const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
result = (int)((Gempa::CAPS::Encoder const *)arg1)->type();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_clk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::SPClock *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_clk" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
result = (Gempa::CAPS::SPClock *) &(arg1)->clk();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__SPClock, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_setStartTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Encoder_setStartTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_setStartTime" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Encoder_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Encoder_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->setStartTime((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_currentTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_currentTime" "', argument " "1"" of type '" "Gempa::CAPS::Encoder const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
result = ((Gempa::CAPS::Encoder const *)arg1)->currentTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_timingQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_timingQuality" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
result = (int)(arg1)->timingQuality();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_setTimingQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Encoder_setTimingQuality", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_setTimingQuality" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Encoder_setTimingQuality" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
(arg1)->setTimingQuality(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Encoder_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Encoder *arg1 = (Gempa::CAPS::Encoder *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketPtr result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Encoder_pop" "', argument " "1"" of type '" "Gempa::CAPS::Encoder *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Encoder * >(argp1);
result = (arg1)->pop();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::PacketPtr(static_cast< const Gempa::CAPS::PacketPtr& >(result))), SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__Packet_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Encoder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Encoder, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_delete_EncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::EncoderFactory *arg1 = (Gempa::CAPS::EncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__EncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::EncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_EncoderFactory_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::EncoderFactory *arg1 = (Gempa::CAPS::EncoderFactory *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
int arg6 ;
int arg7 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
PyObject *swig_obj[8] ;
Gempa::CAPS::Encoder *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "EncoderFactory_create", 8, 8, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncoderFactory_create" "', argument " "1"" of type '" "Gempa::CAPS::EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::EncoderFactory * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "EncoderFactory_create" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "EncoderFactory_create" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "EncoderFactory_create" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Encoder *)(arg1)->create((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return NULL;
}
SWIGINTERN PyObject *_wrap_EncoderFactory_supportsRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::EncoderFactory *arg1 = (Gempa::CAPS::EncoderFactory *) 0 ;
Gempa::CAPS::DataRecord *arg2 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "EncoderFactory_supportsRecord", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncoderFactory_supportsRecord" "', argument " "1"" of type '" "Gempa::CAPS::EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::EncoderFactory * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EncoderFactory_supportsRecord" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp2);
result = (bool)(arg1)->supportsRecord(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_EncoderFactory_errorString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::EncoderFactory *arg1 = (Gempa::CAPS::EncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncoderFactory_errorString" "', argument " "1"" of type '" "Gempa::CAPS::EncoderFactory const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::EncoderFactory * >(argp1);
result = (std::string *) &((Gempa::CAPS::EncoderFactory const *)arg1)->errorString();
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *EncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__EncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_MSEEDEncoderFactory_setRecordLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDEncoderFactory *arg1 = (Gempa::CAPS::MSEEDEncoderFactory *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "MSEEDEncoderFactory_setRecordLength", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDEncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDEncoderFactory_setRecordLength" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDEncoderFactory * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSEEDEncoderFactory_setRecordLength" "', argument " "2"" of type '" "unsigned int""'");
}
arg2 = static_cast< unsigned int >(val2);
result = (bool)(arg1)->setRecordLength(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_MSEEDEncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDEncoderFactory *arg1 = (Gempa::CAPS::MSEEDEncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDEncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSEEDEncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDEncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *MSEEDEncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__MSEEDEncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_SteimEncoderFactory_supportsRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SteimEncoderFactory *arg1 = (Gempa::CAPS::SteimEncoderFactory *) 0 ;
Gempa::CAPS::DataRecord *arg2 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "SteimEncoderFactory_supportsRecord", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SteimEncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SteimEncoderFactory_supportsRecord" "', argument " "1"" of type '" "Gempa::CAPS::SteimEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SteimEncoderFactory * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SteimEncoderFactory_supportsRecord" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp2);
result = (bool)(arg1)->supportsRecord(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_SteimEncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SteimEncoderFactory *arg1 = (Gempa::CAPS::SteimEncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SteimEncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SteimEncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::SteimEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SteimEncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SteimEncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__SteimEncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_IdentityEncoderFactory_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::IdentityEncoderFactory *arg1 = (Gempa::CAPS::IdentityEncoderFactory *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
int arg6 ;
int arg7 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
PyObject *swig_obj[8] ;
Gempa::CAPS::Encoder *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "IdentityEncoderFactory_create", 8, 8, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdentityEncoderFactory_create" "', argument " "1"" of type '" "Gempa::CAPS::IdentityEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::IdentityEncoderFactory * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IdentityEncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IdentityEncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IdentityEncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IdentityEncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IdentityEncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IdentityEncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "IdentityEncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IdentityEncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "IdentityEncoderFactory_create" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "IdentityEncoderFactory_create" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "IdentityEncoderFactory_create" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Encoder *)(arg1)->create((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return NULL;
}
SWIGINTERN PyObject *_wrap_IdentityEncoderFactory_supportsRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::IdentityEncoderFactory *arg1 = (Gempa::CAPS::IdentityEncoderFactory *) 0 ;
Gempa::CAPS::DataRecord *arg2 = (Gempa::CAPS::DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "IdentityEncoderFactory_supportsRecord", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdentityEncoderFactory_supportsRecord" "', argument " "1"" of type '" "Gempa::CAPS::IdentityEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::IdentityEncoderFactory * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__DataRecord, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IdentityEncoderFactory_supportsRecord" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord * >(argp2);
result = (bool)(arg1)->supportsRecord(arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_IdentityEncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::IdentityEncoderFactory *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_IdentityEncoderFactory", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::IdentityEncoderFactory *)new Gempa::CAPS::IdentityEncoderFactory();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_IdentityEncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::IdentityEncoderFactory *arg1 = (Gempa::CAPS::IdentityEncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IdentityEncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::IdentityEncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::IdentityEncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *IdentityEncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__IdentityEncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *IdentityEncoderFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_Steim1EncoderFactory_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim1EncoderFactory *arg1 = (Gempa::CAPS::Steim1EncoderFactory *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
int arg6 ;
int arg7 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
PyObject *swig_obj[8] ;
Gempa::CAPS::Encoder *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "Steim1EncoderFactory_create", 8, 8, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Steim1EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Steim1EncoderFactory_create" "', argument " "1"" of type '" "Gempa::CAPS::Steim1EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Steim1EncoderFactory * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Steim1EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim1EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Steim1EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim1EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Steim1EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim1EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Steim1EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim1EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Steim1EncoderFactory_create" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Steim1EncoderFactory_create" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Steim1EncoderFactory_create" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Encoder *)(arg1)->create((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Steim1EncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim1EncoderFactory *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_Steim1EncoderFactory", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::Steim1EncoderFactory *)new Gempa::CAPS::Steim1EncoderFactory();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Steim1EncoderFactory, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Steim1EncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim1EncoderFactory *arg1 = (Gempa::CAPS::Steim1EncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Steim1EncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Steim1EncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::Steim1EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Steim1EncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Steim1EncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Steim1EncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Steim1EncoderFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_Steim2EncoderFactory_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim2EncoderFactory *arg1 = (Gempa::CAPS::Steim2EncoderFactory *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
int arg6 ;
int arg7 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
PyObject *swig_obj[8] ;
Gempa::CAPS::Encoder *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "Steim2EncoderFactory_create", 8, 8, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Steim2EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Steim2EncoderFactory_create" "', argument " "1"" of type '" "Gempa::CAPS::Steim2EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Steim2EncoderFactory * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Steim2EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim2EncoderFactory_create" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Steim2EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim2EncoderFactory_create" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Steim2EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim2EncoderFactory_create" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Steim2EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Steim2EncoderFactory_create" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Steim2EncoderFactory_create" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Steim2EncoderFactory_create" "', argument " "7"" of type '" "int""'");
}
arg7 = static_cast< int >(val7);
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Steim2EncoderFactory_create" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Encoder *)(arg1)->create((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Encoder, 0 | 0 );
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Steim2EncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim2EncoderFactory *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_Steim2EncoderFactory", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::Steim2EncoderFactory *)new Gempa::CAPS::Steim2EncoderFactory();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Steim2EncoderFactory, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Steim2EncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Steim2EncoderFactory *arg1 = (Gempa::CAPS::Steim2EncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Steim2EncoderFactory, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Steim2EncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::Steim2EncoderFactory *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Steim2EncoderFactory * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Steim2EncoderFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Steim2EncoderFactory, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Steim2EncoderFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = (char *)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_readMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::DataRecord::Header *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
PyObject *swig_obj[6] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_readMetaData", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MSEEDDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
result = (bool)(arg1)->readMetaData(*arg2,arg3,*arg4,*arg5,*arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_header" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_startTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_startTime" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = ((Gempa::CAPS::MSEEDDataRecord const *)arg1)->startTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_endTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_endTime" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = ((Gempa::CAPS::MSEEDDataRecord const *)arg1)->endTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MSEEDDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
size_t result;
if (!SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_dataSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MSEEDDataRecord_dataSize" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = ((Gempa::CAPS::MSEEDDataRecord const *)arg1)->dataSize(arg2);
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MSEEDDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "MSEEDDataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MSEEDDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_get__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_get__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (arg1)->get(*arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_get", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_MSEEDDataRecord_get__SWIG_3(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_MSEEDDataRecord_get__SWIG_2(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_MSEEDDataRecord_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_MSEEDDataRecord_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MSEEDDataRecord_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::MSEEDDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::MSEEDDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::MSEEDDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::MSEEDDataRecord::get(std::streambuf &,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
bool arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_put", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MSEEDDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_put" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = (bool)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->put(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::MSEEDDataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_setData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *arg2 = (void *) 0 ;
size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "MSEEDDataRecord_setData", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_setData" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MSEEDDataRecord_setData" "', argument " "2"" of type '" "void const *""'");
}
ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MSEEDDataRecord_setData" "', argument " "3"" of type '" "size_t""'");
}
arg3 = static_cast< size_t >(val3);
(arg1)->setData((void const *)arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_MSEEDDataRecord_unpackHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MSEEDDataRecord_unpackHeader" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
(arg1)->unpackHeader();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_MSEEDDataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::MSEEDDataRecord *arg1 = (Gempa::CAPS::MSEEDDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MSEEDDataRecord" "', argument " "1"" of type '" "Gempa::CAPS::MSEEDDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::MSEEDDataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *MSEEDDataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__MSEEDDataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_new_Plugin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
int res1 = SWIG_OLDOBJ ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin *result = 0 ;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Plugin" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Plugin" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
result = (Gempa::CAPS::Plugin *)new Gempa::CAPS::Plugin((std::string const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Plugin, SWIG_POINTER_NEW | 0 );
if (SWIG_IsNewObj(res1)) delete arg1;
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
return resultobj;
fail:
if (SWIG_IsNewObj(res1)) delete arg1;
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Plugin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
std::string *arg2 = 0 ;
int res1 = SWIG_OLDOBJ ;
int res2 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin *result = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Plugin" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
result = (Gempa::CAPS::Plugin *)new Gempa::CAPS::Plugin((std::string const &)*arg1,(std::string const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Plugin, SWIG_POINTER_NEW | 0 );
if (SWIG_IsNewObj(res1)) delete arg1;
if (SWIG_IsNewObj(res2)) delete arg2;
return resultobj;
fail:
if (SWIG_IsNewObj(res1)) delete arg1;
if (SWIG_IsNewObj(res2)) delete arg2;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_Plugin__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
int res1 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Plugin" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
result = (Gempa::CAPS::Plugin *)new Gempa::CAPS::Plugin((std::string const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Plugin, 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_Plugin(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[4] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_Plugin", 0, 3, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_Plugin__SWIG_2(self, argc, argv);
}
}
if (argc == 2) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (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_new_Plugin__SWIG_1(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (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_new_Plugin__SWIG_0(self, argc, argv);
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Plugin'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Plugin::Plugin(std::string const &,std::string const &,std::string const &)\n"
" Gempa::CAPS::Plugin::Plugin(std::string const &,std::string const &)\n"
" Gempa::CAPS::Plugin::Plugin(std::string const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_delete_Plugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Plugin" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_close" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
(arg1)->close();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_quit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_quit" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
(arg1)->quit();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_enableLogging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_enableLogging" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
(arg1)->enableLogging();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setBackfillingBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setBackfillingBufferSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setBackfillingBufferSize" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setBackfillingBufferSize" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
(arg1)->setBackfillingBufferSize(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_backfillingBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_backfillingBufferSize" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (int)((Gempa::CAPS::Plugin const *)arg1)->backfillingBufferSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_isExitRequested(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_isExitRequested" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (bool)(arg1)->isExitRequested();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_stats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Plugin::Stats *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_stats" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (Gempa::CAPS::Plugin::Stats *) &((Gempa::CAPS::Plugin const *)arg1)->stats();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Plugin__Stats, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_resetMaxBytesBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_resetMaxBytesBuffered" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
(arg1)->resetMaxBytesBuffered();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setEncoderFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
Gempa::CAPS::EncoderFactory *arg2 = (Gempa::CAPS::EncoderFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setEncoderFactory", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setEncoderFactory" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__EncoderFactory, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setEncoderFactory" "', argument " "2"" of type '" "Gempa::CAPS::EncoderFactory *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::EncoderFactory * >(argp2);
(arg1)->setEncoderFactory(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
unsigned short val3 ;
int ecode3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setAddress" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setAddress" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setAddress" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Plugin_setAddress" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
result = (bool)(arg1)->setAddress((std::string const &)*arg2,arg3);
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_Plugin_setAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setAddress" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setAddress" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setAddress" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
result = (bool)(arg1)->setAddress((std::string const &)*arg2);
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_Plugin_setAddress(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[4] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Plugin_setAddress", 0, 3, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_Plugin_setAddress__SWIG_1(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_short(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_setAddress__SWIG_0(self, argc, argv);
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Plugin_setAddress'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Plugin::setAddress(std::string const &,uint16_t)\n"
" Gempa::CAPS::Plugin::setAddress(std::string const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Plugin_setHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setHost", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setHost" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setHost" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setHost" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
(arg1)->setHost((std::string const &)*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_Plugin_host(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_host" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (std::string *) &((Gempa::CAPS::Plugin const *)arg1)->host();
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
unsigned short arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setPort", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setPort" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setPort" "', argument " "2"" of type '" "unsigned short""'");
}
arg2 = static_cast< unsigned short >(val2);
(arg1)->setPort(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_port(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
unsigned short result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_port" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (unsigned short)((Gempa::CAPS::Plugin const *)arg1)->port();
resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setBufferSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setBufferSize" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setBufferSize" "', argument " "2"" of type '" "size_t""'");
}
arg2 = static_cast< size_t >(val2);
(arg1)->setBufferSize(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_bufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_bufferSize" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = ((Gempa::CAPS::Plugin const *)arg1)->bufferSize();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setSSLEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setSSLEnabled", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setSSLEnabled" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setSSLEnabled" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->setSSLEnabled(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setCredentials(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setCredentials", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setCredentials" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setCredentials" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setCredentials" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_setCredentials" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setCredentials" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
(arg1)->setCredentials((std::string const &)*arg2,(std::string const &)*arg3);
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_Plugin_setMaxFutureEndTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setMaxFutureEndTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setMaxFutureEndTime" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setMaxFutureEndTime" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setMaxFutureEndTime" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
(arg1)->setMaxFutureEndTime((Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setPacketAckFunc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
Gempa::CAPS::Plugin::PacketAckFunc *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setPacketAckFunc", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setPacketAckFunc" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setPacketAckFunc" "', argument " "2"" of type '" "Gempa::CAPS::Plugin::PacketAckFunc const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setPacketAckFunc" "', argument " "2"" of type '" "Gempa::CAPS::Plugin::PacketAckFunc const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Plugin::PacketAckFunc * >(argp2);
(arg1)->setPacketAckFunc((Gempa::CAPS::Plugin::PacketAckFunc const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setSendTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setSendTimeout", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setSendTimeout" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setSendTimeout" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
(arg1)->setSendTimeout(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setTimeouts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
int arg2 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setTimeouts" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setTimeouts" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Plugin_setTimeouts" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
(arg1)->setTimeouts(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setTimeouts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
int arg2 ;
int arg3 ;
int arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setTimeouts" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setTimeouts" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Plugin_setTimeouts" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Plugin_setTimeouts" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
(arg1)->setTimeouts(arg2,arg3,arg4);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setTimeouts(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[5] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Plugin_setTimeouts", 0, 4, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_setTimeouts__SWIG_0(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_setTimeouts__SWIG_1(self, argc, argv);
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Plugin_setTimeouts'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Plugin::setTimeouts(int,int)\n"
" Gempa::CAPS::Plugin::setTimeouts(int,int,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Plugin_readJournal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_readJournal" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (bool)(arg1)->readJournal();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setJournal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setJournal", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setJournal" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setJournal" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setJournal" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
(arg1)->setJournal((std::string const &)*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_Plugin_setFlushInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setFlushInterval", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setFlushInterval" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_setFlushInterval" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
(arg1)->setFlushInterval(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_streamStates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Plugin::StreamStates *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_streamStates" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (Gempa::CAPS::Plugin::StreamStates *) &((Gempa::CAPS::Plugin const *)arg1)->streamStates();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_writeJournal__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_writeJournal" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (bool)(arg1)->writeJournal();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_writeJournal__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::ostream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_writeJournal" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__ostream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_writeJournal" "', argument " "2"" of type '" "std::ostream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_writeJournal" "', argument " "2"" of type '" "std::ostream &""'");
}
arg2 = reinterpret_cast< std::ostream * >(argp2);
result = (bool)(arg1)->writeJournal(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_writeJournal(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Plugin_writeJournal", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Plugin_writeJournal__SWIG_0(self, argc, argv);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Plugin_writeJournal__SWIG_1(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Plugin_writeJournal'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Plugin::writeJournal()\n"
" Gempa::CAPS::Plugin::writeJournal(std::ostream &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::DataRecordPtr arg6 ;
std::string *arg7 = 0 ;
int arg8 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 ;
int res6 = 0 ;
int res7 = SWIG_OLDOBJ ;
int val8 ;
int ecode8 = 0 ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 8) || (nobjs > 8)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
{
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::DataRecordPtr""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::DataRecordPtr""'");
} else {
Gempa::CAPS::DataRecordPtr * temp = reinterpret_cast< Gempa::CAPS::DataRecordPtr * >(argp6);
arg6 = *temp;
if (SWIG_IsNewObj(res6)) delete temp;
}
}
{
std::string *ptr = (std::string *)0;
res7 = SWIG_AsPtr_std_string(swig_obj[6], &ptr);
if (!SWIG_IsOK(res7)) {
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Plugin_push" "', argument " "7"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "7"" of type '" "std::string const &""'");
}
arg7 = ptr;
}
ecode8 = SWIG_AsVal_int(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "int""'");
}
arg8 = static_cast< int >(val8);
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,(std::string const &)*arg7,arg8);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res7)) delete arg7;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res7)) delete arg7;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::DataRecordPtr arg6 ;
std::string *arg7 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 ;
int res6 = 0 ;
int res7 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
{
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::DataRecordPtr""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::DataRecordPtr""'");
} else {
Gempa::CAPS::DataRecordPtr * temp = reinterpret_cast< Gempa::CAPS::DataRecordPtr * >(argp6);
arg6 = *temp;
if (SWIG_IsNewObj(res6)) delete temp;
}
}
{
std::string *ptr = (std::string *)0;
res7 = SWIG_AsPtr_std_string(swig_obj[6], &ptr);
if (!SWIG_IsOK(res7)) {
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Plugin_push" "', argument " "7"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "7"" of type '" "std::string const &""'");
}
arg7 = ptr;
}
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,(std::string const &)*arg7);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res7)) delete arg7;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res7)) delete arg7;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
uint16_t arg7 ;
uint16_t arg8 ;
std::string *arg9 = 0 ;
void *arg10 = (void *) 0 ;
size_t arg11 ;
Gempa::CAPS::DataType arg12 ;
int arg13 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
unsigned short val7 ;
int ecode7 = 0 ;
unsigned short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
int res10 ;
size_t val11 ;
int ecode11 = 0 ;
int val12 ;
int ecode12 = 0 ;
int val13 ;
int ecode13 = 0 ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 13) || (nobjs > 13)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_unsigned_SS_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "uint16_t""'");
}
arg7 = static_cast< uint16_t >(val7);
ecode8 = SWIG_AsVal_unsigned_SS_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "uint16_t""'");
}
arg8 = static_cast< uint16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
res10 = SWIG_ConvertPtr(swig_obj[9],SWIG_as_voidptrptr(&arg10), 0, 0);
if (!SWIG_IsOK(res10)) {
SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Plugin_push" "', argument " "10"" of type '" "void *""'");
}
ecode11 = SWIG_AsVal_size_t(swig_obj[10], &val11);
if (!SWIG_IsOK(ecode11)) {
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Plugin_push" "', argument " "11"" of type '" "size_t""'");
}
arg11 = static_cast< size_t >(val11);
ecode12 = SWIG_AsVal_int(swig_obj[11], &val12);
if (!SWIG_IsOK(ecode12)) {
SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "Plugin_push" "', argument " "12"" of type '" "Gempa::CAPS::DataType""'");
}
arg12 = static_cast< Gempa::CAPS::DataType >(val12);
ecode13 = SWIG_AsVal_int(swig_obj[12], &val13);
if (!SWIG_IsOK(ecode13)) {
SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "Plugin_push" "', argument " "13"" of type '" "int""'");
}
arg13 = static_cast< int >(val13);
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,arg10,arg11,arg12,arg13);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
uint16_t arg7 ;
uint16_t arg8 ;
std::string *arg9 = 0 ;
void *arg10 = (void *) 0 ;
size_t arg11 ;
Gempa::CAPS::DataType arg12 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
unsigned short val7 ;
int ecode7 = 0 ;
unsigned short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
int res10 ;
size_t val11 ;
int ecode11 = 0 ;
int val12 ;
int ecode12 = 0 ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 12) || (nobjs > 12)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_unsigned_SS_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "uint16_t""'");
}
arg7 = static_cast< uint16_t >(val7);
ecode8 = SWIG_AsVal_unsigned_SS_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "uint16_t""'");
}
arg8 = static_cast< uint16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
res10 = SWIG_ConvertPtr(swig_obj[9],SWIG_as_voidptrptr(&arg10), 0, 0);
if (!SWIG_IsOK(res10)) {
SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Plugin_push" "', argument " "10"" of type '" "void *""'");
}
ecode11 = SWIG_AsVal_size_t(swig_obj[10], &val11);
if (!SWIG_IsOK(ecode11)) {
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Plugin_push" "', argument " "11"" of type '" "size_t""'");
}
arg11 = static_cast< size_t >(val11);
ecode12 = SWIG_AsVal_int(swig_obj[11], &val12);
if (!SWIG_IsOK(ecode12)) {
SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "Plugin_push" "', argument " "12"" of type '" "Gempa::CAPS::DataType""'");
}
arg12 = static_cast< Gempa::CAPS::DataType >(val12);
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,arg10,arg11,arg12);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
uint16_t arg7 ;
uint16_t arg8 ;
std::string *arg9 = 0 ;
char *arg10 = (char *) 0 ;
size_t arg11 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
unsigned short val7 ;
int ecode7 = 0 ;
unsigned short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
int res10 ;
char *buf10 = 0 ;
int alloc10 = 0 ;
size_t val11 ;
int ecode11 = 0 ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 11) || (nobjs > 11)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_unsigned_SS_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "uint16_t""'");
}
arg7 = static_cast< uint16_t >(val7);
ecode8 = SWIG_AsVal_unsigned_SS_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "uint16_t""'");
}
arg8 = static_cast< uint16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
res10 = SWIG_AsCharPtrAndSize(swig_obj[9], &buf10, NULL, &alloc10);
if (!SWIG_IsOK(res10)) {
SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Plugin_push" "', argument " "10"" of type '" "char *""'");
}
arg10 = reinterpret_cast< char * >(buf10);
ecode11 = SWIG_AsVal_size_t(swig_obj[10], &val11);
if (!SWIG_IsOK(ecode11)) {
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Plugin_push" "', argument " "11"" of type '" "size_t""'");
}
arg11 = static_cast< size_t >(val11);
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,arg10,arg11);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
uint16_t arg7 ;
uint16_t arg8 ;
std::string *arg9 = 0 ;
std::string *arg10 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
unsigned short val7 ;
int ecode7 = 0 ;
unsigned short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
int res10 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 10) || (nobjs > 10)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_unsigned_SS_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "uint16_t""'");
}
arg7 = static_cast< uint16_t >(val7);
ecode8 = SWIG_AsVal_unsigned_SS_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "uint16_t""'");
}
arg8 = static_cast< uint16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
{
std::string *ptr = (std::string *)0;
res10 = SWIG_AsPtr_std_string(swig_obj[9], &ptr);
if (!SWIG_IsOK(res10)) {
SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Plugin_push" "', argument " "10"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "10"" of type '" "std::string const &""'");
}
arg10 = ptr;
}
result = (Gempa::CAPS::Plugin::Status)(arg1)->push((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,(std::string const &)*arg10);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
if (SWIG_IsNewObj(res10)) delete arg10;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
if (SWIG_IsNewObj(res10)) delete arg10;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_flushEncoders(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_flushEncoders" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
(arg1)->flushEncoders();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_dumpPackets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_dumpPackets", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_dumpPackets" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Plugin_dumpPackets" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->dumpPackets(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_packetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Plugin::PacketBuffer *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_packetBuffer" "', argument " "1"" of type '" "Gempa::CAPS::Plugin const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (Gempa::CAPS::Plugin::PacketBuffer *) &((Gempa::CAPS::Plugin const *)arg1)->packetBuffer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_setAgent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "Plugin_setAgent", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_setAgent" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_setAgent" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_setAgent" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
(arg1)->setAgent((std::string const &)*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_Plugin_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_version" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
result = (char *)(arg1)->version();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_6(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
int16_t arg7 ;
int16_t arg8 ;
std::string *arg9 = 0 ;
PyObject *arg10 = (PyObject *) 0 ;
int arg11 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
short val7 ;
int ecode7 = 0 ;
short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
int val11 ;
int ecode11 = 0 ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 11) || (nobjs > 11)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "int16_t""'");
}
arg7 = static_cast< int16_t >(val7);
ecode8 = SWIG_AsVal_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "int16_t""'");
}
arg8 = static_cast< int16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
arg10 = swig_obj[9];
ecode11 = SWIG_AsVal_int(swig_obj[10], &val11);
if (!SWIG_IsOK(ecode11)) {
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Plugin_push" "', argument " "11"" of type '" "int""'");
}
arg11 = static_cast< int >(val11);
result = (Gempa::CAPS::Plugin::Status)Gempa_CAPS_Plugin_push__SWIG_6(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,arg10,arg11);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push__SWIG_7(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::Plugin *arg1 = (Gempa::CAPS::Plugin *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
std::string *arg4 = 0 ;
std::string *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
uint16_t arg7 ;
uint16_t arg8 ;
std::string *arg9 = 0 ;
PyObject *arg10 = (PyObject *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
int res4 = SWIG_OLDOBJ ;
int res5 = SWIG_OLDOBJ ;
void *argp6 = 0 ;
int res6 = 0 ;
unsigned short val7 ;
int ecode7 = 0 ;
unsigned short val8 ;
int ecode8 = 0 ;
int res9 = SWIG_OLDOBJ ;
Gempa::CAPS::Plugin::Status result;
if ((nobjs < 10) || (nobjs > 10)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Plugin, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Plugin_push" "', argument " "1"" of type '" "Gempa::CAPS::Plugin *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Plugin * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
{
std::string *ptr = (std::string *)0;
res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "4"" of type '" "std::string const &""'");
}
arg4 = ptr;
}
{
std::string *ptr = (std::string *)0;
res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "5"" of type '" "std::string const &""'");
}
arg5 = ptr;
}
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "6"" of type '" "Gempa::CAPS::Time const &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
ecode7 = SWIG_AsVal_unsigned_SS_short(swig_obj[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Plugin_push" "', argument " "7"" of type '" "uint16_t""'");
}
arg7 = static_cast< uint16_t >(val7);
ecode8 = SWIG_AsVal_unsigned_SS_short(swig_obj[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Plugin_push" "', argument " "8"" of type '" "uint16_t""'");
}
arg8 = static_cast< uint16_t >(val8);
{
std::string *ptr = (std::string *)0;
res9 = SWIG_AsPtr_std_string(swig_obj[8], &ptr);
if (!SWIG_IsOK(res9)) {
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Plugin_push" "', argument " "9"" of type '" "std::string const &""'");
}
arg9 = ptr;
}
arg10 = swig_obj[9];
result = (Gempa::CAPS::Plugin::Status)Gempa_CAPS_Plugin_push__SWIG_7(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(Gempa::CAPS::Time const &)*arg6,arg7,arg8,(std::string const &)*arg9,arg10);
resultobj = SWIG_From_int(static_cast< int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
if (SWIG_IsNewObj(res4)) delete arg4;
if (SWIG_IsNewObj(res5)) delete arg5;
if (SWIG_IsNewObj(res9)) delete arg9;
return NULL;
}
SWIGINTERN PyObject *_wrap_Plugin_push(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[14] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "Plugin_push", 0, 13, argv))) SWIG_fail;
--argc;
if (argc == 7) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Plugin_push__SWIG_1(self, argc, argv);
}
}
}
}
}
}
}
}
if (argc == 8) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_push__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
}
}
if (argc == 10) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[9], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Plugin_push__SWIG_5(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
if (argc == 10) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
_v = (argv[9] != 0);
if (_v) {
return _wrap_Plugin_push__SWIG_7(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
if (argc == 11) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[9], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[10], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_push__SWIG_4(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
}
if (argc == 11) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
_v = (argv[9] != 0);
if (_v) {
{
int res = SWIG_AsVal_int(argv[10], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_push__SWIG_6(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
}
if (argc == 12) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
void *ptr = 0;
int res = SWIG_ConvertPtr(argv[9], &ptr, 0, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[10], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[11], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_push__SWIG_3(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
}
}
if (argc == 13) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__Plugin, 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_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[6], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_unsigned_SS_short(argv[7], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_AsPtr_std_string(argv[8], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
void *ptr = 0;
int res = SWIG_ConvertPtr(argv[9], &ptr, 0, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_size_t(argv[10], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[11], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[12], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Plugin_push__SWIG_2(self, argc, argv);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Plugin_push'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::DataRecordPtr,std::string const &,int)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::DataRecordPtr,std::string const &)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,uint16_t,uint16_t,std::string const &,void *,size_t,Gempa::CAPS::DataType,int)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,uint16_t,uint16_t,std::string const &,void *,size_t,Gempa::CAPS::DataType)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,uint16_t,uint16_t,std::string const &,char *,size_t)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,uint16_t,uint16_t,std::string const &,std::string const &)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,int16_t,int16_t,std::string const &,PyObject *,int)\n"
" Gempa::CAPS::Plugin::push(std::string const &,std::string const &,std::string const &,std::string const &,Gempa::CAPS::Time const &,uint16_t,uint16_t,std::string const &,PyObject *)\n");
return 0;
}
SWIGINTERN PyObject *Plugin_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Plugin, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Plugin_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_timeSeconds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
int64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
long long val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawResponseHeader_timeSeconds_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_timeSeconds_set" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
ecode2 = SWIG_AsVal_long_SS_long(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RawResponseHeader_timeSeconds_set" "', argument " "2"" of type '" "int64_t""'");
}
arg2 = static_cast< int64_t >(val2);
if (arg1) (arg1)->timeSeconds = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_timeSeconds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int64_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_timeSeconds_get" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
result = (int64_t) ((arg1)->timeSeconds);
resultobj = SWIG_From_long_SS_long(static_cast< long long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_timeMicroSeconds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
int32_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawResponseHeader_timeMicroSeconds_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_timeMicroSeconds_set" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RawResponseHeader_timeMicroSeconds_set" "', argument " "2"" of type '" "int32_t""'");
}
arg2 = static_cast< int32_t >(val2);
if (arg1) (arg1)->timeMicroSeconds = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_timeMicroSeconds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int32_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_timeMicroSeconds_get" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
result = (int32_t) ((arg1)->timeMicroSeconds);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RawResponseHeader_get", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawResponseHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawResponseHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->get(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawResponseHeader_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawResponseHeader_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
result = (int)((Gempa::CAPS::RawResponseHeader const *)arg1)->dataSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_RawResponseHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_RawResponseHeader", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RawResponseHeader *)new Gempa::CAPS::RawResponseHeader();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_RawResponseHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawResponseHeader *arg1 = (Gempa::CAPS::RawResponseHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RawResponseHeader" "', argument " "1"" of type '" "Gempa::CAPS::RawResponseHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawResponseHeader * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *RawResponseHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RawResponseHeader, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *RawResponseHeader_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_RawDataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = (char *)((Gempa::CAPS::RawDataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_readMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::DataRecord::Header *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
PyObject *swig_obj[6] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_readMetaData", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_readMetaData" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_readMetaData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RawDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RawDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
result = (bool)(arg1)->readMetaData(*arg2,arg3,*arg4,*arg5,*arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_setHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
Gempa::CAPS::DataRecord::Header *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_setHeader", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_setHeader" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_setHeader" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_setHeader" "', argument " "2"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp2);
(arg1)->setHeader((Gempa::CAPS::DataRecord::Header const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_header" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)((Gempa::CAPS::RawDataRecord const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_startTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_startTime" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = ((Gempa::CAPS::RawDataRecord const *)arg1)->startTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_endTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_endTime" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = ((Gempa::CAPS::RawDataRecord const *)arg1)->endTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::RawDataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::RawDataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RawDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::RawDataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
size_t result;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_dataSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RawDataRecord_dataSize" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = ((Gempa::CAPS::RawDataRecord const *)arg1)->dataSize(arg2);
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RawDataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_get__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_get__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (arg1)->get(*arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "RawDataRecord_get", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_RawDataRecord_get__SWIG_3(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_RawDataRecord_get__SWIG_2(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_RawDataRecord_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_RawDataRecord_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RawDataRecord_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::RawDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::RawDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::RawDataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::RawDataRecord::get(std::streambuf &,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_getData" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_getData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RawDataRecord_getData" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RawDataRecord_getData" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->getData(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_getData" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_getData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RawDataRecord_getData" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->getData(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_getData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_getData" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_getData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
result = (arg1)->getData(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_getData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_getData" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_getData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_getData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (arg1)->getData(*arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_getData(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "RawDataRecord_getData", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_RawDataRecord_getData__SWIG_3(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_RawDataRecord_getData__SWIG_2(self, argc, argv);
}
}
}
}
}
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_RawDataRecord_getData__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_RawDataRecord_getData__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RawDataRecord_getData'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::RawDataRecord::getData(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::RawDataRecord::getData(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::RawDataRecord::getData(std::streambuf &,int,Gempa::CAPS::Time const &)\n"
" Gempa::CAPS::RawDataRecord::getData(std::streambuf &,int)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
bool arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_put", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_put" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = (bool)((Gempa::CAPS::RawDataRecord const *)arg1)->put(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::RawDataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_setStartTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_setStartTime", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_setStartTime" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RawDataRecord_setStartTime" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->setStartTime((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_setSamplingFrequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
uint16_t arg2 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_setSamplingFrequency", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_setSamplingFrequency" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RawDataRecord_setSamplingFrequency" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_setSamplingFrequency" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
(arg1)->setSamplingFrequency(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_setDataType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
Gempa::CAPS::DataType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_setDataType", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_setDataType" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RawDataRecord_setDataType" "', argument " "2"" of type '" "Gempa::CAPS::DataType""'");
}
arg2 = static_cast< Gempa::CAPS::DataType >(val2);
(arg1)->setDataType(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RawDataRecord_setBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *arg2 = (void *) 0 ;
size_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
size_t val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "RawDataRecord_setBuffer", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RawDataRecord_setBuffer" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RawDataRecord_setBuffer" "', argument " "2"" of type '" "void const *""'");
}
ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RawDataRecord_setBuffer" "', argument " "3"" of type '" "size_t""'");
}
arg3 = static_cast< size_t >(val3);
(arg1)->setBuffer((void const *)arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_RawDataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RawDataRecord *arg1 = (Gempa::CAPS::RawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RawDataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RawDataRecord" "', argument " "1"" of type '" "Gempa::CAPS::RawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RawDataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *RawDataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RawDataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::FixedRawDataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
result = (bool)((Gempa::CAPS::FixedRawDataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "FixedRawDataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedRawDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRawDataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FixedRawDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRawDataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::FixedRawDataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
result = (char *)((Gempa::CAPS::FixedRawDataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
PyObject *swig_obj[6] ;
Gempa::CAPS::DataRecord::ReadStatus result;
if (!SWIG_Python_UnpackTuple(args, "FixedRawDataRecord_get", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedRawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRawDataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FixedRawDataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FixedRawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRawDataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "FixedRawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRawDataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FixedRawDataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_FixedRawDataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRawDataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::FixedRawDataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_FixedRawDataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::FixedRawDataRecord *arg1 = (Gempa::CAPS::FixedRawDataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedRawDataRecord" "', argument " "1"" of type '" "Gempa::CAPS::FixedRawDataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::FixedRawDataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *FixedRawDataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__FixedRawDataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_ChunkHeader_chunkSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_chunkSize_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_chunkSize_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChunkHeader_chunkSize_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->chunkSize = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_chunkSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_chunkSize_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
result = (int) ((arg1)->chunkSize);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_setChunkType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_setChunkType", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_setChunkType" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_setChunkType" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)(arg1)->setChunkType((char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_isChunkType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_isChunkType", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_isChunkType" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_isChunkType" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)((Gempa::CAPS::RIFF::ChunkHeader const *)arg1)->isChunkType((char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_validChunkType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_validChunkType" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
result = (bool)((Gempa::CAPS::RIFF::ChunkHeader const *)arg1)->validChunkType();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
result = (int)((Gempa::CAPS::RIFF::ChunkHeader const *)arg1)->dataSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
std::istream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_read", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_read" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__istream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_read" "', argument " "2"" of type '" "std::istream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkHeader_read" "', argument " "2"" of type '" "std::istream &""'");
}
arg2 = reinterpret_cast< std::istream * >(argp2);
result = (bool)(arg1)->read(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
std::ostream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_write", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_write" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__ostream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_write" "', argument " "2"" of type '" "std::ostream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkHeader_write" "', argument " "2"" of type '" "std::ostream &""'");
}
arg2 = reinterpret_cast< std::ostream * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::ChunkHeader const *)arg1)->write(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_get", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkHeader_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)(arg1)->get(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkHeader_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "ChunkHeader_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkHeader_put" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkHeader_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkHeader_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::ChunkHeader const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_ChunkHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_ChunkHeader", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RIFF::ChunkHeader *)new Gempa::CAPS::RIFF::ChunkHeader();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_ChunkHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkHeader *arg1 = (Gempa::CAPS::RIFF::ChunkHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChunkHeader" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkHeader *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkHeader * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *ChunkHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *ChunkHeader_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN int Swig_var_ChunkHeaderSize_set(PyObject *) {
SWIG_Error(SWIG_AttributeError,"Variable ChunkHeaderSize is read-only.");
return 1;
}
SWIGINTERN PyObject *Swig_var_ChunkHeaderSize_get(void) {
PyObject *pyobj = 0;
pyobj = SWIG_From_int(static_cast< int >(Gempa::CAPS::RIFF::ChunkHeaderSize));
return pyobj;
}
SWIGINTERN PyObject *_wrap_new_ChunkIterator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::RIFF::ChunkIterator *)new Gempa::CAPS::RIFF::ChunkIterator();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_ChunkIterator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
int res1 = SWIG_OLDOBJ ;
Gempa::CAPS::RIFF::ChunkIterator *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChunkIterator" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ChunkIterator" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
result = (Gempa::CAPS::RIFF::ChunkIterator *)new Gempa::CAPS::RIFF::ChunkIterator((std::string const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 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_ChunkIterator__SWIG_2(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::istream *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::RIFF::ChunkIterator *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__istream, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChunkIterator" "', argument " "1"" of type '" "std::istream &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ChunkIterator" "', argument " "1"" of type '" "std::istream &""'");
}
arg1 = reinterpret_cast< std::istream * >(argp1);
result = (Gempa::CAPS::RIFF::ChunkIterator *)new Gempa::CAPS::RIFF::ChunkIterator(*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_ChunkIterator(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[2] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_ChunkIterator", 0, 1, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_ChunkIterator__SWIG_0(self, argc, argv);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__istream, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_ChunkIterator__SWIG_2(self, argc, argv);
}
}
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_ChunkIterator__SWIG_1(self, argc, argv);
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ChunkIterator'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::RIFF::ChunkIterator::ChunkIterator()\n"
" Gempa::CAPS::RIFF::ChunkIterator::ChunkIterator(std::string const &)\n"
" Gempa::CAPS::RIFF::ChunkIterator::ChunkIterator(std::istream &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_begin" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkIterator_begin" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkIterator_begin" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
(arg1)->begin((std::string const &)*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_ChunkIterator_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
std::istream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_begin" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__istream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChunkIterator_begin" "', argument " "2"" of type '" "std::istream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ChunkIterator_begin" "', argument " "2"" of type '" "std::istream &""'");
}
arg2 = reinterpret_cast< std::istream * >(argp2);
(arg1)->begin(*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_begin(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "ChunkIterator_begin", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__istream, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_ChunkIterator_begin__SWIG_1(self, argc, argv);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 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_ChunkIterator_begin__SWIG_0(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChunkIterator_begin'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::RIFF::ChunkIterator::begin(std::string const &)\n"
" Gempa::CAPS::RIFF::ChunkIterator::begin(std::istream &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_next" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
result = (bool)(arg1)->next();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::RIFF::ChunkHeader *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_header" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
result = (Gempa::CAPS::RIFF::ChunkHeader *) &((Gempa::CAPS::RIFF::ChunkIterator const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkHeader, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_headerPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_headerPos" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
result = ((Gempa::CAPS::RIFF::ChunkIterator const *)arg1)->headerPos();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_contentPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
size_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_contentPos" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
result = ((Gempa::CAPS::RIFF::ChunkIterator const *)arg1)->contentPos();
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ChunkIterator_istream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::istream *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChunkIterator_istream" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
result = (std::istream *) &((Gempa::CAPS::RIFF::ChunkIterator const *)arg1)->istream();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__istream, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_ChunkIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::ChunkIterator *arg1 = (Gempa::CAPS::RIFF::ChunkIterator *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChunkIterator" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::ChunkIterator *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::ChunkIterator * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *ChunkIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__ChunkIterator, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *ChunkIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_delete_Chunk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Chunk" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Chunk_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
std::istream *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "Chunk_read", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Chunk_read" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__istream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Chunk_read" "', argument " "2"" of type '" "std::istream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Chunk_read" "', argument " "2"" of type '" "std::istream &""'");
}
arg2 = reinterpret_cast< std::istream * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Chunk_read" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)(arg1)->read(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Chunk_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
std::ostream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "Chunk_write", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Chunk_write" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__ostream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Chunk_write" "', argument " "2"" of type '" "std::ostream &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Chunk_write" "', argument " "2"" of type '" "std::ostream &""'");
}
arg2 = reinterpret_cast< std::ostream * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::Chunk const *)arg1)->write(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Chunk_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "Chunk_get", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Chunk_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Chunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Chunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Chunk_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)(arg1)->get(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Chunk_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "Chunk_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Chunk_put" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Chunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Chunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::Chunk const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Chunk_chunkSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::Chunk *arg1 = (Gempa::CAPS::RIFF::Chunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Chunk_chunkSize" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::Chunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::Chunk * >(argp1);
result = (int)((Gempa::CAPS::RIFF::Chunk const *)arg1)->chunkSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Chunk_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__Chunk, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_HeadChunk_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
Gempa::CAPS::PacketDataHeader *arg2 = (Gempa::CAPS::PacketDataHeader *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "HeadChunk_data_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeadChunk_data_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeadChunk_data_set" "', argument " "2"" of type '" "Gempa::CAPS::PacketDataHeader *""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::PacketDataHeader * >(argp2);
if (arg1) (arg1)->data = *arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_HeadChunk_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketDataHeader *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeadChunk_data_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
result = (Gempa::CAPS::PacketDataHeader *)& ((arg1)->data);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__PacketDataHeader, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_HeadChunk_chunkSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeadChunk_chunkSize" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
result = (int)((Gempa::CAPS::RIFF::HeadChunk const *)arg1)->chunkSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_HeadChunk_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "HeadChunk_get", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeadChunk_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeadChunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeadChunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HeadChunk_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)(arg1)->get(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_HeadChunk_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "HeadChunk_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeadChunk_put" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeadChunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HeadChunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::HeadChunk const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_HeadChunk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_HeadChunk", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RIFF::HeadChunk *)new Gempa::CAPS::RIFF::HeadChunk();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_HeadChunk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::HeadChunk *arg1 = (Gempa::CAPS::RIFF::HeadChunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeadChunk" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::HeadChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::HeadChunk * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *HeadChunk_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__HeadChunk, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *HeadChunk_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_SID_networkCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SID_networkCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_networkCode_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID_networkCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID_networkCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->networkCode = *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_SID_networkCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_networkCode_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
result = (std::string *) & ((arg1)->networkCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SID_stationCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SID_stationCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_stationCode_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID_stationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID_stationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->stationCode = *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_SID_stationCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_stationCode_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
result = (std::string *) & ((arg1)->stationCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SID_locationCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SID_locationCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_locationCode_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID_locationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID_locationCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->locationCode = *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_SID_locationCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_locationCode_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
result = (std::string *) & ((arg1)->locationCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SID_channelCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "SID_channelCode_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_channelCode_set" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID_channelCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID_channelCode_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->channelCode = *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_SID_channelCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_channelCode_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
result = (std::string *) & ((arg1)->channelCode);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SID___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
Gempa::CAPS::RIFF::SID *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "SID___eq__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID___eq__" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID___eq__" "', argument " "2"" of type '" "Gempa::CAPS::RIFF::SID const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID___eq__" "', argument " "2"" of type '" "Gempa::CAPS::RIFF::SID const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::SID const *)arg1)->operator ==((Gempa::CAPS::RIFF::SID const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_SID___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
Gempa::CAPS::RIFF::SID *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "SID___ne__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID___ne__" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SID___ne__" "', argument " "2"" of type '" "Gempa::CAPS::RIFF::SID const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SID___ne__" "', argument " "2"" of type '" "Gempa::CAPS::RIFF::SID const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::SID const *)arg1)->operator !=((Gempa::CAPS::RIFF::SID const &)*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
PyErr_Clear();
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
SWIGINTERN PyObject *_wrap_SID_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SID_toString" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
result = ((Gempa::CAPS::RIFF::SID const *)arg1)->toString();
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_SID", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RIFF::SID *)new Gempa::CAPS::RIFF::SID();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__SID, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_SID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SID *arg1 = (Gempa::CAPS::RIFF::SID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SID, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SID" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SID *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SID * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SID_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__SID, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *SID_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_SIDChunk_chunkSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SIDChunk *arg1 = (Gempa::CAPS::RIFF::SIDChunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SIDChunk_chunkSize" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SIDChunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SIDChunk * >(argp1);
result = (int)((Gempa::CAPS::RIFF::SIDChunk const *)arg1)->chunkSize();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SIDChunk_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SIDChunk *arg1 = (Gempa::CAPS::RIFF::SIDChunk *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "SIDChunk_get", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SIDChunk_get" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SIDChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SIDChunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SIDChunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SIDChunk_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SIDChunk_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)(arg1)->get(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SIDChunk_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SIDChunk *arg1 = (Gempa::CAPS::RIFF::SIDChunk *) 0 ;
std::streambuf *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "SIDChunk_put", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SIDChunk_put" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SIDChunk const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SIDChunk * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SIDChunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SIDChunk_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
result = (bool)((Gempa::CAPS::RIFF::SIDChunk const *)arg1)->put(*arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SIDChunk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SIDChunk *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_SIDChunk", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::RIFF::SIDChunk *)new Gempa::CAPS::RIFF::SIDChunk();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_SIDChunk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RIFF::SIDChunk *arg1 = (Gempa::CAPS::RIFF::SIDChunk *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SIDChunk" "', argument " "1"" of type '" "Gempa::CAPS::RIFF::SIDChunk *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RIFF::SIDChunk * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SIDChunk_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RIFF__SIDChunk, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *SIDChunk_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_formatName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_formatName" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = (char *)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->formatName();
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_setTimeStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_setTimeStamp", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_setTimeStamp" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_setTimeStamp" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_setTimeStamp" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
(arg1)->setTimeStamp((Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_setSamplingFrequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
uint16_t arg2 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short val2 ;
int ecode2 = 0 ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_setSamplingFrequency", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_setSamplingFrequency" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RTCM2DataRecord_setSamplingFrequency" "', argument " "2"" of type '" "uint16_t""'");
}
arg2 = static_cast< uint16_t >(val2);
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RTCM2DataRecord_setSamplingFrequency" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
(arg1)->setSamplingFrequency(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_readMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::DataRecord::Header *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
Gempa::CAPS::Time *arg6 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
void *argp6 = 0 ;
int res6 = 0 ;
PyObject *swig_obj[6] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_readMetaData", 6, 6, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_readMetaData" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_readMetaData" "', argument " "4"" of type '" "Gempa::CAPS::DataRecord::Header &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_readMetaData" "', argument " "5"" of type '" "Gempa::CAPS::Time &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_Gempa__CAPS__Time, 0 );
if (!SWIG_IsOK(res6)) {
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "RTCM2DataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
if (!argp6) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_readMetaData" "', argument " "6"" of type '" "Gempa::CAPS::Time &""'");
}
arg6 = reinterpret_cast< Gempa::CAPS::Time * >(argp6);
result = (bool)(arg1)->readMetaData(*arg2,arg3,*arg4,*arg5,*arg6);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::DataRecord::Header *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_header" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = (Gempa::CAPS::DataRecord::Header *)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->header();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_startTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_startTime" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = ((Gempa::CAPS::RTCM2DataRecord const *)arg1)->startTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_endTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_endTime" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = ((Gempa::CAPS::RTCM2DataRecord const *)arg1)->endTime();
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_canTrim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_canTrim" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = (bool)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->canTrim();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_canMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_canMerge" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = (bool)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->canMerge();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_trim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
Gempa::CAPS::Time *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_trim", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_trim" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_trim" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RTCM2DataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_trim" "', argument " "3"" of type '" "Gempa::CAPS::Time const &""'");
}
arg3 = reinterpret_cast< Gempa::CAPS::Time * >(argp3);
result = (bool)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->trim((Gempa::CAPS::Time const &)*arg2,(Gempa::CAPS::Time const &)*arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_dataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
size_t result;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_dataSize", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_dataSize" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RTCM2DataRecord_dataSize" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = ((Gempa::CAPS::RTCM2DataRecord const *)arg1)->dataSize(arg2);
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
int arg6 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
int val6 ;
int ecode6 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RTCM2DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RTCM2DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RTCM2DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RTCM2DataRecord_get" "', argument " "6"" of type '" "int""'");
}
arg6 = static_cast< int >(val6);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5,arg6);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
int arg3 ;
Gempa::CAPS::Time *arg4 = 0 ;
Gempa::CAPS::Time *arg5 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
Gempa::CAPS::DataRecord::ReadStatus result;
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_get" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RTCM2DataRecord_get" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RTCM2DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "4"" of type '" "Gempa::CAPS::Time const &""'");
}
arg4 = reinterpret_cast< Gempa::CAPS::Time * >(argp4);
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "RTCM2DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp5) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_get" "', argument " "5"" of type '" "Gempa::CAPS::Time const &""'");
}
arg5 = reinterpret_cast< Gempa::CAPS::Time * >(argp5);
result = (arg1)->get(*arg2,arg3,(Gempa::CAPS::Time const &)*arg4,(Gempa::CAPS::Time const &)*arg5);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::DataRecord::ReadStatus(static_cast< const Gempa::CAPS::DataRecord::ReadStatus& >(result))), SWIGTYPE_p_Gempa__CAPS__DataRecord__ReadStatus, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_get(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[7] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_get", 0, 6, argv))) SWIG_fail;
--argc;
if (argc == 5) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_RTCM2DataRecord_get__SWIG_1(self, argc, argv);
}
}
}
}
}
}
if (argc == 6) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__streambuf, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_NO_NULL | 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[5], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_RTCM2DataRecord_get__SWIG_0(self, argc, argv);
}
}
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'RTCM2DataRecord_get'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::RTCM2DataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &,int)\n"
" Gempa::CAPS::RTCM2DataRecord::get(std::streambuf &,int,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_put(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
std::streambuf *arg2 = 0 ;
bool arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "RTCM2DataRecord_put", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_put" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RTCM2DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RTCM2DataRecord_put" "', argument " "2"" of type '" "std::streambuf &""'");
}
arg2 = reinterpret_cast< std::streambuf * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RTCM2DataRecord_put" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = (bool)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->put(*arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_RTCM2DataRecord_packetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::PacketType result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RTCM2DataRecord_packetType" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
result = (Gempa::CAPS::PacketType)((Gempa::CAPS::RTCM2DataRecord const *)arg1)->packetType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_RTCM2DataRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::RTCM2DataRecord *arg1 = (Gempa::CAPS::RTCM2DataRecord *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RTCM2DataRecord" "', argument " "1"" of type '" "Gempa::CAPS::RTCM2DataRecord *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::RTCM2DataRecord * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *RTCM2DataRecord_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__RTCM2DataRecord, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_new_Socket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_Socket", 0, 0, 0)) SWIG_fail;
result = (Gempa::CAPS::Socket *)new Gempa::CAPS::Socket();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__Socket, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_Socket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Socket" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket::Status arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Socket_toString" "', argument " "1"" of type '" "Gempa::CAPS::Socket::Status""'");
}
arg1 = static_cast< Gempa::CAPS::Socket::Status >(val1);
result = (char *)Gempa::CAPS::Socket::toString(arg1);
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_fd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_fd" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
result = (int)(arg1)->fd();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_isValid" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
result = (bool)(arg1)->isValid();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_shutdown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_shutdown" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
(arg1)->shutdown();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_close" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
(arg1)->close();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_send(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject *swig_obj[2] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "Socket_send", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_send" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Socket_send" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (int)(arg1)->send((char const *)arg2);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "Socket_write", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_write" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Socket_write" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Socket_write" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->write((char const *)arg2,arg3);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "Socket_read", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_read" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Socket_read" "', argument " "2"" of type '" "char *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Socket_read" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->read(arg2,arg3);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_flush" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
result = (int)(arg1)->flush();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_setSocketTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
int arg2 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
Gempa::CAPS::Socket::Status result;
if (!SWIG_Python_UnpackTuple(args, "Socket_setSocketTimeout", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_setSocketTimeout" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Socket_setSocketTimeout" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Socket_setSocketTimeout" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (Gempa::CAPS::Socket::Status)(arg1)->setSocketTimeout(arg2,arg3);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_setNonBlocking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::Socket::Device::Status result;
if (!SWIG_Python_UnpackTuple(args, "Socket_setNonBlocking", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_setNonBlocking" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Socket_setNonBlocking" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = (arg1)->setNonBlocking(arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Socket::Device::Status(static_cast< const Gempa::CAPS::Socket::Device::Status& >(result))), SWIGTYPE_p_Gempa__CAPS__Socket__Device__Status, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
std::string *arg2 = 0 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
Gempa::CAPS::Socket::Status result;
if (!SWIG_Python_UnpackTuple(args, "Socket_connect", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_connect" "', argument " "1"" of type '" "Gempa::CAPS::Socket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Socket_connect" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Socket_connect" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Socket_connect" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
result = (Gempa::CAPS::Socket::Status)(arg1)->connect((std::string const &)*arg2,arg3);
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_Socket_rx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Socket::count_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_rx" "', argument " "1"" of type '" "Gempa::CAPS::Socket const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
result = (Gempa::CAPS::Socket::count_t)((Gempa::CAPS::Socket const *)arg1)->rx();
resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_Socket_tx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::Socket *arg1 = (Gempa::CAPS::Socket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Socket::count_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__Socket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Socket_tx" "', argument " "1"" of type '" "Gempa::CAPS::Socket const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::Socket * >(argp1);
result = (Gempa::CAPS::Socket::count_t)((Gempa::CAPS::Socket const *)arg1)->tx();
resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *Socket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__Socket, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *Socket_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_SSLSocket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *result = 0 ;
if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
result = (Gempa::CAPS::SSLSocket *)new Gempa::CAPS::SSLSocket();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__SSLSocket, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SSLSocket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
SSL_CTX *arg1 = (SSL_CTX *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Gempa::CAPS::SSLSocket *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_SSL_CTX, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SSLSocket" "', argument " "1"" of type '" "SSL_CTX *""'");
}
arg1 = reinterpret_cast< SSL_CTX * >(argp1);
result = (Gempa::CAPS::SSLSocket *)new Gempa::CAPS::SSLSocket(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__SSLSocket, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SSLSocket(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[2] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_SSLSocket", 0, 1, argv))) SWIG_fail;
--argc;
if (argc == 0) {
return _wrap_new_SSLSocket__SWIG_0(self, argc, argv);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SSL_CTX, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SSLSocket__SWIG_1(self, argc, argv);
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SSLSocket'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::SSLSocket::SSLSocket()\n"
" Gempa::CAPS::SSLSocket::SSLSocket(SSL_CTX *)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_delete_SSLSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SSLSocket" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SSLSocket_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "SSLSocket_write", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_write" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SSLSocket_write" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SSLSocket_write" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->write((char const *)arg2,arg3);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_SSLSocket_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "SSLSocket_read", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_read" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SSLSocket_read" "', argument " "2"" of type '" "char *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SSLSocket_read" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->read(arg2,arg3);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_SSLSocket_connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
std::string *arg2 = 0 ;
uint16_t arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
unsigned short val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
Gempa::CAPS::Socket::Status result;
if (!SWIG_Python_UnpackTuple(args, "SSLSocket_connect", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_connect" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SSLSocket_connect" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SSLSocket_connect" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SSLSocket_connect" "', argument " "3"" of type '" "uint16_t""'");
}
arg3 = static_cast< uint16_t >(val3);
result = (Gempa::CAPS::Socket::Status)(arg1)->connect((std::string const &)*arg2,arg3);
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_SSLSocket_sessionID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
unsigned char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_sessionID" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
result = (unsigned char *)((Gempa::CAPS::SSLSocket const *)arg1)->sessionID();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SSLSocket_sessionIDLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
unsigned int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_sessionIDLength" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket const *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
result = (unsigned int)((Gempa::CAPS::SSLSocket const *)arg1)->sessionIDLength();
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SSLSocket_peerCertificate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::SSLSocket *arg1 = (Gempa::CAPS::SSLSocket *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
X509 *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__SSLSocket, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SSLSocket_peerCertificate" "', argument " "1"" of type '" "Gempa::CAPS::SSLSocket *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::SSLSocket * >(argp1);
result = (X509 *)(arg1)->peerCertificate();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SSLSocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__SSLSocket, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *SSLSocket_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_charArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
size_t arg1 ;
size_t val1 ;
int ecode1 = 0 ;
PyObject *swig_obj[1] ;
charArray *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_charArray" "', argument " "1"" of type '" "size_t""'");
}
arg1 = static_cast< size_t >(val1);
result = (charArray *)new_charArray(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_charArray, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_charArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
charArray *arg1 = (charArray *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_charArray, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_charArray" "', argument " "1"" of type '" "charArray *""'");
}
arg1 = reinterpret_cast< charArray * >(argp1);
delete_charArray(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_charArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
charArray *arg1 = (charArray *) 0 ;
size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
char result;
if (!SWIG_Python_UnpackTuple(args, "charArray___getitem__", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_charArray, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charArray___getitem__" "', argument " "1"" of type '" "charArray *""'");
}
arg1 = reinterpret_cast< charArray * >(argp1);
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "charArray___getitem__" "', argument " "2"" of type '" "size_t""'");
}
arg2 = static_cast< size_t >(val2);
result = (char)charArray___getitem__(arg1,arg2);
resultobj = SWIG_From_char(static_cast< char >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_charArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
charArray *arg1 = (charArray *) 0 ;
size_t arg2 ;
char arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
char val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "charArray___setitem__", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_charArray, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charArray___setitem__" "', argument " "1"" of type '" "charArray *""'");
}
arg1 = reinterpret_cast< charArray * >(argp1);
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "charArray___setitem__" "', argument " "2"" of type '" "size_t""'");
}
arg2 = static_cast< size_t >(val2);
ecode3 = SWIG_AsVal_char(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "charArray___setitem__" "', argument " "3"" of type '" "char""'");
}
arg3 = static_cast< char >(val3);
charArray___setitem__(arg1,arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_charArray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
charArray *arg1 = (charArray *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
char *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_charArray, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charArray_cast" "', argument " "1"" of type '" "charArray *""'");
}
arg1 = reinterpret_cast< charArray * >(argp1);
result = (char *)charArray_cast(arg1);
resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_charArray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
PyObject *swig_obj[1] ;
charArray *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charArray_frompointer" "', argument " "1"" of type '" "char *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
result = (charArray *)charArray_frompointer(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_charArray, 0 | 0 );
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return resultobj;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return NULL;
}
SWIGINTERN PyObject *charArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_charArray, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *charArray_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_new_arraybuf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
int arg2 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int val2 ;
int ecode2 = 0 ;
Gempa::CAPS::arraybuf *result = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_arraybuf" "', argument " "1"" of type '" "char const *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_arraybuf" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = (Gempa::CAPS::arraybuf *)new Gempa::CAPS::arraybuf((char const *)arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__arraybuf, SWIG_POINTER_NEW | 0 );
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return resultobj;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return NULL;
}
SWIGINTERN PyObject *_wrap_new_arraybuf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
int res1 = SWIG_OLDOBJ ;
Gempa::CAPS::arraybuf *result = 0 ;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_arraybuf" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_arraybuf" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
result = (Gempa::CAPS::arraybuf *)new Gempa::CAPS::arraybuf((std::string const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gempa__CAPS__arraybuf, 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_arraybuf(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "new_arraybuf", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_arraybuf__SWIG_1(self, argc, argv);
}
}
if (argc == 2) {
int _v;
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_arraybuf__SWIG_0(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_arraybuf'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::arraybuf::arraybuf(char const *,int)\n"
" Gempa::CAPS::arraybuf::arraybuf(std::string const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_arraybuf_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject *swig_obj[3] ;
if (!SWIG_Python_UnpackTuple(args, "arraybuf_reset", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_reset" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arraybuf_reset" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arraybuf_reset" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
(arg1)->reset((char const *)arg2,arg3);
resultobj = SWIG_Py_Void();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_arraybuf_seekoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
Gempa::CAPS::arraybuf::off_type arg2 ;
std::ios_base::seekdir arg3 ;
std::ios_base::openmode arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 ;
int res3 = 0 ;
void *argp4 ;
int res4 = 0 ;
PyObject *swig_obj[4] ;
Gempa::CAPS::arraybuf::pos_type result;
if (!SWIG_Python_UnpackTuple(args, "arraybuf_seekoff", 4, 4, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_seekoff" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
{
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf__off_type, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arraybuf_seekoff" "', argument " "2"" of type '" "Gempa::CAPS::arraybuf::off_type""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_seekoff" "', argument " "2"" of type '" "Gempa::CAPS::arraybuf::off_type""'");
} else {
Gempa::CAPS::arraybuf::off_type * temp = reinterpret_cast< Gempa::CAPS::arraybuf::off_type * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
{
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__ios_base__seekdir, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arraybuf_seekoff" "', argument " "3"" of type '" "std::ios_base::seekdir""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_seekoff" "', argument " "3"" of type '" "std::ios_base::seekdir""'");
} else {
std::ios_base::seekdir * temp = reinterpret_cast< std::ios_base::seekdir * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
{
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__ios_base__openmode, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "arraybuf_seekoff" "', argument " "4"" of type '" "std::ios_base::openmode""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_seekoff" "', argument " "4"" of type '" "std::ios_base::openmode""'");
} else {
std::ios_base::openmode * temp = reinterpret_cast< std::ios_base::openmode * >(argp4);
arg4 = *temp;
if (SWIG_IsNewObj(res4)) delete temp;
}
}
result = (arg1)->seekoff(arg2,arg3,arg4);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::arraybuf::pos_type(static_cast< const Gempa::CAPS::arraybuf::pos_type& >(result))), SWIGTYPE_p_std__streambuf__pos_type, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_arraybuf_seekpos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
Gempa::CAPS::arraybuf::pos_type arg2 ;
std::ios_base::openmode arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
Gempa::CAPS::arraybuf::pos_type result;
if (!SWIG_Python_UnpackTuple(args, "arraybuf_seekpos", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_seekpos" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
{
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__streambuf__pos_type, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arraybuf_seekpos" "', argument " "2"" of type '" "Gempa::CAPS::arraybuf::pos_type""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_seekpos" "', argument " "2"" of type '" "Gempa::CAPS::arraybuf::pos_type""'");
} else {
Gempa::CAPS::arraybuf::pos_type * temp = reinterpret_cast< Gempa::CAPS::arraybuf::pos_type * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
{
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__ios_base__openmode, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arraybuf_seekpos" "', argument " "3"" of type '" "std::ios_base::openmode""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_seekpos" "', argument " "3"" of type '" "std::ios_base::openmode""'");
} else {
std::ios_base::openmode * temp = reinterpret_cast< std::ios_base::openmode * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
result = (arg1)->seekpos(arg2,arg3);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::arraybuf::pos_type(static_cast< const Gempa::CAPS::arraybuf::pos_type& >(result))), SWIGTYPE_p_std__streambuf__pos_type, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_arraybuf_xsgetn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
char *arg2 = (char *) 0 ;
std::streamsize arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
void *argp3 ;
int res3 = 0 ;
PyObject *swig_obj[3] ;
std::streamsize result;
if (!SWIG_Python_UnpackTuple(args, "arraybuf_xsgetn", 3, 3, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_xsgetn" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arraybuf_xsgetn" "', argument " "2"" of type '" "char *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
{
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__streamsize, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arraybuf_xsgetn" "', argument " "3"" of type '" "std::streamsize""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arraybuf_xsgetn" "', argument " "3"" of type '" "std::streamsize""'");
} else {
std::streamsize * temp = reinterpret_cast< std::streamsize * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
result = (arg1)->xsgetn(arg2,arg3);
resultobj = SWIG_NewPointerObj((new std::streamsize(static_cast< const std::streamsize& >(result))), SWIGTYPE_p_std__streamsize, SWIG_POINTER_OWN | 0 );
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_arraybuf_tellg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::streampos result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_tellg" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
result = (arg1)->tellg();
resultobj = SWIG_NewPointerObj((new std::streampos(static_cast< const std::streampos& >(result))), SWIGTYPE_p_std__streampos, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_arraybuf_tellp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::streampos result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arraybuf_tellp" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
result = (arg1)->tellp();
resultobj = SWIG_NewPointerObj((new std::streampos(static_cast< const std::streampos& >(result))), SWIGTYPE_p_std__streampos, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_arraybuf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::arraybuf *arg1 = (Gempa::CAPS::arraybuf *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_Gempa__CAPS__arraybuf, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_arraybuf" "', argument " "1"" of type '" "Gempa::CAPS::arraybuf *""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::arraybuf * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *arraybuf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_Gempa__CAPS__arraybuf, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *arraybuf_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_splitAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
unsigned short *arg2 = 0 ;
std::string *arg3 = 0 ;
unsigned short arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int res3 = SWIG_OLDOBJ ;
unsigned short val4 ;
int ecode4 = 0 ;
PyObject *swig_obj[4] ;
bool result;
if (!SWIG_Python_UnpackTuple(args, "splitAddress", 4, 4, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "splitAddress" "', argument " "1"" of type '" "std::string &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "splitAddress" "', argument " "1"" of type '" "std::string &""'");
}
arg1 = reinterpret_cast< std::string * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_unsigned_short, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "splitAddress" "', argument " "2"" of type '" "unsigned short &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "splitAddress" "', argument " "2"" of type '" "unsigned short &""'");
}
arg2 = reinterpret_cast< unsigned short * >(argp2);
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "splitAddress" "', argument " "3"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "splitAddress" "', argument " "3"" of type '" "std::string const &""'");
}
arg3 = ptr;
}
ecode4 = SWIG_AsVal_unsigned_SS_short(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "splitAddress" "', argument " "4"" of type '" "unsigned short""'");
}
arg4 = static_cast< unsigned short >(val4);
result = (bool)Gempa::CAPS::splitAddress(*arg1,*arg2,(std::string const &)*arg3,arg4);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (SWIG_IsNewObj(res3)) delete arg3;
return resultobj;
fail:
if (SWIG_IsNewObj(res3)) delete arg3;
return NULL;
}
SWIGINTERN PyObject *_wrap_tokenize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
char **arg1 = 0 ;
char *arg2 = (char *) 0 ;
int *arg3 = 0 ;
int *arg4 = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
PyObject *swig_obj[4] ;
char *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "tokenize", 4, 4, swig_obj)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tokenize" "', argument " "1"" of type '" "char const *&""'");
}
arg1 = &buf1;
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tokenize" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tokenize" "', argument " "3"" of type '" "int &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "tokenize" "', argument " "3"" of type '" "int &""'");
}
arg3 = reinterpret_cast< int * >(argp3);
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "tokenize" "', argument " "4"" of type '" "int &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "tokenize" "', argument " "4"" of type '" "int &""'");
}
arg4 = reinterpret_cast< int * >(argp4);
result = (char *)Gempa::CAPS::tokenize((char const *&)*arg1,(char const *)arg2,*arg3,*arg4);
resultobj = SWIG_FromCharPtr((const char *)result);
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_trim__SWIG_0(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
char **arg1 = 0 ;
int *arg2 = 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
char *result = 0 ;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "char const *&""'");
}
arg1 = &buf1;
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "trim" "', argument " "2"" of type '" "int &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "2"" of type '" "int &""'");
}
arg2 = reinterpret_cast< int * >(argp2);
result = (char *)Gempa::CAPS::trim((char const *&)*arg1,*arg2);
resultobj = SWIG_FromCharPtr((const char *)result);
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return resultobj;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return NULL;
}
SWIGINTERN PyObject *_wrap_trim__SWIG_1(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
int res1 = SWIG_OLDOBJ ;
std::string result;
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
result = Gempa::CAPS::trim((std::string const &)*arg1);
resultobj = SWIG_From_std_string(static_cast< std::string >(result));
if (SWIG_IsNewObj(res1)) delete arg1;
return resultobj;
fail:
if (SWIG_IsNewObj(res1)) delete arg1;
return NULL;
}
SWIGINTERN PyObject *_wrap_trim(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[3] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "trim", 0, 2, argv))) SWIG_fail;
--argc;
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_trim__SWIG_1(self, argc, argv);
}
}
if (argc == 2) {
int _v;
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_trim__SWIG_0(self, argc, argv);
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'trim'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::trim(char const *&,int &)\n"
" Gempa::CAPS::trim(std::string const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_timeToTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = 0 ;
Gempa::CAPS::Time *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "timeToTimestamp", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "timeToTimestamp" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeToTimestamp" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__Time, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "timeToTimestamp" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeToTimestamp" "', argument " "2"" of type '" "Gempa::CAPS::Time const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::Time * >(argp2);
Gempa::CAPS::timeToTimestamp(*arg1,(Gempa::CAPS::Time const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_3(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int *arg1 = 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
int arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
arg1 = reinterpret_cast< int * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "str2int" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "str2int" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2,arg3,arg4);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_4(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int *arg1 = 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
arg1 = reinterpret_cast< int * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "str2int" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_5(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
int *arg1 = 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_int, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "int &""'");
}
arg1 = reinterpret_cast< int * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_6(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
uint16_t *arg1 = 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
int arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool result;
if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_unsigned_short, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
arg1 = reinterpret_cast< uint16_t * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "str2int" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "str2int" "', argument " "4"" of type '" "int""'");
}
arg4 = static_cast< int >(val4);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2,arg3,arg4);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_7(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
uint16_t *arg1 = 0 ;
char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
bool result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_unsigned_short, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
arg1 = reinterpret_cast< uint16_t * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "str2int" "', argument " "3"" of type '" "int""'");
}
arg3 = static_cast< int >(val3);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int__SWIG_8(PyObject *SWIGUNUSEDPARM(self), Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
uint16_t *arg1 = 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
bool result;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_unsigned_short, 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "str2int" "', argument " "1"" of type '" "uint16_t &""'");
}
arg1 = reinterpret_cast< uint16_t * >(argp1);
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str2int" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (bool)Gempa::CAPS::str2int(*arg1,(char const *)arg2);
resultobj = SWIG_From_bool(static_cast< bool >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_str2int(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[5] = {
0
};
if (!(argc = SWIG_Python_UnpackTuple(args, "str2int", 0, 4, argv))) SWIG_fail;
--argc;
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_int, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_str2int__SWIG_5(self, argc, argv);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_short, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_str2int__SWIG_8(self, argc, argv);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_short, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_str2int__SWIG_7(self, argc, argv);
}
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_int, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_str2int__SWIG_4(self, argc, argv);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_int, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_str2int__SWIG_3(self, argc, argv);
}
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_short, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_int(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_str2int__SWIG_6(self, argc, argv);
}
}
}
}
}
fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'str2int'.\n"
" Possible C/C++ prototypes are:\n"
" Gempa::CAPS::str2int(int &,char const *,int,int)\n"
" Gempa::CAPS::str2int(int &,char const *,int)\n"
" Gempa::CAPS::str2int(int &,char const *)\n"
" Gempa::CAPS::str2int(uint16_t &,char const *,int,int)\n"
" Gempa::CAPS::str2int(uint16_t &,char const *,int)\n"
" Gempa::CAPS::str2int(uint16_t &,char const *)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_timestampToTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::TimeStamp *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
Gempa::CAPS::Time result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__TimeStamp, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "timestampToTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timestampToTime" "', argument " "1"" of type '" "Gempa::CAPS::TimeStamp const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::TimeStamp * >(argp1);
result = Gempa::CAPS::timestampToTime((Gempa::CAPS::TimeStamp const &)*arg1);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::Time(static_cast< const Gempa::CAPS::Time& >(result))), SWIGTYPE_p_Gempa__CAPS__Time, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_samplesToTimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord::Header *arg1 = 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
Gempa::CAPS::TimeSpan result;
if (!SWIG_Python_UnpackTuple(args, "samplesToTimeSpan", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "samplesToTimeSpan" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "samplesToTimeSpan" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "samplesToTimeSpan" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = Gempa::CAPS::samplesToTimeSpan((Gempa::CAPS::DataRecord::Header const &)*arg1,arg2);
resultobj = SWIG_NewPointerObj((new Gempa::CAPS::TimeSpan(static_cast< const Gempa::CAPS::TimeSpan& >(result))), SWIGTYPE_p_Gempa__CAPS__TimeSpan, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_timeSpanToSamples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord::Header *arg1 = 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "timeSpanToSamples", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "timeSpanToSamples" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamples" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "timeSpanToSamples" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamples" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (int)Gempa::CAPS::timeSpanToSamples((Gempa::CAPS::DataRecord::Header const &)*arg1,(Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_timeSpanToSamplesCeil(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord::Header *arg1 = 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "timeSpanToSamplesCeil", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "timeSpanToSamplesCeil" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamplesCeil" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "timeSpanToSamplesCeil" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamplesCeil" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (int)Gempa::CAPS::timeSpanToSamplesCeil((Gempa::CAPS::DataRecord::Header const &)*arg1,(Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_timeSpanToSamplesFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataRecord::Header *arg1 = 0 ;
Gempa::CAPS::TimeSpan *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
int result;
if (!SWIG_Python_UnpackTuple(args, "timeSpanToSamplesFloor", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_Gempa__CAPS__DataRecord__Header, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "timeSpanToSamplesFloor" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamplesFloor" "', argument " "1"" of type '" "Gempa::CAPS::DataRecord::Header const &""'");
}
arg1 = reinterpret_cast< Gempa::CAPS::DataRecord::Header * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Gempa__CAPS__TimeSpan, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "timeSpanToSamplesFloor" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "timeSpanToSamplesFloor" "', argument " "2"" of type '" "Gempa::CAPS::TimeSpan const &""'");
}
arg2 = reinterpret_cast< Gempa::CAPS::TimeSpan * >(argp2);
result = (int)Gempa::CAPS::timeSpanToSamplesFloor((Gempa::CAPS::DataRecord::Header const &)*arg1,(Gempa::CAPS::TimeSpan const &)*arg2);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_dataTypeSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Gempa::CAPS::DataType arg1 ;
int val1 ;
int ecode1 = 0 ;
PyObject *swig_obj[1] ;
uint8_t result;
if (!args) SWIG_fail;
swig_obj[0] = args;
ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "dataTypeSize" "', argument " "1"" of type '" "Gempa::CAPS::DataType""'");
}
arg1 = static_cast< Gempa::CAPS::DataType >(val1);
result = (uint8_t)Gempa::CAPS::dataTypeSize(arg1);
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
return resultobj;
fail:
return NULL;
}
static PyMethodDef SwigMethods[] = {
{ "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
{ "new_TimeSpan", _wrap_new_TimeSpan, METH_VARARGS, NULL},
{ "TimeSpan___eq__", _wrap_TimeSpan___eq__, METH_VARARGS, NULL},
{ "TimeSpan___ne__", _wrap_TimeSpan___ne__, METH_VARARGS, NULL},
{ "TimeSpan___lt__", _wrap_TimeSpan___lt__, METH_VARARGS, NULL},
{ "TimeSpan___le__", _wrap_TimeSpan___le__, METH_VARARGS, NULL},
{ "TimeSpan___gt__", _wrap_TimeSpan___gt__, METH_VARARGS, NULL},
{ "TimeSpan___ge__", _wrap_TimeSpan___ge__, METH_VARARGS, NULL},
{ "TimeSpan___add__", _wrap_TimeSpan___add__, METH_VARARGS, NULL},
{ "TimeSpan___sub__", _wrap_TimeSpan___sub__, METH_VARARGS, NULL},
{ "TimeSpan___iadd__", _wrap_TimeSpan___iadd__, METH_VARARGS, NULL},
{ "TimeSpan___isub__", _wrap_TimeSpan___isub__, METH_VARARGS, NULL},
{ "TimeSpan_abs", _wrap_TimeSpan_abs, METH_O, NULL},
{ "TimeSpan_seconds", _wrap_TimeSpan_seconds, METH_O, NULL},
{ "TimeSpan_microseconds", _wrap_TimeSpan_microseconds, METH_O, NULL},
{ "TimeSpan_length", _wrap_TimeSpan_length, METH_O, NULL},
{ "TimeSpan_set", _wrap_TimeSpan_set, METH_VARARGS, NULL},
{ "TimeSpan_setUSecs", _wrap_TimeSpan_setUSecs, METH_VARARGS, NULL},
{ "TimeSpan_elapsedTime", _wrap_TimeSpan_elapsedTime, METH_VARARGS, NULL},
{ "delete_TimeSpan", _wrap_delete_TimeSpan, METH_O, NULL},
{ "TimeSpan_swigregister", TimeSpan_swigregister, METH_O, NULL},
{ "TimeSpan_swiginit", TimeSpan_swiginit, METH_VARARGS, NULL},
{ "new_Time", _wrap_new_Time, METH_VARARGS, NULL},
{ "Time___nonzero__", _wrap_Time___nonzero__, METH_O, NULL},
{ "Time___add__", _wrap_Time___add__, METH_VARARGS, NULL},
{ "Time___sub__", _wrap_Time___sub__, METH_VARARGS, NULL},
{ "Time___iadd__", _wrap_Time___iadd__, METH_VARARGS, NULL},
{ "Time___isub__", _wrap_Time___isub__, METH_VARARGS, NULL},
{ "Time_set", _wrap_Time_set, METH_VARARGS, NULL},
{ "Time_get", _wrap_Time_get, METH_VARARGS, NULL},
{ "Time_get2", _wrap_Time_get2, METH_VARARGS, NULL},
{ "Time_LocalTime", _wrap_Time_LocalTime, METH_NOARGS, NULL},
{ "Time_GMT", _wrap_Time_GMT, METH_NOARGS, NULL},
{ "Time_FromYearDay", _wrap_Time_FromYearDay, METH_VARARGS, NULL},
{ "Time_localtime", _wrap_Time_localtime, METH_O, NULL},
{ "Time_gmt", _wrap_Time_gmt, METH_O, NULL},
{ "Time_toLocalTime", _wrap_Time_toLocalTime, METH_O, NULL},
{ "Time_toGMT", _wrap_Time_toGMT, METH_O, NULL},
{ "Time_valid", _wrap_Time_valid, METH_O, NULL},
{ "Time_toString", _wrap_Time_toString, METH_VARARGS, NULL},
{ "Time_iso", _wrap_Time_iso, METH_O, NULL},
{ "Time_fromString", _wrap_Time_fromString, METH_VARARGS, NULL},
{ "Time_FromString", _wrap_Time_FromString, METH_VARARGS, NULL},
{ "delete_Time", _wrap_delete_Time, METH_O, NULL},
{ "Time_swigregister", Time_swigregister, METH_O, NULL},
{ "Time_swiginit", Time_swiginit, METH_VARARGS, NULL},
{ "UOM_str_set", _wrap_UOM_str_set, METH_VARARGS, NULL},
{ "UOM_str_get", _wrap_UOM_str_get, METH_O, NULL},
{ "UOM_ID_set", _wrap_UOM_ID_set, METH_VARARGS, NULL},
{ "UOM_ID_get", _wrap_UOM_ID_get, METH_O, NULL},
{ "new_UOM", _wrap_new_UOM, METH_NOARGS, NULL},
{ "delete_UOM", _wrap_delete_UOM, METH_O, NULL},
{ "UOM_swigregister", UOM_swigregister, METH_O, NULL},
{ "UOM_swiginit", UOM_swiginit, METH_VARARGS, NULL},
{ "Quality_str_set", _wrap_Quality_str_set, METH_VARARGS, NULL},
{ "Quality_str_get", _wrap_Quality_str_get, METH_O, NULL},
{ "Quality_ID_set", _wrap_Quality_ID_set, METH_VARARGS, NULL},
{ "Quality_ID_get", _wrap_Quality_ID_get, METH_O, NULL},
{ "new_Quality", _wrap_new_Quality, METH_NOARGS, NULL},
{ "delete_Quality", _wrap_delete_Quality, METH_O, NULL},
{ "Quality_swigregister", Quality_swigregister, METH_O, NULL},
{ "Quality_swiginit", Quality_swiginit, METH_VARARGS, NULL},
{ "TimeStamp_year_set", _wrap_TimeStamp_year_set, METH_VARARGS, NULL},
{ "TimeStamp_year_get", _wrap_TimeStamp_year_get, METH_O, NULL},
{ "TimeStamp_yday_set", _wrap_TimeStamp_yday_set, METH_VARARGS, NULL},
{ "TimeStamp_yday_get", _wrap_TimeStamp_yday_get, METH_O, NULL},
{ "TimeStamp_hour_set", _wrap_TimeStamp_hour_set, METH_VARARGS, NULL},
{ "TimeStamp_hour_get", _wrap_TimeStamp_hour_get, METH_O, NULL},
{ "TimeStamp_minute_set", _wrap_TimeStamp_minute_set, METH_VARARGS, NULL},
{ "TimeStamp_minute_get", _wrap_TimeStamp_minute_get, METH_O, NULL},
{ "TimeStamp_second_set", _wrap_TimeStamp_second_set, METH_VARARGS, NULL},
{ "TimeStamp_second_get", _wrap_TimeStamp_second_get, METH_O, NULL},
{ "TimeStamp_unused_set", _wrap_TimeStamp_unused_set, METH_VARARGS, NULL},
{ "TimeStamp_unused_get", _wrap_TimeStamp_unused_get, METH_O, NULL},
{ "TimeStamp_usec_set", _wrap_TimeStamp_usec_set, METH_VARARGS, NULL},
{ "TimeStamp_usec_get", _wrap_TimeStamp_usec_get, METH_O, NULL},
{ "new_TimeStamp", _wrap_new_TimeStamp, METH_NOARGS, NULL},
{ "delete_TimeStamp", _wrap_delete_TimeStamp, METH_O, NULL},
{ "TimeStamp_swigregister", TimeStamp_swigregister, METH_O, NULL},
{ "TimeStamp_swiginit", TimeStamp_swiginit, METH_VARARGS, NULL},
{ "new_PacketDataHeader", _wrap_new_PacketDataHeader, METH_VARARGS, NULL},
{ "PacketDataHeader_version_set", _wrap_PacketDataHeader_version_set, METH_VARARGS, NULL},
{ "PacketDataHeader_version_get", _wrap_PacketDataHeader_version_get, METH_O, NULL},
{ "PacketDataHeader_packetType_set", _wrap_PacketDataHeader_packetType_set, METH_VARARGS, NULL},
{ "PacketDataHeader_packetType_get", _wrap_PacketDataHeader_packetType_get, METH_O, NULL},
{ "PacketDataHeader_unitOfMeasurement_set", _wrap_PacketDataHeader_unitOfMeasurement_set, METH_VARARGS, NULL},
{ "PacketDataHeader_unitOfMeasurement_get", _wrap_PacketDataHeader_unitOfMeasurement_get, METH_O, NULL},
{ "PacketDataHeader_setUOM", _wrap_PacketDataHeader_setUOM, METH_VARARGS, NULL},
{ "PacketDataHeader_uom", _wrap_PacketDataHeader_uom, METH_VARARGS, NULL},
{ "PacketDataHeader___ne__", _wrap_PacketDataHeader___ne__, METH_VARARGS, NULL},
{ "PacketDataHeader_dataSize", _wrap_PacketDataHeader_dataSize, METH_O, NULL},
{ "PacketDataHeader_put", _wrap_PacketDataHeader_put, METH_VARARGS, NULL},
{ "PacketDataHeader_get", _wrap_PacketDataHeader_get, METH_VARARGS, NULL},
{ "delete_PacketDataHeader", _wrap_delete_PacketDataHeader, METH_O, NULL},
{ "PacketDataHeader_swigregister", PacketDataHeader_swigregister, METH_O, NULL},
{ "PacketDataHeader_swiginit", PacketDataHeader_swiginit, METH_VARARGS, NULL},
{ "new_PacketDataHeaderV2", _wrap_new_PacketDataHeaderV2, METH_NOARGS, NULL},
{ "PacketDataHeaderV2_samplingFrequencyNumerator_set", _wrap_PacketDataHeaderV2_samplingFrequencyNumerator_set, METH_VARARGS, NULL},
{ "PacketDataHeaderV2_samplingFrequencyNumerator_get", _wrap_PacketDataHeaderV2_samplingFrequencyNumerator_get, METH_O, NULL},
{ "PacketDataHeaderV2_samplingFrequencyDenominator_set", _wrap_PacketDataHeaderV2_samplingFrequencyDenominator_set, METH_VARARGS, NULL},
{ "PacketDataHeaderV2_samplingFrequencyDenominator_get", _wrap_PacketDataHeaderV2_samplingFrequencyDenominator_get, METH_O, NULL},
{ "PacketDataHeaderV2_quality_set", _wrap_PacketDataHeaderV2_quality_set, METH_VARARGS, NULL},
{ "PacketDataHeaderV2_quality_get", _wrap_PacketDataHeaderV2_quality_get, METH_O, NULL},
{ "PacketDataHeaderV2___ne__", _wrap_PacketDataHeaderV2___ne__, METH_VARARGS, NULL},
{ "PacketDataHeaderV2_dataSize", _wrap_PacketDataHeaderV2_dataSize, METH_O, NULL},
{ "PacketDataHeaderV2_put", _wrap_PacketDataHeaderV2_put, METH_VARARGS, NULL},
{ "PacketDataHeaderV2_get", _wrap_PacketDataHeaderV2_get, METH_VARARGS, NULL},
{ "delete_PacketDataHeaderV2", _wrap_delete_PacketDataHeaderV2, METH_O, NULL},
{ "PacketDataHeaderV2_swigregister", PacketDataHeaderV2_swigregister, METH_O, NULL},
{ "PacketDataHeaderV2_swiginit", PacketDataHeaderV2_swiginit, METH_VARARGS, NULL},
{ "PacketHeaderV1_SIDSize_set", _wrap_PacketHeaderV1_SIDSize_set, METH_VARARGS, NULL},
{ "PacketHeaderV1_SIDSize_get", _wrap_PacketHeaderV1_SIDSize_get, METH_O, NULL},
{ "PacketHeaderV1_size_set", _wrap_PacketHeaderV1_size_set, METH_VARARGS, NULL},
{ "PacketHeaderV1_size_get", _wrap_PacketHeaderV1_size_get, METH_O, NULL},
{ "PacketHeaderV1_put", _wrap_PacketHeaderV1_put, METH_VARARGS, NULL},
{ "PacketHeaderV1_dataSize", _wrap_PacketHeaderV1_dataSize, METH_O, NULL},
{ "new_PacketHeaderV1", _wrap_new_PacketHeaderV1, METH_NOARGS, NULL},
{ "delete_PacketHeaderV1", _wrap_delete_PacketHeaderV1, METH_O, NULL},
{ "PacketHeaderV1_swigregister", PacketHeaderV1_swigregister, METH_O, NULL},
{ "PacketHeaderV1_swiginit", PacketHeaderV1_swiginit, METH_VARARGS, NULL},
{ "PacketHeaderV2_SIDSize_set", _wrap_PacketHeaderV2_SIDSize_set, METH_VARARGS, NULL},
{ "PacketHeaderV2_SIDSize_get", _wrap_PacketHeaderV2_SIDSize_get, METH_O, NULL},
{ "PacketHeaderV2_size_set", _wrap_PacketHeaderV2_size_set, METH_VARARGS, NULL},
{ "PacketHeaderV2_size_get", _wrap_PacketHeaderV2_size_get, METH_O, NULL},
{ "PacketHeaderV2_put", _wrap_PacketHeaderV2_put, METH_VARARGS, NULL},
{ "PacketHeaderV2_dataSize", _wrap_PacketHeaderV2_dataSize, METH_O, NULL},
{ "new_PacketHeaderV2", _wrap_new_PacketHeaderV2, METH_NOARGS, NULL},
{ "delete_PacketHeaderV2", _wrap_delete_PacketHeaderV2, METH_O, NULL},
{ "PacketHeaderV2_swigregister", PacketHeaderV2_swigregister, METH_O, NULL},
{ "PacketHeaderV2_swiginit", PacketHeaderV2_swiginit, METH_VARARGS, NULL},
{ "ResponseHeader_id_set", _wrap_ResponseHeader_id_set, METH_VARARGS, NULL},
{ "ResponseHeader_id_get", _wrap_ResponseHeader_id_get, METH_O, NULL},
{ "ResponseHeader_size_set", _wrap_ResponseHeader_size_set, METH_VARARGS, NULL},
{ "ResponseHeader_size_get", _wrap_ResponseHeader_size_get, METH_O, NULL},
{ "ResponseHeader_get", _wrap_ResponseHeader_get, METH_VARARGS, NULL},
{ "new_ResponseHeader", _wrap_new_ResponseHeader, METH_NOARGS, NULL},
{ "delete_ResponseHeader", _wrap_delete_ResponseHeader, METH_O, NULL},
{ "ResponseHeader_swigregister", ResponseHeader_swigregister, METH_O, NULL},
{ "ResponseHeader_swiginit", ResponseHeader_swiginit, METH_VARARGS, NULL},
{ "delete_DataRecord", _wrap_delete_DataRecord, METH_O, NULL},
{ "DataRecord_formatName", _wrap_DataRecord_formatName, METH_O, NULL},
{ "DataRecord_readMetaData", _wrap_DataRecord_readMetaData, METH_VARARGS, NULL},
{ "DataRecord_canTrim", _wrap_DataRecord_canTrim, METH_O, NULL},
{ "DataRecord_canMerge", _wrap_DataRecord_canMerge, METH_O, NULL},
{ "DataRecord_trim", _wrap_DataRecord_trim, METH_VARARGS, NULL},
{ "DataRecord_dataSize", _wrap_DataRecord_dataSize, METH_VARARGS, NULL},
{ "DataRecord_get", _wrap_DataRecord_get, METH_VARARGS, NULL},
{ "DataRecord_put", _wrap_DataRecord_put, METH_VARARGS, NULL},
{ "DataRecord_header", _wrap_DataRecord_header, METH_O, NULL},
{ "DataRecord_startTime", _wrap_DataRecord_startTime, METH_O, NULL},
{ "DataRecord_endTime", _wrap_DataRecord_endTime, METH_O, NULL},
{ "DataRecord_packetType", _wrap_DataRecord_packetType, METH_O, NULL},
{ "DataRecord_buffer", _wrap_DataRecord_buffer, METH_O, NULL},
{ "DataRecord_data", _wrap_DataRecord_data, METH_O, NULL},
{ "DataRecord_swigregister", DataRecord_swigregister, METH_O, NULL},
{ "RawPacket_header_set", _wrap_RawPacket_header_set, METH_VARARGS, NULL},
{ "RawPacket_header_get", _wrap_RawPacket_header_get, METH_O, NULL},
{ "RawPacket_SID_set", _wrap_RawPacket_SID_set, METH_VARARGS, NULL},
{ "RawPacket_SID_get", _wrap_RawPacket_SID_get, METH_O, NULL},
{ "RawPacket_data_set", _wrap_RawPacket_data_set, METH_VARARGS, NULL},
{ "RawPacket_data_get", _wrap_RawPacket_data_get, METH_O, NULL},
{ "RawPacket_record_set", _wrap_RawPacket_record_set, METH_VARARGS, NULL},
{ "RawPacket_record_get", _wrap_RawPacket_record_get, METH_O, NULL},
{ "new_RawPacket", _wrap_new_RawPacket, METH_NOARGS, NULL},
{ "delete_RawPacket", _wrap_delete_RawPacket, METH_O, NULL},
{ "RawPacket_swigregister", RawPacket_swigregister, METH_O, NULL},
{ "RawPacket_swiginit", RawPacket_swiginit, METH_VARARGS, NULL},
{ "MetaPacket_SID_set", _wrap_MetaPacket_SID_set, METH_VARARGS, NULL},
{ "MetaPacket_SID_get", _wrap_MetaPacket_SID_get, METH_O, NULL},
{ "MetaPacket_packetDataHeader_set", _wrap_MetaPacket_packetDataHeader_set, METH_VARARGS, NULL},
{ "MetaPacket_packetDataHeader_get", _wrap_MetaPacket_packetDataHeader_get, METH_O, NULL},
{ "MetaPacket_record_set", _wrap_MetaPacket_record_set, METH_VARARGS, NULL},
{ "MetaPacket_record_get", _wrap_MetaPacket_record_get, METH_O, NULL},
{ "MetaPacket_recordHeader_set", _wrap_MetaPacket_recordHeader_set, METH_VARARGS, NULL},
{ "MetaPacket_recordHeader_get", _wrap_MetaPacket_recordHeader_get, METH_O, NULL},
{ "MetaPacket_startTime_set", _wrap_MetaPacket_startTime_set, METH_VARARGS, NULL},
{ "MetaPacket_startTime_get", _wrap_MetaPacket_startTime_get, METH_O, NULL},
{ "MetaPacket_endTime_set", _wrap_MetaPacket_endTime_set, METH_VARARGS, NULL},
{ "MetaPacket_endTime_get", _wrap_MetaPacket_endTime_get, METH_O, NULL},
{ "MetaPacket_timestamp_set", _wrap_MetaPacket_timestamp_set, METH_VARARGS, NULL},
{ "MetaPacket_timestamp_get", _wrap_MetaPacket_timestamp_get, METH_O, NULL},
{ "new_MetaPacket", _wrap_new_MetaPacket, METH_NOARGS, NULL},
{ "delete_MetaPacket", _wrap_delete_MetaPacket, METH_O, NULL},
{ "MetaPacket_swigregister", MetaPacket_swigregister, METH_O, NULL},
{ "MetaPacket_swiginit", MetaPacket_swiginit, METH_VARARGS, NULL},
{ "new_Packet", _wrap_new_Packet, METH_VARARGS, NULL},
{ "Packet_clone", _wrap_Packet_clone, METH_O, NULL},
{ "Packet_buffer_set", _wrap_Packet_buffer_set, METH_VARARGS, NULL},
{ "Packet_buffer_get", _wrap_Packet_buffer_get, METH_O, NULL},
{ "Packet_record_set", _wrap_Packet_record_set, METH_VARARGS, NULL},
{ "Packet_record_get", _wrap_Packet_record_get, METH_O, NULL},
{ "Packet_networkCode_set", _wrap_Packet_networkCode_set, METH_VARARGS, NULL},
{ "Packet_networkCode_get", _wrap_Packet_networkCode_get, METH_O, NULL},
{ "Packet_stationCode_set", _wrap_Packet_stationCode_set, METH_VARARGS, NULL},
{ "Packet_stationCode_get", _wrap_Packet_stationCode_get, METH_O, NULL},
{ "Packet_locationCode_set", _wrap_Packet_locationCode_set, METH_VARARGS, NULL},
{ "Packet_locationCode_get", _wrap_Packet_locationCode_get, METH_O, NULL},
{ "Packet_channelCode_set", _wrap_Packet_channelCode_set, METH_VARARGS, NULL},
{ "Packet_channelCode_get", _wrap_Packet_channelCode_get, METH_O, NULL},
{ "Packet_streamID_set", _wrap_Packet_streamID_set, METH_VARARGS, NULL},
{ "Packet_streamID_get", _wrap_Packet_streamID_get, METH_O, NULL},
{ "Packet_dataType_set", _wrap_Packet_dataType_set, METH_VARARGS, NULL},
{ "Packet_dataType_get", _wrap_Packet_dataType_get, METH_O, NULL},
{ "Packet_dt_us_set", _wrap_Packet_dt_us_set, METH_VARARGS, NULL},
{ "Packet_dt_us_get", _wrap_Packet_dt_us_get, METH_O, NULL},
{ "Packet_uom_set", _wrap_Packet_uom_set, METH_VARARGS, NULL},
{ "Packet_uom_get", _wrap_Packet_uom_get, METH_O, NULL},
{ "Packet_timingQuality_set", _wrap_Packet_timingQuality_set, METH_VARARGS, NULL},
{ "Packet_timingQuality_get", _wrap_Packet_timingQuality_get, METH_O, NULL},
{ "Packet_size", _wrap_Packet_size, METH_O, NULL},
{ "delete_Packet", _wrap_delete_Packet, METH_O, NULL},
{ "Packet_swigregister", Packet_swigregister, METH_O, NULL},
{ "Packet_swiginit", Packet_swiginit, METH_VARARGS, NULL},
{ "new_AnyDataRecord", _wrap_new_AnyDataRecord, METH_NOARGS, NULL},
{ "AnyDataRecord_setType", _wrap_AnyDataRecord_setType, METH_VARARGS, NULL},
{ "AnyDataRecord_type", _wrap_AnyDataRecord_type, METH_O, NULL},
{ "AnyDataRecord_formatName", _wrap_AnyDataRecord_formatName, METH_O, NULL},
{ "AnyDataRecord_readMetaData", _wrap_AnyDataRecord_readMetaData, METH_VARARGS, NULL},
{ "AnyDataRecord_header", _wrap_AnyDataRecord_header, METH_O, NULL},
{ "AnyDataRecord_startTime", _wrap_AnyDataRecord_startTime, METH_O, NULL},
{ "AnyDataRecord_endTime", _wrap_AnyDataRecord_endTime, METH_O, NULL},
{ "AnyDataRecord_canTrim", _wrap_AnyDataRecord_canTrim, METH_O, NULL},
{ "AnyDataRecord_canMerge", _wrap_AnyDataRecord_canMerge, METH_O, NULL},
{ "AnyDataRecord_trim", _wrap_AnyDataRecord_trim, METH_VARARGS, NULL},
{ "AnyDataRecord_dataSize", _wrap_AnyDataRecord_dataSize, METH_VARARGS, NULL},
{ "AnyDataRecord_get", _wrap_AnyDataRecord_get, METH_VARARGS, NULL},
{ "AnyDataRecord_put", _wrap_AnyDataRecord_put, METH_VARARGS, NULL},
{ "AnyDataRecord_packetType", _wrap_AnyDataRecord_packetType, METH_O, NULL},
{ "AnyDataRecord_setStartTime", _wrap_AnyDataRecord_setStartTime, METH_VARARGS, NULL},
{ "AnyDataRecord_setEndTime", _wrap_AnyDataRecord_setEndTime, METH_VARARGS, NULL},
{ "AnyDataRecord_setSamplingFrequency", _wrap_AnyDataRecord_setSamplingFrequency, METH_VARARGS, NULL},
{ "AnyDataRecord_data", _wrap_AnyDataRecord_data, METH_O, NULL},
{ "AnyDataRecord_setData", _wrap_AnyDataRecord_setData, METH_VARARGS, NULL},
{ "delete_AnyDataRecord", _wrap_delete_AnyDataRecord, METH_O, NULL},
{ "AnyDataRecord_swigregister", AnyDataRecord_swigregister, METH_O, NULL},
{ "AnyDataRecord_swiginit", AnyDataRecord_swiginit, METH_VARARGS, NULL},
{ "SetLogHandler", _wrap_SetLogHandler, METH_VARARGS, NULL},
{ "new_SPClock", _wrap_new_SPClock, METH_VARARGS, NULL},
{ "SPClock_syncTime", _wrap_SPClock_syncTime, METH_VARARGS, NULL},
{ "SPClock_tick", _wrap_SPClock_tick, METH_O, NULL},
{ "SPClock_getTime", _wrap_SPClock_getTime, METH_VARARGS, NULL},
{ "SPClock_correction", _wrap_SPClock_correction, METH_O, NULL},
{ "SPClock_freqn_get", _wrap_SPClock_freqn_get, METH_O, NULL},
{ "SPClock_freqd_get", _wrap_SPClock_freqd_get, METH_O, NULL},
{ "delete_SPClock", _wrap_delete_SPClock, METH_O, NULL},
{ "SPClock_swigregister", SPClock_swigregister, METH_O, NULL},
{ "SPClock_swiginit", SPClock_swiginit, METH_VARARGS, NULL},
{ "delete_Encoder", _wrap_delete_Encoder, METH_O, NULL},
{ "Encoder_push", _wrap_Encoder_push, METH_VARARGS, NULL},
{ "Encoder_flush", _wrap_Encoder_flush, METH_O, NULL},
{ "Encoder_reset", _wrap_Encoder_reset, METH_O, NULL},
{ "Encoder_type", _wrap_Encoder_type, METH_O, NULL},
{ "Encoder_clk", _wrap_Encoder_clk, METH_O, NULL},
{ "Encoder_setStartTime", _wrap_Encoder_setStartTime, METH_VARARGS, NULL},
{ "Encoder_currentTime", _wrap_Encoder_currentTime, METH_O, NULL},
{ "Encoder_timingQuality", _wrap_Encoder_timingQuality, METH_O, NULL},
{ "Encoder_setTimingQuality", _wrap_Encoder_setTimingQuality, METH_VARARGS, NULL},
{ "Encoder_pop", _wrap_Encoder_pop, METH_O, NULL},
{ "Encoder_swigregister", Encoder_swigregister, METH_O, NULL},
{ "delete_EncoderFactory", _wrap_delete_EncoderFactory, METH_O, NULL},
{ "EncoderFactory_create", _wrap_EncoderFactory_create, METH_VARARGS, NULL},
{ "EncoderFactory_supportsRecord", _wrap_EncoderFactory_supportsRecord, METH_VARARGS, NULL},
{ "EncoderFactory_errorString", _wrap_EncoderFactory_errorString, METH_O, NULL},
{ "EncoderFactory_swigregister", EncoderFactory_swigregister, METH_O, NULL},
{ "MSEEDEncoderFactory_setRecordLength", _wrap_MSEEDEncoderFactory_setRecordLength, METH_VARARGS, NULL},
{ "delete_MSEEDEncoderFactory", _wrap_delete_MSEEDEncoderFactory, METH_O, NULL},
{ "MSEEDEncoderFactory_swigregister", MSEEDEncoderFactory_swigregister, METH_O, NULL},
{ "SteimEncoderFactory_supportsRecord", _wrap_SteimEncoderFactory_supportsRecord, METH_VARARGS, NULL},
{ "delete_SteimEncoderFactory", _wrap_delete_SteimEncoderFactory, METH_O, NULL},
{ "SteimEncoderFactory_swigregister", SteimEncoderFactory_swigregister, METH_O, NULL},
{ "IdentityEncoderFactory_create", _wrap_IdentityEncoderFactory_create, METH_VARARGS, NULL},
{ "IdentityEncoderFactory_supportsRecord", _wrap_IdentityEncoderFactory_supportsRecord, METH_VARARGS, NULL},
{ "new_IdentityEncoderFactory", _wrap_new_IdentityEncoderFactory, METH_NOARGS, NULL},
{ "delete_IdentityEncoderFactory", _wrap_delete_IdentityEncoderFactory, METH_O, NULL},
{ "IdentityEncoderFactory_swigregister", IdentityEncoderFactory_swigregister, METH_O, NULL},
{ "IdentityEncoderFactory_swiginit", IdentityEncoderFactory_swiginit, METH_VARARGS, NULL},
{ "Steim1EncoderFactory_create", _wrap_Steim1EncoderFactory_create, METH_VARARGS, NULL},
{ "new_Steim1EncoderFactory", _wrap_new_Steim1EncoderFactory, METH_NOARGS, NULL},
{ "delete_Steim1EncoderFactory", _wrap_delete_Steim1EncoderFactory, METH_O, NULL},
{ "Steim1EncoderFactory_swigregister", Steim1EncoderFactory_swigregister, METH_O, NULL},
{ "Steim1EncoderFactory_swiginit", Steim1EncoderFactory_swiginit, METH_VARARGS, NULL},
{ "Steim2EncoderFactory_create", _wrap_Steim2EncoderFactory_create, METH_VARARGS, NULL},
{ "new_Steim2EncoderFactory", _wrap_new_Steim2EncoderFactory, METH_NOARGS, NULL},
{ "delete_Steim2EncoderFactory", _wrap_delete_Steim2EncoderFactory, METH_O, NULL},
{ "Steim2EncoderFactory_swigregister", Steim2EncoderFactory_swigregister, METH_O, NULL},
{ "Steim2EncoderFactory_swiginit", Steim2EncoderFactory_swiginit, METH_VARARGS, NULL},
{ "MSEEDDataRecord_formatName", _wrap_MSEEDDataRecord_formatName, METH_O, NULL},
{ "MSEEDDataRecord_readMetaData", _wrap_MSEEDDataRecord_readMetaData, METH_VARARGS, NULL},
{ "MSEEDDataRecord_header", _wrap_MSEEDDataRecord_header, METH_O, NULL},
{ "MSEEDDataRecord_startTime", _wrap_MSEEDDataRecord_startTime, METH_O, NULL},
{ "MSEEDDataRecord_endTime", _wrap_MSEEDDataRecord_endTime, METH_O, NULL},
{ "MSEEDDataRecord_canTrim", _wrap_MSEEDDataRecord_canTrim, METH_O, NULL},
{ "MSEEDDataRecord_canMerge", _wrap_MSEEDDataRecord_canMerge, METH_O, NULL},
{ "MSEEDDataRecord_trim", _wrap_MSEEDDataRecord_trim, METH_VARARGS, NULL},
{ "MSEEDDataRecord_dataSize", _wrap_MSEEDDataRecord_dataSize, METH_VARARGS, NULL},
{ "MSEEDDataRecord_get", _wrap_MSEEDDataRecord_get, METH_VARARGS, NULL},
{ "MSEEDDataRecord_put", _wrap_MSEEDDataRecord_put, METH_VARARGS, NULL},
{ "MSEEDDataRecord_packetType", _wrap_MSEEDDataRecord_packetType, METH_O, NULL},
{ "MSEEDDataRecord_setData", _wrap_MSEEDDataRecord_setData, METH_VARARGS, NULL},
{ "MSEEDDataRecord_unpackHeader", _wrap_MSEEDDataRecord_unpackHeader, METH_O, NULL},
{ "delete_MSEEDDataRecord", _wrap_delete_MSEEDDataRecord, METH_O, NULL},
{ "MSEEDDataRecord_swigregister", MSEEDDataRecord_swigregister, METH_O, NULL},
{ "new_Plugin", _wrap_new_Plugin, METH_VARARGS, NULL},
{ "delete_Plugin", _wrap_delete_Plugin, METH_O, NULL},
{ "Plugin_close", _wrap_Plugin_close, METH_O, NULL},
{ "Plugin_quit", _wrap_Plugin_quit, METH_O, NULL},
{ "Plugin_enableLogging", _wrap_Plugin_enableLogging, METH_O, NULL},
{ "Plugin_setBackfillingBufferSize", _wrap_Plugin_setBackfillingBufferSize, METH_VARARGS, NULL},
{ "Plugin_backfillingBufferSize", _wrap_Plugin_backfillingBufferSize, METH_O, NULL},
{ "Plugin_isExitRequested", _wrap_Plugin_isExitRequested, METH_O, NULL},
{ "Plugin_stats", _wrap_Plugin_stats, METH_O, NULL},
{ "Plugin_resetMaxBytesBuffered", _wrap_Plugin_resetMaxBytesBuffered, METH_O, NULL},
{ "Plugin_setEncoderFactory", _wrap_Plugin_setEncoderFactory, METH_VARARGS, NULL},
{ "Plugin_setAddress", _wrap_Plugin_setAddress, METH_VARARGS, NULL},
{ "Plugin_setHost", _wrap_Plugin_setHost, METH_VARARGS, NULL},
{ "Plugin_host", _wrap_Plugin_host, METH_O, NULL},
{ "Plugin_setPort", _wrap_Plugin_setPort, METH_VARARGS, NULL},
{ "Plugin_port", _wrap_Plugin_port, METH_O, NULL},
{ "Plugin_setBufferSize", _wrap_Plugin_setBufferSize, METH_VARARGS, NULL},
{ "Plugin_bufferSize", _wrap_Plugin_bufferSize, METH_O, NULL},
{ "Plugin_setSSLEnabled", _wrap_Plugin_setSSLEnabled, METH_VARARGS, NULL},
{ "Plugin_setCredentials", _wrap_Plugin_setCredentials, METH_VARARGS, NULL},
{ "Plugin_setMaxFutureEndTime", _wrap_Plugin_setMaxFutureEndTime, METH_VARARGS, NULL},
{ "Plugin_setPacketAckFunc", _wrap_Plugin_setPacketAckFunc, METH_VARARGS, NULL},
{ "Plugin_setSendTimeout", _wrap_Plugin_setSendTimeout, METH_VARARGS, NULL},
{ "Plugin_setTimeouts", _wrap_Plugin_setTimeouts, METH_VARARGS, NULL},
{ "Plugin_readJournal", _wrap_Plugin_readJournal, METH_O, NULL},
{ "Plugin_setJournal", _wrap_Plugin_setJournal, METH_VARARGS, NULL},
{ "Plugin_setFlushInterval", _wrap_Plugin_setFlushInterval, METH_VARARGS, NULL},
{ "Plugin_streamStates", _wrap_Plugin_streamStates, METH_O, NULL},
{ "Plugin_writeJournal", _wrap_Plugin_writeJournal, METH_VARARGS, NULL},
{ "Plugin_flushEncoders", _wrap_Plugin_flushEncoders, METH_O, NULL},
{ "Plugin_dumpPackets", _wrap_Plugin_dumpPackets, METH_VARARGS, NULL},
{ "Plugin_packetBuffer", _wrap_Plugin_packetBuffer, METH_O, NULL},
{ "Plugin_setAgent", _wrap_Plugin_setAgent, METH_VARARGS, NULL},
{ "Plugin_version", _wrap_Plugin_version, METH_O, NULL},
{ "Plugin_push", _wrap_Plugin_push, METH_VARARGS, NULL},
{ "Plugin_swigregister", Plugin_swigregister, METH_O, NULL},
{ "Plugin_swiginit", Plugin_swiginit, METH_VARARGS, NULL},
{ "RawResponseHeader_timeSeconds_set", _wrap_RawResponseHeader_timeSeconds_set, METH_VARARGS, NULL},
{ "RawResponseHeader_timeSeconds_get", _wrap_RawResponseHeader_timeSeconds_get, METH_O, NULL},
{ "RawResponseHeader_timeMicroSeconds_set", _wrap_RawResponseHeader_timeMicroSeconds_set, METH_VARARGS, NULL},
{ "RawResponseHeader_timeMicroSeconds_get", _wrap_RawResponseHeader_timeMicroSeconds_get, METH_O, NULL},
{ "RawResponseHeader_get", _wrap_RawResponseHeader_get, METH_VARARGS, NULL},
{ "RawResponseHeader_dataSize", _wrap_RawResponseHeader_dataSize, METH_O, NULL},
{ "new_RawResponseHeader", _wrap_new_RawResponseHeader, METH_NOARGS, NULL},
{ "delete_RawResponseHeader", _wrap_delete_RawResponseHeader, METH_O, NULL},
{ "RawResponseHeader_swigregister", RawResponseHeader_swigregister, METH_O, NULL},
{ "RawResponseHeader_swiginit", RawResponseHeader_swiginit, METH_VARARGS, NULL},
{ "RawDataRecord_formatName", _wrap_RawDataRecord_formatName, METH_O, NULL},
{ "RawDataRecord_readMetaData", _wrap_RawDataRecord_readMetaData, METH_VARARGS, NULL},
{ "RawDataRecord_setHeader", _wrap_RawDataRecord_setHeader, METH_VARARGS, NULL},
{ "RawDataRecord_header", _wrap_RawDataRecord_header, METH_O, NULL},
{ "RawDataRecord_startTime", _wrap_RawDataRecord_startTime, METH_O, NULL},
{ "RawDataRecord_endTime", _wrap_RawDataRecord_endTime, METH_O, NULL},
{ "RawDataRecord_canTrim", _wrap_RawDataRecord_canTrim, METH_O, NULL},
{ "RawDataRecord_canMerge", _wrap_RawDataRecord_canMerge, METH_O, NULL},
{ "RawDataRecord_trim", _wrap_RawDataRecord_trim, METH_VARARGS, NULL},
{ "RawDataRecord_dataSize", _wrap_RawDataRecord_dataSize, METH_VARARGS, NULL},
{ "RawDataRecord_get", _wrap_RawDataRecord_get, METH_VARARGS, NULL},
{ "RawDataRecord_getData", _wrap_RawDataRecord_getData, METH_VARARGS, NULL},
{ "RawDataRecord_put", _wrap_RawDataRecord_put, METH_VARARGS, NULL},
{ "RawDataRecord_packetType", _wrap_RawDataRecord_packetType, METH_O, NULL},
{ "RawDataRecord_setStartTime", _wrap_RawDataRecord_setStartTime, METH_VARARGS, NULL},
{ "RawDataRecord_setSamplingFrequency", _wrap_RawDataRecord_setSamplingFrequency, METH_VARARGS, NULL},
{ "RawDataRecord_setDataType", _wrap_RawDataRecord_setDataType, METH_VARARGS, NULL},
{ "RawDataRecord_setBuffer", _wrap_RawDataRecord_setBuffer, METH_VARARGS, NULL},
{ "delete_RawDataRecord", _wrap_delete_RawDataRecord, METH_O, NULL},
{ "RawDataRecord_swigregister", RawDataRecord_swigregister, METH_O, NULL},
{ "FixedRawDataRecord_canTrim", _wrap_FixedRawDataRecord_canTrim, METH_O, NULL},
{ "FixedRawDataRecord_canMerge", _wrap_FixedRawDataRecord_canMerge, METH_O, NULL},
{ "FixedRawDataRecord_trim", _wrap_FixedRawDataRecord_trim, METH_VARARGS, NULL},
{ "FixedRawDataRecord_formatName", _wrap_FixedRawDataRecord_formatName, METH_O, NULL},
{ "FixedRawDataRecord_get", _wrap_FixedRawDataRecord_get, METH_VARARGS, NULL},
{ "FixedRawDataRecord_packetType", _wrap_FixedRawDataRecord_packetType, METH_O, NULL},
{ "delete_FixedRawDataRecord", _wrap_delete_FixedRawDataRecord, METH_O, NULL},
{ "FixedRawDataRecord_swigregister", FixedRawDataRecord_swigregister, METH_O, NULL},
{ "ChunkHeader_chunkSize_set", _wrap_ChunkHeader_chunkSize_set, METH_VARARGS, NULL},
{ "ChunkHeader_chunkSize_get", _wrap_ChunkHeader_chunkSize_get, METH_O, NULL},
{ "ChunkHeader_setChunkType", _wrap_ChunkHeader_setChunkType, METH_VARARGS, NULL},
{ "ChunkHeader_isChunkType", _wrap_ChunkHeader_isChunkType, METH_VARARGS, NULL},
{ "ChunkHeader_validChunkType", _wrap_ChunkHeader_validChunkType, METH_O, NULL},
{ "ChunkHeader_dataSize", _wrap_ChunkHeader_dataSize, METH_O, NULL},
{ "ChunkHeader_read", _wrap_ChunkHeader_read, METH_VARARGS, NULL},
{ "ChunkHeader_write", _wrap_ChunkHeader_write, METH_VARARGS, NULL},
{ "ChunkHeader_get", _wrap_ChunkHeader_get, METH_VARARGS, NULL},
{ "ChunkHeader_put", _wrap_ChunkHeader_put, METH_VARARGS, NULL},
{ "new_ChunkHeader", _wrap_new_ChunkHeader, METH_NOARGS, NULL},
{ "delete_ChunkHeader", _wrap_delete_ChunkHeader, METH_O, NULL},
{ "ChunkHeader_swigregister", ChunkHeader_swigregister, METH_O, NULL},
{ "ChunkHeader_swiginit", ChunkHeader_swiginit, METH_VARARGS, NULL},
{ "new_ChunkIterator", _wrap_new_ChunkIterator, METH_VARARGS, NULL},
{ "ChunkIterator_begin", _wrap_ChunkIterator_begin, METH_VARARGS, NULL},
{ "ChunkIterator_next", _wrap_ChunkIterator_next, METH_O, NULL},
{ "ChunkIterator_header", _wrap_ChunkIterator_header, METH_O, NULL},
{ "ChunkIterator_headerPos", _wrap_ChunkIterator_headerPos, METH_O, NULL},
{ "ChunkIterator_contentPos", _wrap_ChunkIterator_contentPos, METH_O, NULL},
{ "ChunkIterator_istream", _wrap_ChunkIterator_istream, METH_O, NULL},
{ "delete_ChunkIterator", _wrap_delete_ChunkIterator, METH_O, NULL},
{ "ChunkIterator_swigregister", ChunkIterator_swigregister, METH_O, NULL},
{ "ChunkIterator_swiginit", ChunkIterator_swiginit, METH_VARARGS, NULL},
{ "delete_Chunk", _wrap_delete_Chunk, METH_O, NULL},
{ "Chunk_read", _wrap_Chunk_read, METH_VARARGS, NULL},
{ "Chunk_write", _wrap_Chunk_write, METH_VARARGS, NULL},
{ "Chunk_get", _wrap_Chunk_get, METH_VARARGS, NULL},
{ "Chunk_put", _wrap_Chunk_put, METH_VARARGS, NULL},
{ "Chunk_chunkSize", _wrap_Chunk_chunkSize, METH_O, NULL},
{ "Chunk_swigregister", Chunk_swigregister, METH_O, NULL},
{ "HeadChunk_data_set", _wrap_HeadChunk_data_set, METH_VARARGS, NULL},
{ "HeadChunk_data_get", _wrap_HeadChunk_data_get, METH_O, NULL},
{ "HeadChunk_chunkSize", _wrap_HeadChunk_chunkSize, METH_O, NULL},
{ "HeadChunk_get", _wrap_HeadChunk_get, METH_VARARGS, NULL},
{ "HeadChunk_put", _wrap_HeadChunk_put, METH_VARARGS, NULL},
{ "new_HeadChunk", _wrap_new_HeadChunk, METH_NOARGS, NULL},
{ "delete_HeadChunk", _wrap_delete_HeadChunk, METH_O, NULL},
{ "HeadChunk_swigregister", HeadChunk_swigregister, METH_O, NULL},
{ "HeadChunk_swiginit", HeadChunk_swiginit, METH_VARARGS, NULL},
{ "SID_networkCode_set", _wrap_SID_networkCode_set, METH_VARARGS, NULL},
{ "SID_networkCode_get", _wrap_SID_networkCode_get, METH_O, NULL},
{ "SID_stationCode_set", _wrap_SID_stationCode_set, METH_VARARGS, NULL},
{ "SID_stationCode_get", _wrap_SID_stationCode_get, METH_O, NULL},
{ "SID_locationCode_set", _wrap_SID_locationCode_set, METH_VARARGS, NULL},
{ "SID_locationCode_get", _wrap_SID_locationCode_get, METH_O, NULL},
{ "SID_channelCode_set", _wrap_SID_channelCode_set, METH_VARARGS, NULL},
{ "SID_channelCode_get", _wrap_SID_channelCode_get, METH_O, NULL},
{ "SID___eq__", _wrap_SID___eq__, METH_VARARGS, NULL},
{ "SID___ne__", _wrap_SID___ne__, METH_VARARGS, NULL},
{ "SID_toString", _wrap_SID_toString, METH_O, NULL},
{ "new_SID", _wrap_new_SID, METH_NOARGS, NULL},
{ "delete_SID", _wrap_delete_SID, METH_O, NULL},
{ "SID_swigregister", SID_swigregister, METH_O, NULL},
{ "SID_swiginit", SID_swiginit, METH_VARARGS, NULL},
{ "SIDChunk_chunkSize", _wrap_SIDChunk_chunkSize, METH_O, NULL},
{ "SIDChunk_get", _wrap_SIDChunk_get, METH_VARARGS, NULL},
{ "SIDChunk_put", _wrap_SIDChunk_put, METH_VARARGS, NULL},
{ "new_SIDChunk", _wrap_new_SIDChunk, METH_NOARGS, NULL},
{ "delete_SIDChunk", _wrap_delete_SIDChunk, METH_O, NULL},
{ "SIDChunk_swigregister", SIDChunk_swigregister, METH_O, NULL},
{ "SIDChunk_swiginit", SIDChunk_swiginit, METH_VARARGS, NULL},
{ "RTCM2DataRecord_formatName", _wrap_RTCM2DataRecord_formatName, METH_O, NULL},
{ "RTCM2DataRecord_setTimeStamp", _wrap_RTCM2DataRecord_setTimeStamp, METH_VARARGS, NULL},
{ "RTCM2DataRecord_setSamplingFrequency", _wrap_RTCM2DataRecord_setSamplingFrequency, METH_VARARGS, NULL},
{ "RTCM2DataRecord_readMetaData", _wrap_RTCM2DataRecord_readMetaData, METH_VARARGS, NULL},
{ "RTCM2DataRecord_header", _wrap_RTCM2DataRecord_header, METH_O, NULL},
{ "RTCM2DataRecord_startTime", _wrap_RTCM2DataRecord_startTime, METH_O, NULL},
{ "RTCM2DataRecord_endTime", _wrap_RTCM2DataRecord_endTime, METH_O, NULL},
{ "RTCM2DataRecord_canTrim", _wrap_RTCM2DataRecord_canTrim, METH_O, NULL},
{ "RTCM2DataRecord_canMerge", _wrap_RTCM2DataRecord_canMerge, METH_O, NULL},
{ "RTCM2DataRecord_trim", _wrap_RTCM2DataRecord_trim, METH_VARARGS, NULL},
{ "RTCM2DataRecord_dataSize", _wrap_RTCM2DataRecord_dataSize, METH_VARARGS, NULL},
{ "RTCM2DataRecord_get", _wrap_RTCM2DataRecord_get, METH_VARARGS, NULL},
{ "RTCM2DataRecord_put", _wrap_RTCM2DataRecord_put, METH_VARARGS, NULL},
{ "RTCM2DataRecord_packetType", _wrap_RTCM2DataRecord_packetType, METH_O, NULL},
{ "delete_RTCM2DataRecord", _wrap_delete_RTCM2DataRecord, METH_O, NULL},
{ "RTCM2DataRecord_swigregister", RTCM2DataRecord_swigregister, METH_O, NULL},
{ "new_Socket", _wrap_new_Socket, METH_NOARGS, NULL},
{ "delete_Socket", _wrap_delete_Socket, METH_O, NULL},
{ "Socket_toString", _wrap_Socket_toString, METH_O, NULL},
{ "Socket_fd", _wrap_Socket_fd, METH_O, NULL},
{ "Socket_isValid", _wrap_Socket_isValid, METH_O, NULL},
{ "Socket_shutdown", _wrap_Socket_shutdown, METH_O, NULL},
{ "Socket_close", _wrap_Socket_close, METH_O, NULL},
{ "Socket_send", _wrap_Socket_send, METH_VARARGS, NULL},
{ "Socket_write", _wrap_Socket_write, METH_VARARGS, NULL},
{ "Socket_read", _wrap_Socket_read, METH_VARARGS, NULL},
{ "Socket_flush", _wrap_Socket_flush, METH_O, NULL},
{ "Socket_setSocketTimeout", _wrap_Socket_setSocketTimeout, METH_VARARGS, NULL},
{ "Socket_setNonBlocking", _wrap_Socket_setNonBlocking, METH_VARARGS, NULL},
{ "Socket_connect", _wrap_Socket_connect, METH_VARARGS, NULL},
{ "Socket_rx", _wrap_Socket_rx, METH_O, NULL},
{ "Socket_tx", _wrap_Socket_tx, METH_O, NULL},
{ "Socket_swigregister", Socket_swigregister, METH_O, NULL},
{ "Socket_swiginit", Socket_swiginit, METH_VARARGS, NULL},
{ "new_SSLSocket", _wrap_new_SSLSocket, METH_VARARGS, NULL},
{ "delete_SSLSocket", _wrap_delete_SSLSocket, METH_O, NULL},
{ "SSLSocket_write", _wrap_SSLSocket_write, METH_VARARGS, NULL},
{ "SSLSocket_read", _wrap_SSLSocket_read, METH_VARARGS, NULL},
{ "SSLSocket_connect", _wrap_SSLSocket_connect, METH_VARARGS, NULL},
{ "SSLSocket_sessionID", _wrap_SSLSocket_sessionID, METH_O, NULL},
{ "SSLSocket_sessionIDLength", _wrap_SSLSocket_sessionIDLength, METH_O, NULL},
{ "SSLSocket_peerCertificate", _wrap_SSLSocket_peerCertificate, METH_O, NULL},
{ "SSLSocket_swigregister", SSLSocket_swigregister, METH_O, NULL},
{ "SSLSocket_swiginit", SSLSocket_swiginit, METH_VARARGS, NULL},
{ "new_charArray", _wrap_new_charArray, METH_O, NULL},
{ "delete_charArray", _wrap_delete_charArray, METH_O, NULL},
{ "charArray___getitem__", _wrap_charArray___getitem__, METH_VARARGS, NULL},
{ "charArray___setitem__", _wrap_charArray___setitem__, METH_VARARGS, NULL},
{ "charArray_cast", _wrap_charArray_cast, METH_O, NULL},
{ "charArray_frompointer", _wrap_charArray_frompointer, METH_O, NULL},
{ "charArray_swigregister", charArray_swigregister, METH_O, NULL},
{ "charArray_swiginit", charArray_swiginit, METH_VARARGS, NULL},
{ "new_arraybuf", _wrap_new_arraybuf, METH_VARARGS, NULL},
{ "arraybuf_reset", _wrap_arraybuf_reset, METH_VARARGS, NULL},
{ "arraybuf_seekoff", _wrap_arraybuf_seekoff, METH_VARARGS, NULL},
{ "arraybuf_seekpos", _wrap_arraybuf_seekpos, METH_VARARGS, NULL},
{ "arraybuf_xsgetn", _wrap_arraybuf_xsgetn, METH_VARARGS, NULL},
{ "arraybuf_tellg", _wrap_arraybuf_tellg, METH_O, NULL},
{ "arraybuf_tellp", _wrap_arraybuf_tellp, METH_O, NULL},
{ "delete_arraybuf", _wrap_delete_arraybuf, METH_O, NULL},
{ "arraybuf_swigregister", arraybuf_swigregister, METH_O, NULL},
{ "arraybuf_swiginit", arraybuf_swiginit, METH_VARARGS, NULL},
{ "splitAddress", _wrap_splitAddress, METH_VARARGS, NULL},
{ "tokenize", _wrap_tokenize, METH_VARARGS, NULL},
{ "trim", _wrap_trim, METH_VARARGS, NULL},
{ "timeToTimestamp", _wrap_timeToTimestamp, METH_VARARGS, NULL},
{ "str2int", _wrap_str2int, METH_VARARGS, NULL},
{ "timestampToTime", _wrap_timestampToTime, METH_O, NULL},
{ "samplesToTimeSpan", _wrap_samplesToTimeSpan, METH_VARARGS, NULL},
{ "timeSpanToSamples", _wrap_timeSpanToSamples, METH_VARARGS, NULL},
{ "timeSpanToSamplesCeil", _wrap_timeSpanToSamplesCeil, METH_VARARGS, NULL},
{ "timeSpanToSamplesFloor", _wrap_timeSpanToSamplesFloor, METH_VARARGS, NULL},
{ "dataTypeSize", _wrap_dataTypeSize, METH_O, NULL},
{ NULL, NULL, 0, NULL }
};
static PyMethodDef SwigMethods_proxydocs[] = {
{ NULL, NULL, 0, NULL }
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static void *_p_Gempa__CAPS__PacketDataHeaderV2To_p_Gempa__CAPS__PacketDataHeader(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::PacketDataHeader *) ((Gempa::CAPS::PacketDataHeaderV2 *) x));
}
static void *_p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__SteimEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim1EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__SteimEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim2EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__SteimEncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::MSEEDEncoderFactory *) ((Gempa::CAPS::SteimEncoderFactory *) x));
}
static void *_p_Gempa__CAPS__IdentityEncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::MSEEDEncoderFactory *) ((Gempa::CAPS::IdentityEncoderFactory *) x));
}
static void *_p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::MSEEDEncoderFactory *) (Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim1EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::MSEEDEncoderFactory *) (Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim2EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__MSEEDEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::EncoderFactory *) ((Gempa::CAPS::MSEEDEncoderFactory *) x));
}
static void *_p_Gempa__CAPS__SteimEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::EncoderFactory *) (Gempa::CAPS::MSEEDEncoderFactory *) ((Gempa::CAPS::SteimEncoderFactory *) x));
}
static void *_p_Gempa__CAPS__IdentityEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::EncoderFactory *) (Gempa::CAPS::MSEEDEncoderFactory *) ((Gempa::CAPS::IdentityEncoderFactory *) x));
}
static void *_p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__EncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::EncoderFactory *) (Gempa::CAPS::MSEEDEncoderFactory *)(Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim1EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__EncoderFactory(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::EncoderFactory *) (Gempa::CAPS::MSEEDEncoderFactory *)(Gempa::CAPS::SteimEncoderFactory *) ((Gempa::CAPS::Steim2EncoderFactory *) x));
}
static void *_p_Gempa__CAPS__RIFF__SIDChunkTo_p_Gempa__CAPS__RIFF__Chunk(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::RIFF::Chunk *) ((Gempa::CAPS::RIFF::SIDChunk *) x));
}
static void *_p_Gempa__CAPS__RIFF__HeadChunkTo_p_Gempa__CAPS__RIFF__Chunk(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::RIFF::Chunk *) ((Gempa::CAPS::RIFF::HeadChunk *) x));
}
static void *_p_Gempa__CAPS__RIFF__SIDChunkTo_p_Gempa__CAPS__RIFF__SID(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::RIFF::SID *) ((Gempa::CAPS::RIFF::SIDChunk *) x));
}
static void *_p_Gempa__CAPS__arraybufTo_p_std__streambuf(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((std::streambuf *) ((Gempa::CAPS::arraybuf *) x));
}
static void *_p_Gempa__CAPS__TimeTo_p_Gempa__CAPS__TimeSpan(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::TimeSpan *) ((Gempa::CAPS::Time *) x));
}
static void *_p_Gempa__CAPS__FixedRawDataRecordTo_p_Gempa__CAPS__RawDataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::RawDataRecord *) ((Gempa::CAPS::FixedRawDataRecord *) x));
}
static void *_p_Gempa__CAPS__AnyDataRecordTo_p_Gempa__CAPS__DataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::DataRecord *) ((Gempa::CAPS::AnyDataRecord *) x));
}
static void *_p_Gempa__CAPS__MSEEDDataRecordTo_p_Gempa__CAPS__DataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::DataRecord *) ((Gempa::CAPS::MSEEDDataRecord *) x));
}
static void *_p_Gempa__CAPS__RawDataRecordTo_p_Gempa__CAPS__DataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::DataRecord *) ((Gempa::CAPS::RawDataRecord *) x));
}
static void *_p_Gempa__CAPS__FixedRawDataRecordTo_p_Gempa__CAPS__DataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::DataRecord *) (Gempa::CAPS::RawDataRecord *) ((Gempa::CAPS::FixedRawDataRecord *) x));
}
static void *_p_Gempa__CAPS__RTCM2DataRecordTo_p_Gempa__CAPS__DataRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::DataRecord *) ((Gempa::CAPS::RTCM2DataRecord *) x));
}
static void *_p_charArrayTo_p_char(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((char *) ((charArray *) x));
}
static void *_p_Gempa__CAPS__SSLSocketTo_p_Gempa__CAPS__Socket(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((Gempa::CAPS::Socket *) ((Gempa::CAPS::SSLSocket *) x));
}
static swig_type_info _swigt__p_BackfillingBuffer = {"_p_BackfillingBuffer", "BackfillingBuffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BufferPtr = {"_p_BufferPtr", "BufferPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__AnyDataRecord = {"_p_Gempa__CAPS__AnyDataRecord", "Gempa::CAPS::AnyDataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__DataRecord = {"_p_Gempa__CAPS__DataRecord", "Gempa::CAPS::DataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__DataRecord__Header = {"_p_Gempa__CAPS__DataRecord__Header", "Gempa::CAPS::DataRecord::Header *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__DataRecord__ReadStatus = {"_p_Gempa__CAPS__DataRecord__ReadStatus", "Gempa::CAPS::DataRecord::ReadStatus *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Encoder = {"_p_Gempa__CAPS__Encoder", "Gempa::CAPS::Encoder *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__EncoderFactory = {"_p_Gempa__CAPS__EncoderFactory", "Gempa::CAPS::EncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__FixedRawDataRecord = {"_p_Gempa__CAPS__FixedRawDataRecord", "Gempa::CAPS::FixedRawDataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__IdentityEncoderFactory = {"_p_Gempa__CAPS__IdentityEncoderFactory", "Gempa::CAPS::IdentityEncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__MSEEDDataRecord = {"_p_Gempa__CAPS__MSEEDDataRecord", "Gempa::CAPS::MSEEDDataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__MSEEDEncoderFactory = {"_p_Gempa__CAPS__MSEEDEncoderFactory", "Gempa::CAPS::MSEEDEncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__MetaPacket = {"_p_Gempa__CAPS__MetaPacket", "Gempa::CAPS::MetaPacket *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Packet = {"_p_Gempa__CAPS__Packet", "Gempa::CAPS::Packet *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__PacketDataHeader = {"_p_Gempa__CAPS__PacketDataHeader", "Gempa::CAPS::PacketDataHeader *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__PacketDataHeaderV2 = {"_p_Gempa__CAPS__PacketDataHeaderV2", "Gempa::CAPS::PacketDataHeaderV2 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__PacketHeaderV1 = {"_p_Gempa__CAPS__PacketHeaderV1", "Gempa::CAPS::PacketHeaderV1 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__PacketHeaderV2 = {"_p_Gempa__CAPS__PacketHeaderV2", "Gempa::CAPS::PacketHeaderV2 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Plugin = {"_p_Gempa__CAPS__Plugin", "Gempa::CAPS::Plugin *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Plugin__Stats = {"_p_Gempa__CAPS__Plugin__Stats", "Gempa::CAPS::Plugin::Stats *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Quality = {"_p_Gempa__CAPS__Quality", "Gempa::CAPS::Quality *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__Chunk = {"_p_Gempa__CAPS__RIFF__Chunk", "Gempa::CAPS::RIFF::Chunk *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__ChunkHeader = {"_p_Gempa__CAPS__RIFF__ChunkHeader", "Gempa::CAPS::RIFF::ChunkHeader *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__ChunkIterator = {"_p_Gempa__CAPS__RIFF__ChunkIterator", "Gempa::CAPS::RIFF::ChunkIterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__HeadChunk = {"_p_Gempa__CAPS__RIFF__HeadChunk", "Gempa::CAPS::RIFF::HeadChunk *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__SID = {"_p_Gempa__CAPS__RIFF__SID", "Gempa::CAPS::RIFF::SID *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RIFF__SIDChunk = {"_p_Gempa__CAPS__RIFF__SIDChunk", "Gempa::CAPS::RIFF::SIDChunk *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RTCM2DataRecord = {"_p_Gempa__CAPS__RTCM2DataRecord", "Gempa::CAPS::RTCM2DataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RawDataRecord = {"_p_Gempa__CAPS__RawDataRecord", "Gempa::CAPS::RawDataRecord *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RawPacket = {"_p_Gempa__CAPS__RawPacket", "Gempa::CAPS::RawPacket *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__RawResponseHeader = {"_p_Gempa__CAPS__RawResponseHeader", "Gempa::CAPS::RawResponseHeader *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__ResponseHeader = {"_p_Gempa__CAPS__ResponseHeader", "Gempa::CAPS::ResponseHeader *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__SPClock = {"_p_Gempa__CAPS__SPClock", "Gempa::CAPS::SPClock *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__SSLSocket = {"_p_Gempa__CAPS__SSLSocket", "Gempa::CAPS::SSLSocket *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Socket = {"_p_Gempa__CAPS__Socket", "Gempa::CAPS::Socket *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Socket__Device__Status = {"_p_Gempa__CAPS__Socket__Device__Status", "Gempa::CAPS::Socket::Device::Status *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Steim1EncoderFactory = {"_p_Gempa__CAPS__Steim1EncoderFactory", "Gempa::CAPS::Steim1EncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Steim2EncoderFactory = {"_p_Gempa__CAPS__Steim2EncoderFactory", "Gempa::CAPS::Steim2EncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__SteimEncoderFactory = {"_p_Gempa__CAPS__SteimEncoderFactory", "Gempa::CAPS::SteimEncoderFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__Time = {"_p_Gempa__CAPS__Time", "Gempa::CAPS::Time *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__TimeSpan = {"_p_Gempa__CAPS__TimeSpan", "Gempa::CAPS::TimeSpan *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__TimeStamp = {"_p_Gempa__CAPS__TimeStamp", "Gempa::CAPS::TimeStamp *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__UOM = {"_p_Gempa__CAPS__UOM", "Gempa::CAPS::UOM *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gempa__CAPS__arraybuf = {"_p_Gempa__CAPS__arraybuf", "Gempa::CAPS::arraybuf *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PacketAckFunc = {"_p_PacketAckFunc", "PacketAckFunc *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PacketBuffer = {"_p_PacketBuffer", "PacketBuffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SSL_CTX = {"_p_SSL_CTX", "SSL_CTX *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StreamStates = {"_p_StreamStates", "StreamStates *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_X509 = {"_p_X509", "X509 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t = {"_p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t", "Gempa::CAPS::Plugin::PacketAckFunc *|boost::function< void (std::string const &,Gempa::CAPS::Time const &,Gempa::CAPS::Time const &) > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t = {"_p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t", "Gempa::CAPS::DataRecordPtr *|boost::shared_ptr< Gempa::CAPS::DataRecord > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t = {"_p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t", "boost::shared_ptr< Gempa::CAPS::Packet::Buffer > *|Gempa::CAPS::Packet::BufferPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet_t = {"_p_boost__shared_ptrT_Gempa__CAPS__Packet_t", "boost::shared_ptr< Gempa::CAPS::Packet > *|Gempa::CAPS::PacketPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__Plugin_t = {"_p_boost__shared_ptrT_Gempa__CAPS__Plugin_t", "boost::shared_ptr< Gempa::CAPS::Plugin > *|Gempa::CAPS::PluginPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t = {"_p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t", "boost::shared_ptr< Gempa::CAPS::SSLSocket > *|Gempa::CAPS::SSLSocketPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gempa__CAPS__Socket_t = {"_p_boost__shared_ptrT_Gempa__CAPS__Socket_t", "boost::shared_ptr< Gempa::CAPS::Socket > *|Gempa::CAPS::SocketPtr *", 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_charArray = {"_p_charArray", "charArray *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_count_t = {"_p_count_t", "count_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_q_const__char_v_______void = {"_p_f_p_q_const__char_v_______void", "void (*)(char const *,...)|Gempa::CAPS::LogOutput", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_off_type = {"_p_off_type", "off_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_f_p_q_const__char_v_______void = {"_p_p_f_p_q_const__char_v_______void", "void (**)(char const *,...)|Gempa::CAPS::LogOutput *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pos_type = {"_p_pos_type", "pos_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t = {"_p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t", "std::deque< boost::shared_ptr< Gempa::CAPS::Packet > > *|Gempa::CAPS::Plugin::PacketBuffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__ios_base__openmode = {"_p_std__ios_base__openmode", "std::ios_base::openmode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__ios_base__seekdir = {"_p_std__ios_base__seekdir", "std::ios_base::seekdir *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__istream = {"_p_std__istream", "std::istream *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t = {"_p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t", "std::map< std::string,Gempa::CAPS::Plugin::StreamState > *|Gempa::CAPS::Plugin::StreamStates *", 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__streambuf = {"_p_std__streambuf", "std::streambuf *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__streambuf__off_type = {"_p_std__streambuf__off_type", "std::streambuf::off_type *|Gempa::CAPS::arraybuf::off_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__streambuf__pos_type = {"_p_std__streambuf__pos_type", "std::streambuf::pos_type *|Gempa::CAPS::arraybuf::pos_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__streampos = {"_p_std__streampos", "std::streampos *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__streamsize = {"_p_std__streamsize", "std::streamsize *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_char_t = {"_p_std__vectorT_char_t", "std::vector< char > *|Buffer *|Gempa::CAPS::DataRecord::Buffer *|Gempa::CAPS::AnyDataRecord::Buffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_timeval = {"_p_timeval", "timeval *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = {
&_swigt__p_BackfillingBuffer,
&_swigt__p_BufferPtr,
&_swigt__p_Gempa__CAPS__AnyDataRecord,
&_swigt__p_Gempa__CAPS__DataRecord,
&_swigt__p_Gempa__CAPS__DataRecord__Header,
&_swigt__p_Gempa__CAPS__DataRecord__ReadStatus,
&_swigt__p_Gempa__CAPS__Encoder,
&_swigt__p_Gempa__CAPS__EncoderFactory,
&_swigt__p_Gempa__CAPS__FixedRawDataRecord,
&_swigt__p_Gempa__CAPS__IdentityEncoderFactory,
&_swigt__p_Gempa__CAPS__MSEEDDataRecord,
&_swigt__p_Gempa__CAPS__MSEEDEncoderFactory,
&_swigt__p_Gempa__CAPS__MetaPacket,
&_swigt__p_Gempa__CAPS__Packet,
&_swigt__p_Gempa__CAPS__PacketDataHeader,
&_swigt__p_Gempa__CAPS__PacketDataHeaderV2,
&_swigt__p_Gempa__CAPS__PacketHeaderV1,
&_swigt__p_Gempa__CAPS__PacketHeaderV2,
&_swigt__p_Gempa__CAPS__Plugin,
&_swigt__p_Gempa__CAPS__Plugin__Stats,
&_swigt__p_Gempa__CAPS__Quality,
&_swigt__p_Gempa__CAPS__RIFF__Chunk,
&_swigt__p_Gempa__CAPS__RIFF__ChunkHeader,
&_swigt__p_Gempa__CAPS__RIFF__ChunkIterator,
&_swigt__p_Gempa__CAPS__RIFF__HeadChunk,
&_swigt__p_Gempa__CAPS__RIFF__SID,
&_swigt__p_Gempa__CAPS__RIFF__SIDChunk,
&_swigt__p_Gempa__CAPS__RTCM2DataRecord,
&_swigt__p_Gempa__CAPS__RawDataRecord,
&_swigt__p_Gempa__CAPS__RawPacket,
&_swigt__p_Gempa__CAPS__RawResponseHeader,
&_swigt__p_Gempa__CAPS__ResponseHeader,
&_swigt__p_Gempa__CAPS__SPClock,
&_swigt__p_Gempa__CAPS__SSLSocket,
&_swigt__p_Gempa__CAPS__Socket,
&_swigt__p_Gempa__CAPS__Socket__Device__Status,
&_swigt__p_Gempa__CAPS__Steim1EncoderFactory,
&_swigt__p_Gempa__CAPS__Steim2EncoderFactory,
&_swigt__p_Gempa__CAPS__SteimEncoderFactory,
&_swigt__p_Gempa__CAPS__Time,
&_swigt__p_Gempa__CAPS__TimeSpan,
&_swigt__p_Gempa__CAPS__TimeStamp,
&_swigt__p_Gempa__CAPS__UOM,
&_swigt__p_Gempa__CAPS__arraybuf,
&_swigt__p_PacketAckFunc,
&_swigt__p_PacketBuffer,
&_swigt__p_SSL_CTX,
&_swigt__p_StreamStates,
&_swigt__p_X509,
&_swigt__p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Plugin_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t,
&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Socket_t,
&_swigt__p_char,
&_swigt__p_charArray,
&_swigt__p_count_t,
&_swigt__p_f_p_q_const__char_v_______void,
&_swigt__p_int,
&_swigt__p_long_long,
&_swigt__p_off_type,
&_swigt__p_p_f_p_q_const__char_v_______void,
&_swigt__p_pos_type,
&_swigt__p_short,
&_swigt__p_signed_char,
&_swigt__p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t,
&_swigt__p_std__ios_base__openmode,
&_swigt__p_std__ios_base__seekdir,
&_swigt__p_std__istream,
&_swigt__p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t,
&_swigt__p_std__ostream,
&_swigt__p_std__streambuf,
&_swigt__p_std__streambuf__off_type,
&_swigt__p_std__streambuf__pos_type,
&_swigt__p_std__streampos,
&_swigt__p_std__streamsize,
&_swigt__p_std__string,
&_swigt__p_std__vectorT_char_t,
&_swigt__p_timeval,
&_swigt__p_unsigned_char,
&_swigt__p_unsigned_int,
&_swigt__p_unsigned_long_long,
&_swigt__p_unsigned_short,
};
static swig_cast_info _swigc__p_BackfillingBuffer[] = { {&_swigt__p_BackfillingBuffer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BufferPtr[] = { {&_swigt__p_BufferPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__AnyDataRecord[] = { {&_swigt__p_Gempa__CAPS__AnyDataRecord, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__DataRecord[] = { {&_swigt__p_Gempa__CAPS__DataRecord, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__AnyDataRecord, _p_Gempa__CAPS__AnyDataRecordTo_p_Gempa__CAPS__DataRecord, 0, 0}, {&_swigt__p_Gempa__CAPS__MSEEDDataRecord, _p_Gempa__CAPS__MSEEDDataRecordTo_p_Gempa__CAPS__DataRecord, 0, 0}, {&_swigt__p_Gempa__CAPS__RawDataRecord, _p_Gempa__CAPS__RawDataRecordTo_p_Gempa__CAPS__DataRecord, 0, 0}, {&_swigt__p_Gempa__CAPS__FixedRawDataRecord, _p_Gempa__CAPS__FixedRawDataRecordTo_p_Gempa__CAPS__DataRecord, 0, 0}, {&_swigt__p_Gempa__CAPS__RTCM2DataRecord, _p_Gempa__CAPS__RTCM2DataRecordTo_p_Gempa__CAPS__DataRecord, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__DataRecord__Header[] = { {&_swigt__p_Gempa__CAPS__DataRecord__Header, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__DataRecord__ReadStatus[] = { {&_swigt__p_Gempa__CAPS__DataRecord__ReadStatus, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Encoder[] = { {&_swigt__p_Gempa__CAPS__Encoder, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__EncoderFactory[] = { {&_swigt__p_Gempa__CAPS__EncoderFactory, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__MSEEDEncoderFactory, _p_Gempa__CAPS__MSEEDEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__SteimEncoderFactory, _p_Gempa__CAPS__SteimEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim1EncoderFactory, _p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__EncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim2EncoderFactory, _p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__EncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__IdentityEncoderFactory, _p_Gempa__CAPS__IdentityEncoderFactoryTo_p_Gempa__CAPS__EncoderFactory, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__FixedRawDataRecord[] = { {&_swigt__p_Gempa__CAPS__FixedRawDataRecord, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__IdentityEncoderFactory[] = { {&_swigt__p_Gempa__CAPS__IdentityEncoderFactory, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__MSEEDDataRecord[] = { {&_swigt__p_Gempa__CAPS__MSEEDDataRecord, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__MSEEDEncoderFactory[] = { {&_swigt__p_Gempa__CAPS__MSEEDEncoderFactory, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__SteimEncoderFactory, _p_Gempa__CAPS__SteimEncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim1EncoderFactory, _p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim2EncoderFactory, _p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__IdentityEncoderFactory, _p_Gempa__CAPS__IdentityEncoderFactoryTo_p_Gempa__CAPS__MSEEDEncoderFactory, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__MetaPacket[] = { {&_swigt__p_Gempa__CAPS__MetaPacket, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Packet[] = { {&_swigt__p_Gempa__CAPS__Packet, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__PacketDataHeader[] = { {&_swigt__p_Gempa__CAPS__PacketDataHeader, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__PacketDataHeaderV2, _p_Gempa__CAPS__PacketDataHeaderV2To_p_Gempa__CAPS__PacketDataHeader, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__PacketDataHeaderV2[] = { {&_swigt__p_Gempa__CAPS__PacketDataHeaderV2, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__PacketHeaderV1[] = { {&_swigt__p_Gempa__CAPS__PacketHeaderV1, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__PacketHeaderV2[] = { {&_swigt__p_Gempa__CAPS__PacketHeaderV2, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Plugin[] = { {&_swigt__p_Gempa__CAPS__Plugin, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Plugin__Stats[] = { {&_swigt__p_Gempa__CAPS__Plugin__Stats, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Quality[] = { {&_swigt__p_Gempa__CAPS__Quality, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__Chunk[] = { {&_swigt__p_Gempa__CAPS__RIFF__SIDChunk, _p_Gempa__CAPS__RIFF__SIDChunkTo_p_Gempa__CAPS__RIFF__Chunk, 0, 0}, {&_swigt__p_Gempa__CAPS__RIFF__Chunk, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__RIFF__HeadChunk, _p_Gempa__CAPS__RIFF__HeadChunkTo_p_Gempa__CAPS__RIFF__Chunk, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__ChunkHeader[] = { {&_swigt__p_Gempa__CAPS__RIFF__ChunkHeader, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__ChunkIterator[] = { {&_swigt__p_Gempa__CAPS__RIFF__ChunkIterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__HeadChunk[] = { {&_swigt__p_Gempa__CAPS__RIFF__HeadChunk, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__SID[] = { {&_swigt__p_Gempa__CAPS__RIFF__SIDChunk, _p_Gempa__CAPS__RIFF__SIDChunkTo_p_Gempa__CAPS__RIFF__SID, 0, 0}, {&_swigt__p_Gempa__CAPS__RIFF__SID, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RIFF__SIDChunk[] = { {&_swigt__p_Gempa__CAPS__RIFF__SIDChunk, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RTCM2DataRecord[] = { {&_swigt__p_Gempa__CAPS__RTCM2DataRecord, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RawDataRecord[] = { {&_swigt__p_Gempa__CAPS__RawDataRecord, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__FixedRawDataRecord, _p_Gempa__CAPS__FixedRawDataRecordTo_p_Gempa__CAPS__RawDataRecord, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RawPacket[] = { {&_swigt__p_Gempa__CAPS__RawPacket, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__RawResponseHeader[] = { {&_swigt__p_Gempa__CAPS__RawResponseHeader, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__ResponseHeader[] = { {&_swigt__p_Gempa__CAPS__ResponseHeader, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__SPClock[] = { {&_swigt__p_Gempa__CAPS__SPClock, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__SSLSocket[] = { {&_swigt__p_Gempa__CAPS__SSLSocket, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Socket[] = { {&_swigt__p_Gempa__CAPS__Socket, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__SSLSocket, _p_Gempa__CAPS__SSLSocketTo_p_Gempa__CAPS__Socket, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Socket__Device__Status[] = { {&_swigt__p_Gempa__CAPS__Socket__Device__Status, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Steim1EncoderFactory[] = { {&_swigt__p_Gempa__CAPS__Steim1EncoderFactory, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Steim2EncoderFactory[] = { {&_swigt__p_Gempa__CAPS__Steim2EncoderFactory, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__SteimEncoderFactory[] = { {&_swigt__p_Gempa__CAPS__SteimEncoderFactory, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim1EncoderFactory, _p_Gempa__CAPS__Steim1EncoderFactoryTo_p_Gempa__CAPS__SteimEncoderFactory, 0, 0}, {&_swigt__p_Gempa__CAPS__Steim2EncoderFactory, _p_Gempa__CAPS__Steim2EncoderFactoryTo_p_Gempa__CAPS__SteimEncoderFactory, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__Time[] = { {&_swigt__p_Gempa__CAPS__Time, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__TimeSpan[] = { {&_swigt__p_Gempa__CAPS__TimeSpan, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__Time, _p_Gempa__CAPS__TimeTo_p_Gempa__CAPS__TimeSpan, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__TimeStamp[] = { {&_swigt__p_Gempa__CAPS__TimeStamp, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__UOM[] = { {&_swigt__p_Gempa__CAPS__UOM, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gempa__CAPS__arraybuf[] = { {&_swigt__p_Gempa__CAPS__arraybuf, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PacketAckFunc[] = { {&_swigt__p_PacketAckFunc, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PacketBuffer[] = { {&_swigt__p_PacketBuffer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SSL_CTX[] = { {&_swigt__p_SSL_CTX, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StreamStates[] = { {&_swigt__p_StreamStates, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_X509[] = { {&_swigt__p_X509, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t[] = { {&_swigt__p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__Packet_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Packet_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__Plugin_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Plugin_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gempa__CAPS__Socket_t[] = { {&_swigt__p_boost__shared_ptrT_Gempa__CAPS__Socket_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0}, {&_swigt__p_charArray, _p_charArrayTo_p_char, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_charArray[] = { {&_swigt__p_charArray, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_count_t[] = { {&_swigt__p_count_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__char_v_______void[] = { {&_swigt__p_f_p_q_const__char_v_______void, 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_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_off_type[] = { {&_swigt__p_off_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_f_p_q_const__char_v_______void[] = { {&_swigt__p_p_f_p_q_const__char_v_______void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pos_type[] = { {&_swigt__p_pos_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t[] = { {&_swigt__p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__ios_base__openmode[] = { {&_swigt__p_std__ios_base__openmode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__ios_base__seekdir[] = { {&_swigt__p_std__ios_base__seekdir, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__istream[] = { {&_swigt__p_std__istream, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t[] = { {&_swigt__p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_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__streambuf[] = { {&_swigt__p_std__streambuf, 0, 0, 0}, {&_swigt__p_Gempa__CAPS__arraybuf, _p_Gempa__CAPS__arraybufTo_p_std__streambuf, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__streambuf__off_type[] = { {&_swigt__p_std__streambuf__off_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__streambuf__pos_type[] = { {&_swigt__p_std__streambuf__pos_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__streampos[] = { {&_swigt__p_std__streampos, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__streamsize[] = { {&_swigt__p_std__streamsize, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_char_t[] = { {&_swigt__p_std__vectorT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_timeval[] = { {&_swigt__p_timeval, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_BackfillingBuffer,
_swigc__p_BufferPtr,
_swigc__p_Gempa__CAPS__AnyDataRecord,
_swigc__p_Gempa__CAPS__DataRecord,
_swigc__p_Gempa__CAPS__DataRecord__Header,
_swigc__p_Gempa__CAPS__DataRecord__ReadStatus,
_swigc__p_Gempa__CAPS__Encoder,
_swigc__p_Gempa__CAPS__EncoderFactory,
_swigc__p_Gempa__CAPS__FixedRawDataRecord,
_swigc__p_Gempa__CAPS__IdentityEncoderFactory,
_swigc__p_Gempa__CAPS__MSEEDDataRecord,
_swigc__p_Gempa__CAPS__MSEEDEncoderFactory,
_swigc__p_Gempa__CAPS__MetaPacket,
_swigc__p_Gempa__CAPS__Packet,
_swigc__p_Gempa__CAPS__PacketDataHeader,
_swigc__p_Gempa__CAPS__PacketDataHeaderV2,
_swigc__p_Gempa__CAPS__PacketHeaderV1,
_swigc__p_Gempa__CAPS__PacketHeaderV2,
_swigc__p_Gempa__CAPS__Plugin,
_swigc__p_Gempa__CAPS__Plugin__Stats,
_swigc__p_Gempa__CAPS__Quality,
_swigc__p_Gempa__CAPS__RIFF__Chunk,
_swigc__p_Gempa__CAPS__RIFF__ChunkHeader,
_swigc__p_Gempa__CAPS__RIFF__ChunkIterator,
_swigc__p_Gempa__CAPS__RIFF__HeadChunk,
_swigc__p_Gempa__CAPS__RIFF__SID,
_swigc__p_Gempa__CAPS__RIFF__SIDChunk,
_swigc__p_Gempa__CAPS__RTCM2DataRecord,
_swigc__p_Gempa__CAPS__RawDataRecord,
_swigc__p_Gempa__CAPS__RawPacket,
_swigc__p_Gempa__CAPS__RawResponseHeader,
_swigc__p_Gempa__CAPS__ResponseHeader,
_swigc__p_Gempa__CAPS__SPClock,
_swigc__p_Gempa__CAPS__SSLSocket,
_swigc__p_Gempa__CAPS__Socket,
_swigc__p_Gempa__CAPS__Socket__Device__Status,
_swigc__p_Gempa__CAPS__Steim1EncoderFactory,
_swigc__p_Gempa__CAPS__Steim2EncoderFactory,
_swigc__p_Gempa__CAPS__SteimEncoderFactory,
_swigc__p_Gempa__CAPS__Time,
_swigc__p_Gempa__CAPS__TimeSpan,
_swigc__p_Gempa__CAPS__TimeStamp,
_swigc__p_Gempa__CAPS__UOM,
_swigc__p_Gempa__CAPS__arraybuf,
_swigc__p_PacketAckFunc,
_swigc__p_PacketBuffer,
_swigc__p_SSL_CTX,
_swigc__p_StreamStates,
_swigc__p_X509,
_swigc__p_boost__functionT_void_fstd__string_const_R_Gempa__CAPS__Time_const_R_Gempa__CAPS__Time_const_RF_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__DataRecord_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__Packet__Buffer_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__Packet_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__Plugin_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__SSLSocket_t,
_swigc__p_boost__shared_ptrT_Gempa__CAPS__Socket_t,
_swigc__p_char,
_swigc__p_charArray,
_swigc__p_count_t,
_swigc__p_f_p_q_const__char_v_______void,
_swigc__p_int,
_swigc__p_long_long,
_swigc__p_off_type,
_swigc__p_p_f_p_q_const__char_v_______void,
_swigc__p_pos_type,
_swigc__p_short,
_swigc__p_signed_char,
_swigc__p_std__dequeT_boost__shared_ptrT_Gempa__CAPS__Packet_t_t,
_swigc__p_std__ios_base__openmode,
_swigc__p_std__ios_base__seekdir,
_swigc__p_std__istream,
_swigc__p_std__mapT_std__string_Gempa__CAPS__Plugin__StreamState_t,
_swigc__p_std__ostream,
_swigc__p_std__streambuf,
_swigc__p_std__streambuf__off_type,
_swigc__p_std__streambuf__pos_type,
_swigc__p_std__streampos,
_swigc__p_std__streamsize,
_swigc__p_std__string,
_swigc__p_std__vectorT_char_t,
_swigc__p_timeval,
_swigc__p_unsigned_char,
_swigc__p_unsigned_int,
_swigc__p_unsigned_long_long,
_swigc__p_unsigned_short,
};
/* -------- 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 %lu\n", (unsigned long)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 %lu %s\n", (unsigned long)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 %lu %s\n", (unsigned long)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("<Swig global variables>");
#else
return PyString_FromString("<Swig global variables>");
#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 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
"swigvarlink", /* tp_name */
sizeof(swig_varlinkobject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor) swig_varlink_dealloc, /* tp_dealloc */
0, /* 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 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
0, /* tp_del */
0, /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
0, /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
0, /* tp_print */
#endif
#ifdef COUNT_ALLOCS
0, /* tp_allocs */
0, /* tp_frees */
0, /* tp_maxalloc */
0, /* tp_prev */
0 /* tp_next */
#endif
};
varlink_type = tmp;
type_init = 1;
if (PyType_Ready(&varlink_type) < 0)
return NULL;
}
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, const 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) {
memcpy(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 *globals = 0;
if (!globals) {
globals = SWIG_newvarlink();
}
return 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;
memcpy(buff, methods[i].ml_doc, ldoc);
buff += ldoc;
memcpy(buff, "swig_ptr: ", 10);
buff += 10;
SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
methods[i].ml_doc = ndoc;
}
}
}
}
}
}
/* -----------------------------------------------------------------------------
* Method creation and docstring support functions
* ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
* Function to find the method definition with the correct docstring for the
* proxy module as opposed to the low-level API
* ----------------------------------------------------------------------------- */
SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
/* Find the function in the modified method table */
size_t offset = 0;
int found = 0;
while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
found = 1;
break;
}
offset++;
}
/* Use the copy with the modified docstring if available */
return found ? &SwigMethods_proxydocs[offset] : NULL;
}
/* -----------------------------------------------------------------------------
* Wrapper of PyInstanceMethod_New() used in Python 3
* It is exported to the generated module, used for -fastproxy
* ----------------------------------------------------------------------------- */
SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
if (PyCFunction_Check(func)) {
PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
if (ml)
func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
}
#if PY_VERSION_HEX >= 0x03000000
return PyInstanceMethod_New(func);
#else
return PyMethod_New(func, NULL, NULL);
#endif
}
/* -----------------------------------------------------------------------------
* Wrapper of PyStaticMethod_New()
* It is exported to the generated module, used for -fastproxy
* ----------------------------------------------------------------------------- */
SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
if (PyCFunction_Check(func)) {
PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
if (ml)
func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
}
return PyStaticMethod_New(func);
}
#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, *globals;
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef SWIG_module = {
PyModuleDef_HEAD_INIT,
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 = {
SwigPyObject_own,
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
(void)globals;
/* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
SWIG_This();
SWIG_Python_TypeCache();
SwigPyPacked_type();
#ifndef SWIGPYTHON_BUILTIN
SwigPyObject_type();
#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(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();
globals = SWIG_globals();
if (!globals) {
PyErr_SetString(PyExc_TypeError, "Failure to create SWIG globals.");
#if PY_VERSION_HEX >= 0x03000000
return NULL;
#else
return;
#endif
}
PyDict_SetItemString(md, "cvar", globals);
Py_DECREF(globals);
SWIG_addvarlink(globals, "Time_Null", Swig_var_Time_Null_get, Swig_var_Time_Null_set);
SWIG_Python_SetConstant(d, "UnknownPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::UnknownPacket)));
SWIG_Python_SetConstant(d, "RawDataPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::RawDataPacket)));
SWIG_Python_SetConstant(d, "MSEEDPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::MSEEDPacket)));
SWIG_Python_SetConstant(d, "ANYPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::ANYPacket)));
SWIG_Python_SetConstant(d, "RTCM2Packet",SWIG_From_int(static_cast< int >(Gempa::CAPS::RTCM2Packet)));
SWIG_Python_SetConstant(d, "MetaDataPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::MetaDataPacket)));
SWIG_Python_SetConstant(d, "FixedRawDataPacket",SWIG_From_int(static_cast< int >(Gempa::CAPS::FixedRawDataPacket)));
SWIG_Python_SetConstant(d, "PacketTypeCount",SWIG_From_int(static_cast< int >(Gempa::CAPS::PacketTypeCount)));
SWIG_Python_SetConstant(d, "DT_Unknown",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_Unknown)));
SWIG_Python_SetConstant(d, "DT_DOUBLE",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_DOUBLE)));
SWIG_Python_SetConstant(d, "DT_FLOAT",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_FLOAT)));
SWIG_Python_SetConstant(d, "DT_INT64",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_INT64)));
SWIG_Python_SetConstant(d, "DT_INT32",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_INT32)));
SWIG_Python_SetConstant(d, "DT_INT16",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_INT16)));
SWIG_Python_SetConstant(d, "DT_INT8",SWIG_From_int(static_cast< int >(Gempa::CAPS::DT_INT8)));
SWIG_Python_SetConstant(d, "NetworkCode",SWIG_From_int(static_cast< int >(Gempa::CAPS::NetworkCode)));
SWIG_Python_SetConstant(d, "StationCode",SWIG_From_int(static_cast< int >(Gempa::CAPS::StationCode)));
SWIG_Python_SetConstant(d, "LocationCode",SWIG_From_int(static_cast< int >(Gempa::CAPS::LocationCode)));
SWIG_Python_SetConstant(d, "ChannelCode",SWIG_From_int(static_cast< int >(Gempa::CAPS::ChannelCode)));
SWIG_Python_SetConstant(d, "StreamIDComponentSize",SWIG_From_int(static_cast< int >(Gempa::CAPS::StreamIDComponentSize)));
SWIG_Python_SetConstant(d, "DataRecord_RS_Error",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_Error)));
SWIG_Python_SetConstant(d, "DataRecord_RS_Complete",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_Complete)));
SWIG_Python_SetConstant(d, "DataRecord_RS_Partial",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_Partial)));
SWIG_Python_SetConstant(d, "DataRecord_RS_BeforeTimeWindow",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_BeforeTimeWindow)));
SWIG_Python_SetConstant(d, "DataRecord_RS_AfterTimeWindow",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_AfterTimeWindow)));
SWIG_Python_SetConstant(d, "DataRecord_RS_Max",SWIG_From_int(static_cast< int >(Gempa::CAPS::DataRecord::RS_Max)));
SWIG_Python_SetConstant(d, "LL_UNDEFINED",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_UNDEFINED)));
SWIG_Python_SetConstant(d, "LL_ERROR",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_ERROR)));
SWIG_Python_SetConstant(d, "LL_WARNING",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_WARNING)));
SWIG_Python_SetConstant(d, "LL_NOTICE",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_NOTICE)));
SWIG_Python_SetConstant(d, "LL_INFO",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_INFO)));
SWIG_Python_SetConstant(d, "LL_DEBUG",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_DEBUG)));
SWIG_Python_SetConstant(d, "LL_QUANTITY",SWIG_From_int(static_cast< int >(Gempa::CAPS::LL_QUANTITY)));
SWIG_addvarlink(globals, "LogHandler", Swig_var_LogHandler_get, Swig_var_LogHandler_set);
SWIG_Python_SetConstant(d, "Plugin_Success",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::Success)));
SWIG_Python_SetConstant(d, "Plugin_PacketSize",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::PacketSize)));
SWIG_Python_SetConstant(d, "Plugin_PacketLoss",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::PacketLoss)));
SWIG_Python_SetConstant(d, "Plugin_PacketNotValid",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::PacketNotValid)));
SWIG_Python_SetConstant(d, "Plugin_PacketNotSupported",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::PacketNotSupported)));
SWIG_Python_SetConstant(d, "Plugin_MaxFutureEndTimeExceeded",SWIG_From_int(static_cast< int >(Gempa::CAPS::Plugin::MaxFutureEndTimeExceeded)));
SWIG_addvarlink(globals, "ChunkHeaderSize", Swig_var_ChunkHeaderSize_get, Swig_var_ChunkHeaderSize_set);
SWIG_Python_SetConstant(d, "Socket_Success",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::Success)));
SWIG_Python_SetConstant(d, "Socket_Error",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::Error)));
SWIG_Python_SetConstant(d, "Socket_AllocationError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::AllocationError)));
SWIG_Python_SetConstant(d, "Socket_ReuseAdressError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::ReuseAdressError)));
SWIG_Python_SetConstant(d, "Socket_BindError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::BindError)));
SWIG_Python_SetConstant(d, "Socket_ListenError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::ListenError)));
SWIG_Python_SetConstant(d, "Socket_AcceptError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::AcceptError)));
SWIG_Python_SetConstant(d, "Socket_ConnectError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::ConnectError)));
SWIG_Python_SetConstant(d, "Socket_AddrInfoError",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::AddrInfoError)));
SWIG_Python_SetConstant(d, "Socket_Timeout",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::Timeout)));
SWIG_Python_SetConstant(d, "Socket_InvalidSocket",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::InvalidSocket)));
SWIG_Python_SetConstant(d, "Socket_InvalidPort",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::InvalidPort)));
SWIG_Python_SetConstant(d, "Socket_InvalidAddressFamily",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::InvalidAddressFamily)));
SWIG_Python_SetConstant(d, "Socket_InvalidAddress",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::InvalidAddress)));
SWIG_Python_SetConstant(d, "Socket_InvalidHostname",SWIG_From_int(static_cast< int >(Gempa::CAPS::Socket::InvalidHostname)));
#if PY_VERSION_HEX >= 0x03000000
return m;
#else
return;
#endif
}