# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.36
#
# Don't modify this file, modify the SWIG interface instead.

import _gpio_swig
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
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__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[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,name

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

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


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


class gpio_and_const_ss_sptr(object):
    """Proxy of C++ gpio_and_const_ss_sptr 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__(self) -> gpio_and_const_ss_sptr
        __init__(self,  p) -> gpio_and_const_ss_sptr
        """
        this = _gpio_swig.new_gpio_and_const_ss_sptr(*args)
        try: self.this.append(this)
        except: self.this = this
    def __deref__(*args):
        """__deref__(self)"""
        return _gpio_swig.gpio_and_const_ss_sptr___deref__(*args)

    __swig_destroy__ = _gpio_swig.delete_gpio_and_const_ss_sptr
    __del__ = lambda self : None;
    def k(*args):
        """k(self) -> unsigned short"""
        return _gpio_swig.gpio_and_const_ss_sptr_k(*args)

    def set_k(*args):
        """set_k(self, unsigned short k)"""
        return _gpio_swig.gpio_and_const_ss_sptr_set_k(*args)

    def history(*args):
        """history(self) -> unsigned int"""
        return _gpio_swig.gpio_and_const_ss_sptr_history(*args)

    def output_multiple(*args):
        """output_multiple(self) -> int"""
        return _gpio_swig.gpio_and_const_ss_sptr_output_multiple(*args)

    def relative_rate(*args):
        """relative_rate(self) -> double"""
        return _gpio_swig.gpio_and_const_ss_sptr_relative_rate(*args)

    def start(*args):
        """start(self) -> bool"""
        return _gpio_swig.gpio_and_const_ss_sptr_start(*args)

    def stop(*args):
        """stop(self) -> bool"""
        return _gpio_swig.gpio_and_const_ss_sptr_stop(*args)

    def detail(*args):
        """detail(self) -> gr_block_detail_sptr"""
        return _gpio_swig.gpio_and_const_ss_sptr_detail(*args)

    def set_detail(*args):
        """set_detail(self, gr_block_detail_sptr detail)"""
        return _gpio_swig.gpio_and_const_ss_sptr_set_detail(*args)

    def name(*args):
        """name(self) -> string"""
        return _gpio_swig.gpio_and_const_ss_sptr_name(*args)

    def input_signature(*args):
        """input_signature(self) -> gr_io_signature_sptr"""
        return _gpio_swig.gpio_and_const_ss_sptr_input_signature(*args)

    def output_signature(*args):
        """output_signature(self) -> gr_io_signature_sptr"""
        return _gpio_swig.gpio_and_const_ss_sptr_output_signature(*args)

    def unique_id(*args):
        """unique_id(self) -> long"""
        return _gpio_swig.gpio_and_const_ss_sptr_unique_id(*args)

    def basic_block(*args):
        """basic_block(self) -> gr_basic_block_sptr"""
        return _gpio_swig.gpio_and_const_ss_sptr_basic_block(*args)

    def check_topology(*args):
        """check_topology(self, int ninputs, int noutputs) -> bool"""
        return _gpio_swig.gpio_and_const_ss_sptr_check_topology(*args)

gpio_and_const_ss_sptr_swigregister = _gpio_swig.gpio_and_const_ss_sptr_swigregister
gpio_and_const_ss_sptr_swigregister(gpio_and_const_ss_sptr)


def gpio_and_const_ss_block(*args):
  """gpio_and_const_ss_block(gpio_and_const_ss_sptr r) -> gr_block_sptr"""
  return _gpio_swig.gpio_and_const_ss_block(*args)
gpio_and_const_ss_sptr.block = lambda self: gpio_and_const_ss_block (self)
gpio_and_const_ss_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id ())


def and_const_ss(*args):
  """and_const_ss(unsigned short k) -> gpio_and_const_ss_sptr"""
  return _gpio_swig.and_const_ss(*args)


