00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef SWIG_gnuradio_swig_python_WRAP_H_
00012 #define SWIG_gnuradio_swig_python_WRAP_H_
00013
00014 #include <map>
00015 #include <string>
00016
00017
00018 class SwigDirector_gr_prefs : public gr_prefs, public Swig::Director {
00019
00020 public:
00021 SwigDirector_gr_prefs(PyObject *self);
00022 virtual ~SwigDirector_gr_prefs();
00023 virtual bool has_section(std::string const section);
00024 virtual bool has_option(std::string const section, std::string const option);
00025 virtual std::string const get_string(std::string const section, std::string const option, std::string const default_val);
00026 virtual bool get_bool(std::string const section, std::string const option, bool default_val);
00027 virtual long get_long(std::string const section, std::string const option, long default_val);
00028 virtual double get_double(std::string const section, std::string const option, double default_val);
00029
00030
00031
00032 public:
00033 bool swig_get_inner(const char* name) const {
00034 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00035 return (iv != inner.end() ? iv->second : false);
00036 }
00037
00038 void swig_set_inner(const char* name, bool val) const
00039 { inner[name] = val;}
00040
00041 private:
00042 mutable std::map<std::string, bool> inner;
00043
00044
00045 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00046
00047 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00048 PyObject *method = vtable[method_index];
00049 if (!method) {
00050 swig::PyObject_var name = PyString_FromString(method_name);
00051 method = PyObject_GetAttr(swig_get_self(), name);
00052 if (method == NULL) {
00053 std::string msg = "Method in class gr_prefs doesn't exist, undefined ";
00054 msg += method_name;
00055 Swig::DirectorMethodException::raise(msg.c_str());
00056 }
00057 vtable[method_index] = method;
00058 };
00059 return method;
00060 }
00061 private:
00062 mutable swig::PyObject_var vtable[6];
00063 #endif
00064
00065 };
00066
00067
00068 class SwigDirector_feval_dd : public gr_feval_dd, public Swig::Director {
00069
00070 public:
00071 SwigDirector_feval_dd(PyObject *self);
00072 virtual ~SwigDirector_feval_dd();
00073 virtual double eval(double x);
00074
00075
00076
00077 public:
00078 bool swig_get_inner(const char* name) const {
00079 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00080 return (iv != inner.end() ? iv->second : false);
00081 }
00082
00083 void swig_set_inner(const char* name, bool val) const
00084 { inner[name] = val;}
00085
00086 private:
00087 mutable std::map<std::string, bool> inner;
00088
00089
00090 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00091
00092 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00093 PyObject *method = vtable[method_index];
00094 if (!method) {
00095 swig::PyObject_var name = PyString_FromString(method_name);
00096 method = PyObject_GetAttr(swig_get_self(), name);
00097 if (method == NULL) {
00098 std::string msg = "Method in class feval_dd doesn't exist, undefined ";
00099 msg += method_name;
00100 Swig::DirectorMethodException::raise(msg.c_str());
00101 }
00102 vtable[method_index] = method;
00103 };
00104 return method;
00105 }
00106 private:
00107 mutable swig::PyObject_var vtable[1];
00108 #endif
00109
00110 };
00111
00112
00113 class SwigDirector_feval_cc : public gr_feval_cc, public Swig::Director {
00114
00115 public:
00116 SwigDirector_feval_cc(PyObject *self);
00117 virtual ~SwigDirector_feval_cc();
00118 virtual gr_complex eval(gr_complex x);
00119
00120
00121
00122 public:
00123 bool swig_get_inner(const char* name) const {
00124 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00125 return (iv != inner.end() ? iv->second : false);
00126 }
00127
00128 void swig_set_inner(const char* name, bool val) const
00129 { inner[name] = val;}
00130
00131 private:
00132 mutable std::map<std::string, bool> inner;
00133
00134
00135 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00136
00137 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00138 PyObject *method = vtable[method_index];
00139 if (!method) {
00140 swig::PyObject_var name = PyString_FromString(method_name);
00141 method = PyObject_GetAttr(swig_get_self(), name);
00142 if (method == NULL) {
00143 std::string msg = "Method in class feval_cc doesn't exist, undefined ";
00144 msg += method_name;
00145 Swig::DirectorMethodException::raise(msg.c_str());
00146 }
00147 vtable[method_index] = method;
00148 };
00149 return method;
00150 }
00151 private:
00152 mutable swig::PyObject_var vtable[1];
00153 #endif
00154
00155 };
00156
00157
00158 class SwigDirector_feval_ll : public gr_feval_ll, public Swig::Director {
00159
00160 public:
00161 SwigDirector_feval_ll(PyObject *self);
00162 virtual ~SwigDirector_feval_ll();
00163 virtual long eval(long x);
00164
00165
00166
00167 public:
00168 bool swig_get_inner(const char* name) const {
00169 std::map<std::string, bool>::const_iterator iv = inner.find(name);
00170 return (iv != inner.end() ? iv->second : false);
00171 }
00172
00173 void swig_set_inner(const char* name, bool val) const
00174 { inner[name] = val;}
00175
00176 private:
00177 mutable std::map<std::string, bool> inner;
00178
00179
00180 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00181
00182 PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00183 PyObject *method = vtable[method_index];
00184 if (!method) {
00185 swig::PyObject_var name = PyString_FromString(method_name);
00186 method = PyObject_GetAttr(swig_get_self(), name);
00187 if (method == NULL) {
00188 std::string msg = "Method in class feval_ll doesn't exist, undefined ";
00189 msg += method_name;
00190 Swig::DirectorMethodException::raise(msg.c_str());
00191 }
00192 vtable[method_index] = method;
00193 };
00194 return method;
00195 }
00196 private:
00197 mutable swig::PyObject_var vtable[1];
00198 #endif
00199
00200 };
00201
00202
00203 #endif