projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix catching polymorphic types by value
[pulseview.git]
/
pv
/
data
/
decode
/
rowdata.hpp
diff --git
a/pv/data/decode/rowdata.hpp
b/pv/data/decode/rowdata.hpp
index b62711117d0c1a0066ad05570ca6ad7623e3073b..07cc41bf3eb1f8febf04c06595d8da2f142eb7da 100644
(file)
--- a/
pv/data/decode/rowdata.hpp
+++ b/
pv/data/decode/rowdata.hpp
@@
-22,8
+22,12
@@
#include <vector>
#include <vector>
+#include <libsigrokdecode/libsigrokdecode.h>
+
#include "annotation.hpp"
#include "annotation.hpp"
+using std::vector;
+
namespace pv {
namespace data {
namespace decode {
namespace pv {
namespace data {
namespace decode {
@@
-40,17
+44,17
@@
public:
* Extracts sorted annotations between two period into a vector.
*/
void get_annotation_subset(
* Extracts sorted annotations between two period into a vector.
*/
void get_annotation_subset(
-
std::
vector<pv::data::decode::Annotation> &dest,
+ vector<pv::data::decode::Annotation> &dest,
uint64_t start_sample, uint64_t end_sample) const;
uint64_t start_sample, uint64_t end_sample) const;
- void
push_annotation(const Annotation &
a);
+ void
emplace_annotation(srd_proto_data *pdat
a);
private:
private:
-
std::
vector<Annotation> annotations_;
+ vector<Annotation> annotations_;
};
};
-}
-}
//
data
-}
//
pv
+}
// namespace decode
+}
// namespace
data
+}
// namespace
pv
#endif // PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP
#endif // PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP