#include <libsigrok/libsigrok.h>
using boost::bind;
-using boost::function;
+using std::function;
using boost::optional;
using std::make_pair;
using std::pair;
#ifndef PULSEVIEW_PV_PROP_BINDING_DEVICEOPTIONS_H
#define PULSEVIEW_PV_PROP_BINDING_DEVICEOPTIONS_H
-#include <boost/function.hpp>
#include <boost/optional.hpp>
#include <QString>
void bind_bool(const QString &name, int key);
void bind_enum(const QString &name, int key,
GVariant *const gvar_list,
- boost::function<QString (GVariant*)> printer = print_gvariant);
+ std::function<QString (GVariant*)> printer = print_gvariant);
void bind_int(const QString &name, int key, QString suffix,
boost::optional< std::pair<int64_t, int64_t> > range);
#include <glib.h>
-#include <boost/function.hpp>
-
#include <QString>
#include <QWidget>
Q_OBJECT;
public:
- typedef boost::function<GVariant* ()> Getter;
- typedef boost::function<void (GVariant*)> Setter;
+ typedef std::function<GVariant* ()> Getter;
+ typedef std::function<void (GVariant*)> Setter;
protected:
Property(QString name, Getter getter, Setter setter);
#include <QDebug>
-using boost::function;
using std::dynamic_pointer_cast;
+using std::function;
using std::lock_guard;
using std::mutex;
using std::list;
#ifndef PULSEVIEW_PV_SIGSESSION_H
#define PULSEVIEW_PV_SIGSESSION_H
-#include <boost/function.hpp>
-
#include <map>
#include <memory>
#include <mutex>
capture_state get_capture_state() const;
- void start_capture(boost::function<void (const QString)> error_handler);
+ void start_capture(std::function<void (const QString)> error_handler);
void stop_capture();
static sr_input* load_input_file_format(
const std::string &filename,
- boost::function<void (const QString)> error_handler,
+ std::function<void (const QString)> error_handler,
sr_input_format *format = NULL);
void sample_thread_proc(std::shared_ptr<device::DevInst> dev_inst,
- boost::function<void (const QString)> error_handler);
+ std::function<void (const QString)> error_handler);
void feed_in_header(const sr_dev_inst *sdi);
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include "storesession.h"
#include <pv/sigsession.h>
#include <extdef.h>
-#include <math.h>
+#include <cassert>
+#include <cmath>
#include <QFormLayout>
#include <QToolBar>
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include "view.h"
#include "viewport.h"