# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _pyupm_nmea_gps
else:
    import _pyupm_nmea_gps

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)



def getVersion():
    return _pyupm_nmea_gps.getVersion()
class SwigPyIterator(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _pyupm_nmea_gps.delete_SwigPyIterator

    def value(self):
        return _pyupm_nmea_gps.SwigPyIterator_value(self)

    def incr(self, n=1):
        return _pyupm_nmea_gps.SwigPyIterator_incr(self, n)

    def decr(self, n=1):
        return _pyupm_nmea_gps.SwigPyIterator_decr(self, n)

    def distance(self, x):
        return _pyupm_nmea_gps.SwigPyIterator_distance(self, x)

    def equal(self, x):
        return _pyupm_nmea_gps.SwigPyIterator_equal(self, x)

    def copy(self):
        return _pyupm_nmea_gps.SwigPyIterator_copy(self)

    def next(self):
        return _pyupm_nmea_gps.SwigPyIterator_next(self)

    def __next__(self):
        return _pyupm_nmea_gps.SwigPyIterator___next__(self)

    def previous(self):
        return _pyupm_nmea_gps.SwigPyIterator_previous(self)

    def advance(self, n):
        return _pyupm_nmea_gps.SwigPyIterator_advance(self, n)

    def __eq__(self, x):
        return _pyupm_nmea_gps.SwigPyIterator___eq__(self, x)

    def __ne__(self, x):
        return _pyupm_nmea_gps.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n):
        return _pyupm_nmea_gps.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n):
        return _pyupm_nmea_gps.SwigPyIterator___isub__(self, n)

    def __add__(self, n):
        return _pyupm_nmea_gps.SwigPyIterator___add__(self, n)

    def __sub__(self, *args):
        return _pyupm_nmea_gps.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self

# Register SwigPyIterator in _pyupm_nmea_gps:
_pyupm_nmea_gps.SwigPyIterator_swigregister(SwigPyIterator)

