# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# 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):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_fcdproplus_swig')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_fcdproplus_swig')
    _fcdproplus_swig = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_fcdproplus_swig', [dirname(__file__)])
        except ImportError:
            import _fcdproplus_swig
            return _fcdproplus_swig
        try:
            _mod = imp.load_module('_fcdproplus_swig', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _fcdproplus_swig = swig_import_helper()
    del swig_import_helper
else:
    import _fcdproplus_swig
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


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_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr



def high_res_timer_now():
    """high_res_timer_now() -> gr::high_res_timer_type"""
    return _fcdproplus_swig.high_res_timer_now()

def high_res_timer_now_perfmon():
    """high_res_timer_now_perfmon() -> gr::high_res_timer_type"""
    return _fcdproplus_swig.high_res_timer_now_perfmon()

def high_res_timer_tps():
    """high_res_timer_tps() -> gr::high_res_timer_type"""
    return _fcdproplus_swig.high_res_timer_tps()

def high_res_timer_epoch():
    """high_res_timer_epoch() -> gr::high_res_timer_type"""
    return _fcdproplus_swig.high_res_timer_epoch()
class fcdproplus(object):
    """Proxy of C++ gr::fcdproplus::fcdproplus class."""

    thisown = _swig_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

    def make(*args, **kwargs):
        """make(std::string const device_name, int unit=1) -> fcdproplus_sptr"""
        return _fcdproplus_swig.fcdproplus_make(*args, **kwargs)

    make = staticmethod(make)

    def set_freq(self, freq):
        """set_freq(fcdproplus self, float freq)"""
        return _fcdproplus_swig.fcdproplus_set_freq(self, freq)


    def set_lna(self, gain):
        """set_lna(fcdproplus self, int gain)"""
        return _fcdproplus_swig.fcdproplus_set_lna(self, gain)


    def set_mixer_gain(self, gain):
        """set_mixer_gain(fcdproplus self, int gain)"""
        return _fcdproplus_swig.fcdproplus_set_mixer_gain(self, gain)


    def set_freq_corr(self, ppm):
        """set_freq_corr(fcdproplus self, int ppm)"""
        return _fcdproplus_swig.fcdproplus_set_freq_corr(self, ppm)


    def set_if_gain(self, gain):
        """set_if_gain(fcdproplus self, int gain)"""
        return _fcdproplus_swig.fcdproplus_set_if_gain(self, gain)

    __swig_destroy__ = _fcdproplus_swig.delete_fcdproplus
    __del__ = lambda self: None
fcdproplus_swigregister = _fcdproplus_swig.fcdproplus_swigregister
fcdproplus_swigregister(fcdproplus)

def fcdproplus_make(*args, **kwargs):
    """fcdproplus_make(std::string const device_name, int unit=1) -> fcdproplus_sptr"""
    return _fcdproplus_swig.fcdproplus_make(*args, **kwargs)

class fcdproplus_sptr(object):
    """Proxy of C++ boost::shared_ptr<(gr::fcdproplus::fcdproplus)> class."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, *args):
        """
        __init__(boost::shared_ptr<(gr::fcdproplus::fcdproplus)> self) -> fcdproplus_sptr
        __init__(boost::shared_ptr<(gr::fcdproplus::fcdproplus)> self, fcdproplus p) -> fcdproplus_sptr
        """
        this = _fcdproplus_swig.new_fcdproplus_sptr(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def __deref__(self):
        """__deref__(fcdproplus_sptr self) -> fcdproplus"""
        return _fcdproplus_swig.fcdproplus_sptr___deref__(self)

    __swig_destroy__ = _fcdproplus_swig.delete_fcdproplus_sptr
    __del__ = lambda self: None

    def make(self, *args, **kwargs):
        """make(fcdproplus_sptr self, std::string const device_name, int unit=1) -> fcdproplus_sptr"""
        return _fcdproplus_swig.fcdproplus_sptr_make(self, *args, **kwargs)


    def set_freq(self, freq):
        """set_freq(fcdproplus_sptr self, float freq)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_freq(self, freq)


    def set_lna(self, gain):
        """set_lna(fcdproplus_sptr self, int gain)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_lna(self, gain)


    def set_mixer_gain(self, gain):
        """set_mixer_gain(fcdproplus_sptr self, int gain)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_mixer_gain(self, gain)


    def set_freq_corr(self, ppm):
        """set_freq_corr(fcdproplus_sptr self, int ppm)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_freq_corr(self, ppm)


    def set_if_gain(self, gain):
        """set_if_gain(fcdproplus_sptr self, int gain)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_if_gain(self, gain)


    def primitive_connect(self, *args):
        """
        primitive_connect(fcdproplus_sptr self, basic_block_sptr block)
        primitive_connect(fcdproplus_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _fcdproplus_swig.fcdproplus_sptr_primitive_connect(self, *args)


    def primitive_msg_connect(self, *args):
        """
        primitive_msg_connect(fcdproplus_sptr self, basic_block_sptr src, swig_int_ptr srcport, basic_block_sptr dst, swig_int_ptr dstport)
        primitive_msg_connect(fcdproplus_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _fcdproplus_swig.fcdproplus_sptr_primitive_msg_connect(self, *args)


    def primitive_msg_disconnect(self, *args):
        """
        primitive_msg_disconnect(fcdproplus_sptr self, basic_block_sptr src, swig_int_ptr srcport, basic_block_sptr dst, swig_int_ptr dstport)
        primitive_msg_disconnect(fcdproplus_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _fcdproplus_swig.fcdproplus_sptr_primitive_msg_disconnect(self, *args)


    def primitive_disconnect(self, *args):
        """
        primitive_disconnect(fcdproplus_sptr self, basic_block_sptr block)
        primitive_disconnect(fcdproplus_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _fcdproplus_swig.fcdproplus_sptr_primitive_disconnect(self, *args)


    def disconnect_all(self):
        """disconnect_all(fcdproplus_sptr self)"""
        return _fcdproplus_swig.fcdproplus_sptr_disconnect_all(self)


    def lock(self):
        """lock(fcdproplus_sptr self)"""
        return _fcdproplus_swig.fcdproplus_sptr_lock(self)


    def unlock(self):
        """unlock(fcdproplus_sptr self)"""
        return _fcdproplus_swig.fcdproplus_sptr_unlock(self)


    def primitive_message_port_register_hier_in(self, port_id):
        """primitive_message_port_register_hier_in(fcdproplus_sptr self, swig_int_ptr port_id)"""
        return _fcdproplus_swig.fcdproplus_sptr_primitive_message_port_register_hier_in(self, port_id)


    def primitive_message_port_register_hier_out(self, port_id):
        """primitive_message_port_register_hier_out(fcdproplus_sptr self, swig_int_ptr port_id)"""
        return _fcdproplus_swig.fcdproplus_sptr_primitive_message_port_register_hier_out(self, port_id)


    def set_processor_affinity(self, mask):
        """set_processor_affinity(fcdproplus_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_processor_affinity(self, mask)


    def unset_processor_affinity(self):
        """unset_processor_affinity(fcdproplus_sptr self)"""
        return _fcdproplus_swig.fcdproplus_sptr_unset_processor_affinity(self)


    def processor_affinity(self):
        """processor_affinity(fcdproplus_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _fcdproplus_swig.fcdproplus_sptr_processor_affinity(self)


    def max_output_buffer(self, i):
        """max_output_buffer(fcdproplus_sptr self, int i) -> size_t"""
        return _fcdproplus_swig.fcdproplus_sptr_max_output_buffer(self, i)


    def set_max_output_buffer(self, *args):
        """
        set_max_output_buffer(fcdproplus_sptr self, size_t max_output_buffer)
        set_max_output_buffer(fcdproplus_sptr self, int port, size_t max_output_buffer)
        """
        return _fcdproplus_swig.fcdproplus_sptr_set_max_output_buffer(self, *args)


    def min_output_buffer(self, i):
        """min_output_buffer(fcdproplus_sptr self, int i) -> size_t"""
        return _fcdproplus_swig.fcdproplus_sptr_min_output_buffer(self, i)


    def set_min_output_buffer(self, *args):
        """
        set_min_output_buffer(fcdproplus_sptr self, size_t min_output_buffer)
        set_min_output_buffer(fcdproplus_sptr self, int port, size_t min_output_buffer)
        """
        return _fcdproplus_swig.fcdproplus_sptr_set_min_output_buffer(self, *args)


    def to_hier_block2(self):
        """to_hier_block2(fcdproplus_sptr self) -> hier_block2_sptr"""
        return _fcdproplus_swig.fcdproplus_sptr_to_hier_block2(self)


    def name(self):
        """name(fcdproplus_sptr self) -> std::string"""
        return _fcdproplus_swig.fcdproplus_sptr_name(self)


    def symbol_name(self):
        """symbol_name(fcdproplus_sptr self) -> std::string"""
        return _fcdproplus_swig.fcdproplus_sptr_symbol_name(self)


    def input_signature(self):
        """input_signature(fcdproplus_sptr self) -> io_signature_sptr"""
        return _fcdproplus_swig.fcdproplus_sptr_input_signature(self)


    def output_signature(self):
        """output_signature(fcdproplus_sptr self) -> io_signature_sptr"""
        return _fcdproplus_swig.fcdproplus_sptr_output_signature(self)


    def unique_id(self):
        """unique_id(fcdproplus_sptr self) -> long"""
        return _fcdproplus_swig.fcdproplus_sptr_unique_id(self)


    def to_basic_block(self):
        """to_basic_block(fcdproplus_sptr self) -> basic_block_sptr"""
        return _fcdproplus_swig.fcdproplus_sptr_to_basic_block(self)


    def check_topology(self, ninputs, noutputs):
        """check_topology(fcdproplus_sptr self, int ninputs, int noutputs) -> bool"""
        return _fcdproplus_swig.fcdproplus_sptr_check_topology(self, ninputs, noutputs)


    def alias(self):
        """alias(fcdproplus_sptr self) -> std::string"""
        return _fcdproplus_swig.fcdproplus_sptr_alias(self)


    def set_block_alias(self, name):
        """set_block_alias(fcdproplus_sptr self, std::string name)"""
        return _fcdproplus_swig.fcdproplus_sptr_set_block_alias(self, name)


    def _post(self, which_port, msg):
        """_post(fcdproplus_sptr self, swig_int_ptr which_port, swig_int_ptr msg)"""
        return _fcdproplus_swig.fcdproplus_sptr__post(self, which_port, msg)


    def message_ports_in(self):
        """message_ports_in(fcdproplus_sptr self) -> swig_int_ptr"""
        return _fcdproplus_swig.fcdproplus_sptr_message_ports_in(self)


    def message_ports_out(self):
        """message_ports_out(fcdproplus_sptr self) -> swig_int_ptr"""
        return _fcdproplus_swig.fcdproplus_sptr_message_ports_out(self)


    def message_subscribers(self, which_port):
        """message_subscribers(fcdproplus_sptr self, swig_int_ptr which_port) -> swig_int_ptr"""
        return _fcdproplus_swig.fcdproplus_sptr_message_subscribers(self, which_port)

fcdproplus_sptr_swigregister = _fcdproplus_swig.fcdproplus_sptr_swigregister
fcdproplus_sptr_swigregister(fcdproplus_sptr)


fcdproplus_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
fcdproplus = fcdproplus.make;



