#include "analog.h"
#include "analogsnapshot.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::deque;
+using std::max;
namespace pv {
namespace data {
#include "analogsnapshot.h"
-using namespace boost;
-using namespace std;
+using boost::lock_guard;
+using boost::recursive_mutex;
+using std::max;
+using std::max_element;
+using std::min;
+using std::min_element;
namespace pv {
namespace data {
#include "annotation.h"
-using namespace std;
-
namespace pv {
namespace data {
namespace decode {
#include <pv/view/logicsignal.h>
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::map;
+using std::string;
namespace pv {
namespace data {
#include <pv/data/decode/annotation.h>
#include <pv/view/logicsignal.h>
-using namespace boost;
-using namespace std;
+using boost::lock_guard;
+using boost::mutex;
+using boost::shared_ptr;
+using std::deque;
+using std::min;
+using std::list;
+using std::vector;
namespace pv {
namespace data {
srd_session_start(session);
for (int64_t i = 0;
- !this_thread::interruption_requested() && i < sample_count;
+ !boost::this_thread::interruption_requested() &&
+ i < sample_count;
i += DecodeChunkLength)
{
lock_guard<mutex> decode_lock(_global_decode_mutex);
#include "logic.h"
#include "logicsnapshot.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::deque;
+using std::max;
namespace pv {
namespace data {
#include "logicsnapshot.h"
-using namespace boost;
-using namespace std;
+using boost::lock_guard;
+using boost::recursive_mutex;
+using std::max;
+using std::min;
+using std::pair;
namespace pv {
namespace data {
#include <stdlib.h>
#include <string.h>
-using namespace boost;
+using boost::lock_guard;
+using boost::recursive_mutex;
namespace pv {
namespace data {
#include <libsigrok/libsigrok.h>
-using namespace std;
+using std::list;
+using std::map;
+using std::ostringstream;
+using std::runtime_error;
+using std::string;
namespace pv {
#include <libsigrok/libsigrok.h>
}
-using namespace std;
+using std::list;
+using std::string;
extern sr_context *sr_ctx;
#include <glib.h>
#include <libsigrok/libsigrok.h>
-using namespace boost;
-using namespace std;
+using std::list;
namespace pv {
#include <pv/prop/property.h>
-using namespace boost;
-using namespace std;
-
namespace pv {
namespace popups {
#include <pv/sigsession.h>
#include <pv/view/signal.h>
-using namespace boost;
using namespace Qt;
-using namespace std;
+using boost::shared_ptr;
+using std::vector;
namespace pv {
namespace popups {
#include "binding.h"
-using namespace boost;
+using boost::shared_ptr;
namespace pv {
namespace prop {
#include <pv/prop/int.h>
#include <pv/prop/string.h>
-using namespace boost;
-using namespace std;
+using boost::bind;
+using boost::none;
+using boost::shared_ptr;
+using std::map;
+using std::string;
namespace pv {
namespace prop {
#include <pv/prop/enum.h>
#include <pv/prop/int.h>
-using namespace boost;
-using namespace std;
+using boost::bind;
+using boost::function;
+using boost::optional;
+using boost::shared_ptr;
+using std::make_pair;
+using std::pair;
+using std::string;
+using std::vector;
namespace pv {
namespace prop {
#include "bool.h"
-using namespace std;
-using namespace boost;
-
namespace pv {
namespace prop {
#include "double.h"
-using namespace std;
-using namespace boost;
+using boost::optional;
+using std::pair;
namespace pv {
namespace prop {
#include "enum.h"
-using namespace boost;
-using namespace std;
+using std::pair;
+using std::vector;
namespace pv {
namespace prop {
#include "int.h"
-using namespace std;
-using namespace boost;
+using boost::optional;
+using std::max;
+using std::min;
+using std::pair;
namespace pv {
namespace prop {
#include "string.h"
-using namespace std;
-using namespace boost;
-
namespace pv {
namespace prop {
#include <QDebug>
-using namespace boost;
-using namespace std;
+using boost::dynamic_pointer_cast;
+using boost::function;
+using boost::lock_guard;
+using boost::mutex;
+using boost::shared_ptr;
+using std::map;
+using std::string;
+using std::vector;
namespace pv {
#include <pv/devicemanager.h>
#include <pv/popups/deviceoptions.h>
-using namespace std;
+using std::string;
namespace pv {
namespace toolbars {
void SamplingBar::on_device_selected()
{
- using namespace pv::popups;
+ using pv::popups::DeviceOptions;
if (_updating_device_selector)
return;
#include "pv/data/analogsnapshot.h"
#include "pv/view/view.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::max;
+using std::min;
+using std::deque;
namespace pv {
namespace view {
int y, int left, const int64_t start, const int64_t end,
const double pixels_offset, const double samples_per_pixel)
{
- using namespace Qt;
using pv::data::AnalogSnapshot;
AnalogSnapshot::EnvelopeSection e;
if (e.length < 2)
return;
- p.setPen(QPen(NoPen));
+ p.setPen(QPen(Qt::NoPen));
p.setBrush(_colour);
QRectF *const rects = new QRectF[e.length];
#include <extdef.h>
-using namespace boost;
+using boost::shared_ptr;
namespace pv {
namespace view {
#include <algorithm>
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::max;
+using std::make_pair;
+using std::min;
+using std::pair;
namespace pv {
namespace view {
#include <pv/widgets/decodergroupbox.h>
#include <pv/widgets/decodermenu.h>
-using namespace boost;
-using namespace std;
+using boost::dynamic_pointer_cast;
+using boost::shared_ptr;
+using std::list;
+using std::max;
+using std::map;
+using std::min;
+using std::vector;
namespace pv {
namespace view {
#include <pv/widgets/popup.h>
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::max;
+using std::make_pair;
+using std::pair;
+using std::vector;
namespace pv {
namespace view {
#include "pv/data/logicsnapshot.h"
#include "pv/view/view.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::deque;
+using std::max;
+using std::min;
+using std::pair;
+using std::vector;
namespace pv {
namespace view {
#include <pv/widgets/popup.h>
-using namespace boost;
-using namespace std;
+using namespace Qt;
+using boost::shared_ptr;
namespace pv {
namespace view {
void Ruler::paintEvent(QPaintEvent*)
{
- using namespace Qt;
const double SpacingIncrement = 32.0f;
const double MinValueSpacing = 32.0f;
#include <pv/widgets/popup.h>
-using namespace std;
-
namespace pv {
namespace view {
#include "pv/data/logic.h"
#include "pv/data/logicsnapshot.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using boost::weak_ptr;
+using std::deque;
+using std::list;
+using std::max;
+using std::min;
+using std::set;
+using std::vector;
namespace pv {
namespace view {
#include <boost/foreach.hpp>
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::max;
+using std::min;
+using std::vector;
namespace pv {
namespace view {
#include "popup.h"
-using namespace std;
+using std::max;
+using std::min;
namespace pv {
namespace widgets {
#include "../../pv/data/analogsnapshot.h"
-using namespace std;
-
using pv::data::AnalogSnapshot;
BOOST_AUTO_TEST_SUITE(AnalogSnapshotTest)
#include "../../pv/sigsession.h"
#include "../../pv/view/decodetrace.h"
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using pv::data::DecoderStack;
+using pv::data::decode::Decoder;
+using pv::view::DecodeTrace;
+using std::vector;
BOOST_AUTO_TEST_SUITE(DecoderStackTest)
BOOST_AUTO_TEST_CASE(TwoDecoderStack)
{
- using namespace pv;
-
sr_context *ctx = NULL;
BOOST_REQUIRE(sr_init(&ctx) == SR_OK);
ss.add_decoder(dec);
// Check the signals were created
- const vector< shared_ptr<view::DecodeTrace> > sigs =
+ const vector< shared_ptr<DecodeTrace> > sigs =
ss.get_decode_signals();
- shared_ptr<data::DecoderStack> dec0 = sigs[0]->decoder();
+ shared_ptr<DecoderStack> dec0 = sigs[0]->decoder();
BOOST_REQUIRE(dec0);
- shared_ptr<data::DecoderStack> dec1 = sigs[0]->decoder();
+ shared_ptr<DecoderStack> dec1 = sigs[0]->decoder();
BOOST_REQUIRE(dec1);
// Wait for the decode threads to complete
#include "../../pv/data/logicsnapshot.h"
-using namespace std;
-
using pv::data::LogicSnapshot;
+using std::vector;
BOOST_AUTO_TEST_SUITE(LogicSnapshotTest)