gnuradio_swig_py_general.h

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.38
00004  * 
00005  * This file is not intended to be easily readable and contains a number of 
00006  * coding conventions designed to improve portability and efficiency. Do not make
00007  * changes to this file unless you know what you are doing--modify the SWIG 
00008  * interface file instead. 
00009  * ----------------------------------------------------------------------------- */
00010 
00011 #ifndef SWIG_gnuradio_swig_py_general_WRAP_H_
00012 #define SWIG_gnuradio_swig_py_general_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 /* Internal Director utilities */
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 /* VTable implementation */
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::SwigVar_PyObject name = SWIG_Python_str_FromChar(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::SwigVar_PyObject vtable[6];
00063 #endif
00064 
00065 };
00066 
00067 
00068 class SwigDirector_feval_dd : public gr_py_feval_dd, public Swig::Director {
00069 
00070 public:
00071     SwigDirector_feval_dd(PyObject *self);
00072     virtual double eval(double x);
00073     virtual double evalSwigPublic(double x) {
00074       return gr_feval_dd::eval(x);
00075     }
00076     virtual ~SwigDirector_feval_dd();
00077 
00078 
00079 /* Internal Director utilities */
00080 public:
00081     bool swig_get_inner(const char* name) const {
00082       std::map<std::string, bool>::const_iterator iv = inner.find(name);
00083       return (iv != inner.end() ? iv->second : false);
00084     }
00085 
00086     void swig_set_inner(const char* name, bool val) const
00087     { inner[name] = val;}
00088 
00089 private:
00090     mutable std::map<std::string, bool> inner;
00091 
00092 
00093 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00094 /* VTable implementation */
00095     PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00096       PyObject *method = vtable[method_index];
00097       if (!method) {
00098         swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
00099         method = PyObject_GetAttr(swig_get_self(), name);
00100         if (method == NULL) {
00101           std::string msg = "Method in class feval_dd doesn't exist, undefined ";
00102           msg += method_name;
00103           Swig::DirectorMethodException::raise(msg.c_str());
00104         }
00105         vtable[method_index] = method;
00106       };
00107       return method;
00108     }
00109 private:
00110     mutable swig::SwigVar_PyObject vtable[1];
00111 #endif
00112 
00113 };
00114 
00115 
00116 class SwigDirector_feval_cc : public gr_py_feval_cc, public Swig::Director {
00117 
00118 public:
00119     SwigDirector_feval_cc(PyObject *self);
00120     virtual gr_complex eval(gr_complex x);
00121     virtual gr_complex evalSwigPublic(gr_complex x) {
00122       return gr_feval_cc::eval(x);
00123     }
00124     virtual ~SwigDirector_feval_cc();
00125 
00126 
00127 /* Internal Director utilities */
00128 public:
00129     bool swig_get_inner(const char* name) const {
00130       std::map<std::string, bool>::const_iterator iv = inner.find(name);
00131       return (iv != inner.end() ? iv->second : false);
00132     }
00133 
00134     void swig_set_inner(const char* name, bool val) const
00135     { inner[name] = val;}
00136 
00137 private:
00138     mutable std::map<std::string, bool> inner;
00139 
00140 
00141 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00142 /* VTable implementation */
00143     PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00144       PyObject *method = vtable[method_index];
00145       if (!method) {
00146         swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
00147         method = PyObject_GetAttr(swig_get_self(), name);
00148         if (method == NULL) {
00149           std::string msg = "Method in class feval_cc doesn't exist, undefined ";
00150           msg += method_name;
00151           Swig::DirectorMethodException::raise(msg.c_str());
00152         }
00153         vtable[method_index] = method;
00154       };
00155       return method;
00156     }
00157 private:
00158     mutable swig::SwigVar_PyObject vtable[1];
00159 #endif
00160 
00161 };
00162 
00163 
00164 class SwigDirector_feval_ll : public gr_py_feval_ll, public Swig::Director {
00165 
00166 public:
00167     SwigDirector_feval_ll(PyObject *self);
00168     virtual long eval(long x);
00169     virtual long evalSwigPublic(long x) {
00170       return gr_feval_ll::eval(x);
00171     }
00172     virtual ~SwigDirector_feval_ll();
00173 
00174 
00175 /* Internal Director utilities */
00176 public:
00177     bool swig_get_inner(const char* name) const {
00178       std::map<std::string, bool>::const_iterator iv = inner.find(name);
00179       return (iv != inner.end() ? iv->second : false);
00180     }
00181 
00182     void swig_set_inner(const char* name, bool val) const
00183     { inner[name] = val;}
00184 
00185 private:
00186     mutable std::map<std::string, bool> inner;
00187 
00188 
00189 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00190 /* VTable implementation */
00191     PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00192       PyObject *method = vtable[method_index];
00193       if (!method) {
00194         swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
00195         method = PyObject_GetAttr(swig_get_self(), name);
00196         if (method == NULL) {
00197           std::string msg = "Method in class feval_ll doesn't exist, undefined ";
00198           msg += method_name;
00199           Swig::DirectorMethodException::raise(msg.c_str());
00200         }
00201         vtable[method_index] = method;
00202       };
00203       return method;
00204     }
00205 private:
00206     mutable swig::SwigVar_PyObject vtable[1];
00207 #endif
00208 
00209 };
00210 
00211 
00212 class SwigDirector_feval : public gr_py_feval, public Swig::Director {
00213 
00214 public:
00215     SwigDirector_feval(PyObject *self);
00216     virtual void eval();
00217     virtual void evalSwigPublic() {
00218       gr_feval::eval();
00219     }
00220     virtual ~SwigDirector_feval();
00221 
00222 
00223 /* Internal Director utilities */
00224 public:
00225     bool swig_get_inner(const char* name) const {
00226       std::map<std::string, bool>::const_iterator iv = inner.find(name);
00227       return (iv != inner.end() ? iv->second : false);
00228     }
00229 
00230     void swig_set_inner(const char* name, bool val) const
00231     { inner[name] = val;}
00232 
00233 private:
00234     mutable std::map<std::string, bool> inner;
00235 
00236 
00237 #if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
00238 /* VTable implementation */
00239     PyObject *swig_get_method(size_t method_index, const char *method_name) const {
00240       PyObject *method = vtable[method_index];
00241       if (!method) {
00242         swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
00243         method = PyObject_GetAttr(swig_get_self(), name);
00244         if (method == NULL) {
00245           std::string msg = "Method in class feval doesn't exist, undefined ";
00246           msg += method_name;
00247           Swig::DirectorMethodException::raise(msg.c_str());
00248         }
00249         vtable[method_index] = method;
00250       };
00251       return method;
00252     }
00253 private:
00254     mutable swig::SwigVar_PyObject vtable[1];
00255 #endif
00256 
00257 };
00258 
00259 
00260 #endif

Generated on Thu Mar 5 09:01:10 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8