Commit a24db9b 1 parent 94074fa commit a24db9b Copy full SHA for a24db9b
File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ namespace stf {
42
42
switch (rec->getId ()) {
43
43
case descriptors::internal::Descriptor::STF_COMMENT:
44
44
header_comments_.emplace_back (STFRecord::grabOwnership<CommentRecord>(rec));
45
+ header_comments_str_.emplace_back (header_comments_.back ()->getData ());
45
46
break ;
46
47
case descriptors::internal::Descriptor::STF_ISA:
47
48
stf_assert (!isa_, " Header has multiple ISA records" );
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ namespace stf {
37
37
protected:
38
38
STFRecord::ConstHandle<VersionRecord> version_; /* *< Version record */
39
39
std::vector<STFRecord::ConstHandle<CommentRecord>> header_comments_; /* *< Header commment records */
40
+ std::vector<std::string> header_comments_str_; /* * String type of header comments*/
40
41
std::vector<STFRecord::ConstHandle<TraceInfoRecord>> trace_info_records_; /* *< Trace info records */
41
42
STFRecord::ConstHandle<TraceInfoFeatureRecord> trace_features_; /* *< Trace feature records */
42
43
@@ -128,6 +129,17 @@ namespace stf {
128
129
return trace_features_;
129
130
}
130
131
132
+ /* *
133
+ * Gets the header comments
134
+ */
135
+ inline const std::vector<STFRecord::ConstHandle<CommentRecord>>& getHeaderComments () const {
136
+ return header_comments_;
137
+ }
138
+
139
+ inline const std::vector<std::string>& getHeaderCommentsString () const {
140
+ return header_comments_str_;
141
+ }
142
+
131
143
/* *
132
144
* Returns the number of records read so far
133
145
*/
You can’t perform that action at this time.
0 commit comments