Modified header guards to match file names
[pulseview.git] / pv / data / analog.hpp
index cfc964e1872c2cd1ac0b33a66d9e9617b8a77566..777deb6d01b4e161905bb8830f184c1a0d164624 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_DATA_ANALOG_H
-#define PULSEVIEW_PV_DATA_ANALOG_H
+#ifndef PULSEVIEW_PV_DATA_ANALOG_HPP
+#define PULSEVIEW_PV_DATA_ANALOG_HPP
 
 #include "signaldata.hpp"
 
 namespace pv {
 namespace data {
 
-class AnalogSnapshot;
+class AnalogSegment;
 
 class Analog : public SignalData
 {
 public:
        Analog();
 
-       void push_snapshot(
-               std::shared_ptr<AnalogSnapshot> &snapshot);
+       void push_segment(
+               std::shared_ptr<AnalogSegment> &segment);
 
-       std::deque< std::shared_ptr<AnalogSnapshot> >&
-               get_snapshots();
+       const std::deque< std::shared_ptr<AnalogSegment> >&
+               analog_segments() const;
+
+       std::vector< std::shared_ptr<Segment> > segments() const;
 
        void clear();
 
        uint64_t get_max_sample_count() const;
 
 private:
-       std::deque< std::shared_ptr<AnalogSnapshot> > snapshots_;
+       std::deque< std::shared_ptr<AnalogSegment> > segments_;
 };
 
 } // namespace data
 } // namespace pv
 
-#endif // PULSEVIEW_PV_DATA_ANALOG_H
+#endif // PULSEVIEW_PV_DATA_ANALOG_HPP