X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fanalogdatasnapshot.h;fp=pv%2Fanalogdatasnapshot.h;h=03184c0f3eb27253bc1bf63f47e5055dec71fb8b;hb=aba1dd166b90f3408cd9d2b23b906df081845563;hp=0000000000000000000000000000000000000000;hpb=949f80503dff6502f9624aae8fa1ba26f2ea6b6c;p=pulseview.git diff --git a/pv/analogdatasnapshot.h b/pv/analogdatasnapshot.h new file mode 100644 index 00000000..03184c0f --- /dev/null +++ b/pv/analogdatasnapshot.h @@ -0,0 +1,41 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef PULSEVIEW_PV_ANALOGDATASNAPSHOT_H +#define PULSEVIEW_PV_ANALOGDATASNAPSHOT_H + +#include "datasnapshot.h" + +#include +#include + +namespace pv { + +class AnalogDataSnapshot : public DataSnapshot +{ +public: + AnalogDataSnapshot(const sr_datafeed_analog &analog); + + void append_payload(const sr_datafeed_analog &analog); +}; + +} // namespace pv + +#endif // PULSEVIEW_PV_ANALOGDATASNAPSHOT_H