X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.hpp;h=6e5749a31ee86daac20bf38f2b963a66ed69ebb3;hb=5e6967cb2bcacbfb9e5b627becb6752621949998;hp=51e12cb984db45675ac8a47886d771ebe8f538ed;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/data/logic.hpp b/pv/data/logic.hpp index 51e12cb9..6e5749a3 100644 --- a/pv/data/logic.hpp +++ b/pv/data/logic.hpp @@ -14,46 +14,46 @@ * 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 + * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_DATA_LOGIC_H -#define PULSEVIEW_PV_DATA_LOGIC_H +#ifndef PULSEVIEW_PV_DATA_LOGIC_HPP +#define PULSEVIEW_PV_DATA_LOGIC_HPP #include "signaldata.hpp" #include -#include namespace pv { namespace data { -class LogicSnapshot; +class LogicSegment; class Logic : public SignalData { public: Logic(unsigned int num_channels); - int get_num_channels() const; + unsigned int num_channels() const; - void push_snapshot( - std::shared_ptr &snapshot); + void push_segment( + std::shared_ptr &segment); - std::deque< std::shared_ptr >& - get_snapshots(); + const std::deque< std::shared_ptr >& + logic_segments() const; + + std::vector< std::shared_ptr > segments() const; void clear(); - uint64_t get_max_sample_count() const; + uint64_t max_sample_count() const; private: const unsigned int num_channels_; - std::deque< std::shared_ptr > snapshots_; + std::deque< std::shared_ptr > segments_; }; } // namespace data } // namespace pv -#endif // PULSEVIEW_PV_DATA_LOGIC_H +#endif // PULSEVIEW_PV_DATA_LOGIC_HPP