#include <gnuradio_swig_python.h>
Public Member Functions | |
SwigDirector_gr_prefs (PyObject *self) | |
virtual | ~SwigDirector_gr_prefs () |
virtual bool | has_section (std::string const section) |
Does section exist? | |
virtual bool | has_option (std::string const section, std::string const option) |
Does option exist? | |
virtual std::string const | get_string (std::string const section, std::string const option, std::string const default_val) |
If option exists return associated value; else default_val. | |
virtual bool | get_bool (std::string const section, std::string const option, bool default_val) |
If option exists and value can be converted to bool, return it; else default_val. | |
virtual long | get_long (std::string const section, std::string const option, long default_val) |
If option exists and value can be converted to long, return it; else default_val. | |
virtual double | get_double (std::string const section, std::string const option, double default_val) |
If option exists and value can be converted to double, return it; else default_val. | |
bool | swig_get_inner (const char *name) const |
void | swig_set_inner (const char *name, bool val) const |
SwigDirector_gr_prefs::SwigDirector_gr_prefs | ( | PyObject * | self | ) |
SwigDirector_gr_prefs::~SwigDirector_gr_prefs | ( | ) | [virtual] |
bool SwigDirector_gr_prefs::get_bool | ( | std::string const | section, | |
std::string const | option, | |||
bool | default_val | |||
) | [virtual] |
If option exists and value can be converted to bool, return it; else default_val.
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_From_bool(), SWIG_From_std_string(), and SWIG_IsOK.
double SwigDirector_gr_prefs::get_double | ( | std::string const | section, | |
std::string const | option, | |||
double | default_val | |||
) | [virtual] |
If option exists and value can be converted to double, return it; else default_val.
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsVal_double(), SWIG_ErrorType, SWIG_From_double, SWIG_From_std_string(), and SWIG_IsOK.
long SwigDirector_gr_prefs::get_long | ( | std::string const | section, | |
std::string const | option, | |||
long | default_val | |||
) | [virtual] |
If option exists and value can be converted to long, return it; else default_val.
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsVal_long(), SWIG_ErrorType, SWIG_From_long, SWIG_From_std_string(), and SWIG_IsOK.
std::string const SwigDirector_gr_prefs::get_string | ( | std::string const | section, | |
std::string const | option, | |||
std::string const | default_val | |||
) | [virtual] |
If option exists return associated value; else default_val.
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsPtr_std_string(), SWIG_ErrorType, SWIG_From_std_string(), SWIG_IsNewObj, SWIG_IsOK, and SWIG_TypeError.
bool SwigDirector_gr_prefs::has_option | ( | std::string const | section, | |
std::string const | option | |||
) | [virtual] |
Does option
exist?
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_From_std_string(), and SWIG_IsOK.
bool SwigDirector_gr_prefs::has_section | ( | std::string const | section | ) | [virtual] |
Does section
exist?
Reimplemented from gr_prefs.
References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_From_std_string(), and SWIG_IsOK.
bool SwigDirector_gr_prefs::swig_get_inner | ( | const char * | name | ) | const [inline] |
void SwigDirector_gr_prefs::swig_set_inner | ( | const char * | name, | |
bool | val | |||
) | const [inline] |