class satellitevec(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def iterator(self):
        return _pyupm_nmea_gps.satellitevec_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_nmea_gps.satellitevec___nonzero__(self)

    def __bool__(self):
        return _pyupm_nmea_gps.satellitevec___bool__(self)

    def __len__(self):
        return _pyupm_nmea_gps.satellitevec___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_nmea_gps.satellitevec___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_nmea_gps.satellitevec___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_nmea_gps.satellitevec___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_nmea_gps.satellitevec___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_nmea_gps.satellitevec___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_nmea_gps.satellitevec___setitem__(self, *args)

    def pop(self):
        return _pyupm_nmea_gps.satellitevec_pop(self)

    def append(self, x):
        return _pyupm_nmea_gps.satellitevec_append(self, x)

    def empty(self):
        return _pyupm_nmea_gps.satellitevec_empty(self)

    def size(self):
        return _pyupm_nmea_gps.satellitevec_size(self)

    def swap(self, v):
        return _pyupm_nmea_gps.satellitevec_swap(self, v)

    def begin(self):
        return _pyupm_nmea_gps.satellitevec_begin(self)

    def end(self):
        return _pyupm_nmea_gps.satellitevec_end(self)

    def rbegin(self):
        return _pyupm_nmea_gps.satellitevec_rbegin(self)

    def rend(self):
        return _pyupm_nmea_gps.satellitevec_rend(self)

    def clear(self):
        return _pyupm_nmea_gps.satellitevec_clear(self)

    def get_allocator(self):
        return _pyupm_nmea_gps.satellitevec_get_allocator(self)

    def pop_back(self):
        return _pyupm_nmea_gps.satellitevec_pop_back(self)

    def erase(self, *args):
        return _pyupm_nmea_gps.satellitevec_erase(self, *args)

    def __init__(self, *args):
        _pyupm_nmea_gps.satellitevec_swiginit(self, _pyupm_nmea_gps.new_satellitevec(*args))

    def push_back(self, x):
        return _pyupm_nmea_gps.satellitevec_push_back(self, x)

    def front(self):
        return _pyupm_nmea_gps.satellitevec_front(self)

    def back(self):
        return _pyupm_nmea_gps.satellitevec_back(self)

    def assign(self, n, x):
        return _pyupm_nmea_gps.satellitevec_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_nmea_gps.satellitevec_resize(self, *args)

    def insert(self, *args):
        return _pyupm_nmea_gps.satellitevec_insert(self, *args)

    def reserve(self, n):
        return _pyupm_nmea_gps.satellitevec_reserve(self, n)

    def capacity(self):
        return _pyupm_nmea_gps.satellitevec_capacity(self)
    __swig_destroy__ = _pyupm_nmea_gps.delete_satellitevec

# Register satellitevec in _pyupm_nmea_gps:
_pyupm_nmea_gps.satellitevec_swigregister(satellitevec)

class coord_DD(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    latitude = property(_pyupm_nmea_gps.coord_DD_latitude_get, _pyupm_nmea_gps.coord_DD_latitude_set)
    longitude = property(_pyupm_nmea_gps.coord_DD_longitude_get, _pyupm_nmea_gps.coord_DD_longitude_set)

    def __str__(self):
        return _pyupm_nmea_gps.coord_DD___str__(self)

    def __init__(self):
        _pyupm_nmea_gps.coord_DD_swiginit(self, _pyupm_nmea_gps.new_coord_DD())
    __swig_destroy__ = _pyupm_nmea_gps.delete_coord_DD

# Register coord_DD in _pyupm_nmea_gps:
_pyupm_nmea_gps.coord_DD_swigregister(coord_DD)

class satellite(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    prn = property(_pyupm_nmea_gps.satellite_prn_get, _pyupm_nmea_gps.satellite_prn_set)
    elevation_deg = property(_pyupm_nmea_gps.satellite_elevation_deg_get, _pyupm_nmea_gps.satellite_elevation_deg_set)
    azimuth_deg = property(_pyupm_nmea_gps.satellite_azimuth_deg_get, _pyupm_nmea_gps.satellite_azimuth_deg_set)
    snr = property(_pyupm_nmea_gps.satellite_snr_get, _pyupm_nmea_gps.satellite_snr_set)

    def __init__(self, *args):
        _pyupm_nmea_gps.satellite_swiginit(self, _pyupm_nmea_gps.new_satellite(*args))

    def __str__(self):
        return _pyupm_nmea_gps.satellite___str__(self)
    __swig_destroy__ = _pyupm_nmea_gps.delete_satellite

# Register satellite in _pyupm_nmea_gps:
_pyupm_nmea_gps.satellite_swigregister(satellite)

class nmeatxt(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    severity = property(_pyupm_nmea_gps.nmeatxt_severity_get, _pyupm_nmea_gps.nmeatxt_severity_set)
    message = property(_pyupm_nmea_gps.nmeatxt_message_get, _pyupm_nmea_gps.nmeatxt_message_set)

    def __init__(self, *args):
        _pyupm_nmea_gps.nmeatxt_swiginit(self, _pyupm_nmea_gps.new_nmeatxt(*args))

    def __str__(self):
        return _pyupm_nmea_gps.nmeatxt___str__(self)
    __swig_destroy__ = _pyupm_nmea_gps.delete_nmeatxt

# Register nmeatxt in _pyupm_nmea_gps:
_pyupm_nmea_gps.nmeatxt_swigregister(nmeatxt)

gps_fix_quality_no_fix = _pyupm_nmea_gps.gps_fix_quality_no_fix
gps_fix_quality_fix_sp = _pyupm_nmea_gps.gps_fix_quality_fix_sp
gps_fix_quality_fix_dp = _pyupm_nmea_gps.gps_fix_quality_fix_dp
gps_fix_quality_fix_pps = _pyupm_nmea_gps.gps_fix_quality_fix_pps
gps_fix_quality_fix_rtk = _pyupm_nmea_gps.gps_fix_quality_fix_rtk
gps_fix_quality_fix_frtk = _pyupm_nmea_gps.gps_fix_quality_fix_frtk
gps_fix_quality_fix_dr = _pyupm_nmea_gps.gps_fix_quality_fix_dr
gps_fix_quality_fix_manual = _pyupm_nmea_gps.gps_fix_quality_fix_manual
gps_fix_quality_fix_simulation = _pyupm_nmea_gps.gps_fix_quality_fix_simulation
class gps_fix(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    coordinates = property(_pyupm_nmea_gps.gps_fix_coordinates_get, _pyupm_nmea_gps.gps_fix_coordinates_set)
    time_utc = property(_pyupm_nmea_gps.gps_fix_time_utc_get, _pyupm_nmea_gps.gps_fix_time_utc_set)
    quality = property(_pyupm_nmea_gps.gps_fix_quality_get, _pyupm_nmea_gps.gps_fix_quality_set)
    satellites = property(_pyupm_nmea_gps.gps_fix_satellites_get, _pyupm_nmea_gps.gps_fix_satellites_set)
    hdop = property(_pyupm_nmea_gps.gps_fix_hdop_get, _pyupm_nmea_gps.gps_fix_hdop_set)
    altitude_meters = property(_pyupm_nmea_gps.gps_fix_altitude_meters_get, _pyupm_nmea_gps.gps_fix_altitude_meters_set)
    geoid_height_meters = property(_pyupm_nmea_gps.gps_fix_geoid_height_meters_get, _pyupm_nmea_gps.gps_fix_geoid_height_meters_set)
    age_seconds = property(_pyupm_nmea_gps.gps_fix_age_seconds_get, _pyupm_nmea_gps.gps_fix_age_seconds_set)
    station_id = property(_pyupm_nmea_gps.gps_fix_station_id_get, _pyupm_nmea_gps.gps_fix_station_id_set)
    valid = property(_pyupm_nmea_gps.gps_fix_valid_get, _pyupm_nmea_gps.gps_fix_valid_set)
    chksum_match = property(_pyupm_nmea_gps.gps_fix_chksum_match_get, _pyupm_nmea_gps.gps_fix_chksum_match_set)

    def __str__(self):
        return _pyupm_nmea_gps.gps_fix___str__(self)

    def __init__(self):
        _pyupm_nmea_gps.gps_fix_swiginit(self, _pyupm_nmea_gps.new_gps_fix())
    __swig_destroy__ = _pyupm_nmea_gps.delete_gps_fix

# Register gps_fix in _pyupm_nmea_gps:
_pyupm_nmea_gps.gps_fix_swigregister(gps_fix)

class NMEAGPS(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        _pyupm_nmea_gps.NMEAGPS_swiginit(self, _pyupm_nmea_gps.new_NMEAGPS(*args))
    __swig_destroy__ = _pyupm_nmea_gps.delete_NMEAGPS

    def readStr(self, size):
        return _pyupm_nmea_gps.NMEAGPS_readStr(self, size)

    def writeStr(self, buffer):
        return _pyupm_nmea_gps.NMEAGPS_writeStr(self, buffer)

    def enable(self, enable):
        return _pyupm_nmea_gps.NMEAGPS_enable(self, enable)

    def setBaudrate(self, baudrate):
        return _pyupm_nmea_gps.NMEAGPS_setBaudrate(self, baudrate)

    def dataAvailable(self, millis):
        return _pyupm_nmea_gps.NMEAGPS_dataAvailable(self, millis)

    def getMaxQueueDepth(self):
        return _pyupm_nmea_gps.NMEAGPS_getMaxQueueDepth(self)

    def setMaxQueueDepth(self, depth):
        return _pyupm_nmea_gps.NMEAGPS_setMaxQueueDepth(self, depth)

    def parseStart(self):
        return _pyupm_nmea_gps.NMEAGPS_parseStart(self)

    def parseStop(self):
        return _pyupm_nmea_gps.NMEAGPS_parseStop(self)

    def isRunning(self):
        return _pyupm_nmea_gps.NMEAGPS_isRunning(self)

    def getFix(self):
        return _pyupm_nmea_gps.NMEAGPS_getFix(self)

    def getRawSentence(self):
        return _pyupm_nmea_gps.NMEAGPS_getRawSentence(self)

    def getTxtMessage(self):
        return _pyupm_nmea_gps.NMEAGPS_getTxtMessage(self)

    def fixQueueSize(self):
        return _pyupm_nmea_gps.NMEAGPS_fixQueueSize(self)

    def rawSentenceQueueSize(self):
        return _pyupm_nmea_gps.NMEAGPS_rawSentenceQueueSize(self)

    def txtMessageQueueSize(self):
        return _pyupm_nmea_gps.NMEAGPS_txtMessageQueueSize(self)

    def parseNMEASentence(self, sentence):
        return _pyupm_nmea_gps.NMEAGPS_parseNMEASentence(self, sentence)

    def satellites(self):
        return _pyupm_nmea_gps.NMEAGPS_satellites(self)

    def sentencesPerSecond(self):
        return _pyupm_nmea_gps.NMEAGPS_sentencesPerSecond(self)

    def bytesPerSecond(self):
        return _pyupm_nmea_gps.NMEAGPS_bytesPerSecond(self)

    def __str__(self):
        return _pyupm_nmea_gps.NMEAGPS___str__(self)

# Register NMEAGPS in _pyupm_nmea_gps:
_pyupm_nmea_gps.NMEAGPS_swigregister(NMEAGPS)



