#include "device.hpp"
#include <pv/prop/bool.hpp>
-#include <pv/prop/double.hpp>
#include <pv/prop/enum.hpp>
#include <pv/prop/int.hpp>
using sigrok::Error;
using pv::prop::Bool;
-using pv::prop::Double;
using pv::prop::Enum;
using pv::prop::Int;
using pv::prop::Property;
using std::max;
using std::min;
using std::list;
-using std::map;
-using std::pair;
using std::shared_ptr;
using std::make_shared;
using std::vector;
using std::recursive_mutex;
using std::max;
using std::min;
-using std::pair;
using std::shared_ptr;
using std::vector;
#include <cassert>
#include <cstdlib>
#include <cstring>
-#include <vector>
using std::lock_guard;
using std::min;
using std::recursive_mutex;
-using std::vector;
namespace pv {
namespace data {
#include <stdexcept>
#include <sstream>
#include <string>
-#include <vector>
#include <libsigrokcxx/libsigrokcxx.hpp>
-#include <boost/algorithm/string/join.hpp>
#include <boost/filesystem.hpp>
#include <pv/devices/hardwaredevice.hpp>
-using boost::algorithm::join;
-
using std::bind;
-using std::dynamic_pointer_cast;
using std::list;
using std::map;
using std::placeholders::_1;
using std::placeholders::_2;
-using std::remove_if;
-using std::runtime_error;
using std::shared_ptr;
using std::string;
-using std::vector;
using Glib::VariantBase;
using sigrok::ConfigKey;
using sigrok::Context;
using sigrok::Driver;
-using sigrok::SessionDevice;
namespace pv {
#include "device.hpp"
-using std::map;
-using std::set;
using std::shared_ptr;
using sigrok::ConfigKey;
using sigrok::Capability;
-using sigrok::Error;
using Glib::VariantBase;
using Glib::Variant;
#include "hardwaredevice.hpp"
-using std::dynamic_pointer_cast;
using std::shared_ptr;
using std::static_pointer_cast;
using std::string;
using sigrok::ConfigKey;
using sigrok::Driver;
-using sigrok::Error;
using pv::devices::HardwareDevice;
using std::bind;
using std::dynamic_pointer_cast;
-using std::list;
using std::make_shared;
using std::map;
using std::placeholders::_1;
#define NOGDI
#define NORESOURCE
#endif
-#include <boost/thread/locks.hpp>
-#include <boost/thread/shared_mutex.hpp>
#include <QCheckBox>
#include <QFormLayout>
using namespace Qt;
-using boost::shared_lock;
-using boost::shared_mutex;
-using std::lock_guard;
using std::map;
-using std::mutex;
-using std::set;
using std::shared_ptr;
using std::make_shared;
using std::unordered_set;
#define NOGDI
#define NORESOURCE
#endif
-#include <boost/thread/locks.hpp>
-#include <boost/thread/shared_mutex.hpp>
#include <QFileInfo>
#include <libsigrokdecode/libsigrokdecode.h>
#endif
-using boost::shared_lock;
-using boost::shared_mutex;
-using boost::unique_lock;
-
using std::bad_alloc;
using std::dynamic_pointer_cast;
using std::find_if;
using std::pair;
using std::recursive_mutex;
using std::runtime_error;
-using std::set;
using std::shared_ptr;
using std::string;
using std::unordered_set;
using sigrok::ConfigKey;
using sigrok::DatafeedCallbackFunction;
using sigrok::Error;
-using sigrok::Header;
using sigrok::InputFormat;
using sigrok::Logic;
using sigrok::Meta;
-using sigrok::OutputFormat;
using sigrok::Packet;
-using sigrok::PacketPayload;
using sigrok::Session;
-using sigrok::SessionDevice;
using Glib::VariantBase;
-using Glib::Variant;
namespace pv {
Session::Session(DeviceManager &device_manager, QString name) :
#define NOGDI
#define NORESOURCE
#endif
-#include <boost/thread/shared_mutex.hpp>
#include <QObject>
#include <QSettings>
#define NOGDI
#define NORESOURCE
#endif
-#include <boost/thread/locks.hpp>
-#include <boost/thread/shared_mutex.hpp>
#include "storesession.hpp"
#include <libsigrokcxx/libsigrokcxx.hpp>
-using boost::shared_lock;
-using boost::shared_mutex;
-
using std::deque;
-using std::dynamic_pointer_cast;
using std::ios_base;
using std::lock_guard;
using std::make_pair;
using std::min;
using std::mutex;
using std::pair;
-using std::set;
using std::shared_ptr;
using std::string;
using std::unordered_set;
#include <libsigrokcxx/libsigrokcxx.hpp>
using std::back_inserter;
-using std::cerr;
using std::copy;
-using std::endl;
using std::list;
using std::make_pair;
using std::map;
#include <cstdio>
#include <limits>
-using std::abs;
+using std::abs; // Force usage of std::abs() instead of C's abs().
using std::shared_ptr;
-using std::numeric_limits;
namespace pv {
namespace views {
#include <tuple>
#include <boost/functional/hash.hpp>
-#include <boost/thread/locks.hpp>
-#include <boost/thread/shared_mutex.hpp>
#include <QAction>
#include <QApplication>
#include <pv/widgets/decodergroupbox.hpp>
#include <pv/widgets/decodermenu.hpp>
-using boost::shared_lock;
-using boost::shared_mutex;
using std::all_of;
-using std::dynamic_pointer_cast;
using std::list;
-using std::lock_guard;
using std::make_pair;
using std::max;
using std::make_pair;
using std::count_if;
using std::dynamic_pointer_cast;
-using std::max;
-using std::make_pair;
-using std::min;
-using std::pair;
using std::shared_ptr;
using std::stable_sort;
using std::vector;
using sigrok::ConfigKey;
using sigrok::Capability;
-using sigrok::Error;
using sigrok::Trigger;
-using sigrok::TriggerStage;
using sigrok::TriggerMatch;
using sigrok::TriggerMatchType;
#include "tracetreeitemowner.hpp"
#include "trace.hpp"
-using std::dynamic_pointer_cast;
using std::find;
using std::make_pair;
using std::max;
using std::min;
using std::pair;
-using std::set;
using std::shared_ptr;
using std::static_pointer_cast;
using std::vector;
#include <cmath>
#include <iostream>
#include <iterator>
-#include <mutex>
#include <unordered_set>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/serialization.hpp>
-#include <boost/thread/locks.hpp>
#include <QApplication>
#include <QHBoxLayout>
#include "decodetrace.hpp"
#endif
-using boost::shared_lock;
-using boost::shared_mutex;
using pv::data::SignalData;
using pv::data::Segment;
using std::back_inserter;
using std::copy_if;
using std::count_if;
-using std::deque;
using std::dynamic_pointer_cast;
using std::inserter;
-using std::list;
-using std::lock_guard;
using std::max;
using std::make_pair;
using std::make_shared;
using std::unordered_map;
using std::unordered_set;
using std::vector;
-using std::weak_ptr;
namespace pv {
namespace views {
#include "tracetreeitemowner.hpp"
#include "trace.hpp"
-using std::dynamic_pointer_cast;
-using std::max;
-using std::make_pair;
-using std::min;
-using std::pair;
-using std::set;
-using std::shared_ptr;
-using std::vector;
-
namespace pv {
namespace views {
namespace TraceView {
using std::back_inserter;
using std::copy;
using std::dynamic_pointer_cast;
-using std::max;
-using std::min;
-using std::none_of;
-using std::numeric_limits;
+using std::none_of; // Used in assert()s.
using std::shared_ptr;
using std::stable_sort;
using std::vector;
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#if 0
#include <extdef.h>
#include <cstdint>
using pv::data::AnalogSegment;
-#if 0
BOOST_AUTO_TEST_SUITE(AnalogSegmentTest)
void push_analog(AnalogSegment &s, unsigned int num_samples,
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#if 0
+
#include <libsigrokdecode/libsigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
#include <boost/test/unit_test.hpp>
using std::shared_ptr;
using std::vector;
-#if 0
BOOST_AUTO_TEST_SUITE(DecoderStackTest)
BOOST_AUTO_TEST_CASE(TwoDecoderStack)
#include <pv/data/logicsegment.hpp>
+#if 0
using pv::data::LogicSegment;
using std::vector;
+#endif
// Dummy, remove again when unit tests are fixed.
BOOST_AUTO_TEST_SUITE(DummyTestSuite)