]> sigrok.org Git - pulseview.git/commitdiff
Added AnalogSignal::analog_data accessor function
authorJoel Holdsworth <redacted>
Sat, 18 Jan 2014 21:09:38 +0000 (21:09 +0000)
committerJoel Holdsworth <redacted>
Sat, 18 Jan 2014 21:34:38 +0000 (21:34 +0000)
pv/view/analogsignal.cpp
pv/view/analogsignal.h

index eb828a1bfff61c93b58386618e03cb534f6ff850..9cc3547d272996a717cb7ebfe36c004a14ef7ce1 100644 (file)
@@ -57,7 +57,12 @@ AnalogSignal::~AnalogSignal()
 {
 }
 
-boost::shared_ptr<pv::data::SignalData> AnalogSignal::data() const
+shared_ptr<pv::data::SignalData> AnalogSignal::data() const
+{
+       return _data;
+}
+
+shared_ptr<pv::data::Analog> AnalogSignal::analog_data() const
 {
        return _data;
 }
index 279ed108938c7538ec9a293fa96712cc538cb18e..4b7b3bc3ec649a7be07495759342f467ead1aff8 100644 (file)
@@ -49,6 +49,8 @@ public:
 
        boost::shared_ptr<pv::data::SignalData> data() const;
 
+       boost::shared_ptr<pv::data::Analog> analog_data() const;
+
        void set_scale(float scale);
 
        /**