diff options
author | Zack Rusin <zack@kde.org> | 2011-08-25 23:22:30 -0400 |
---|---|---|
committer | Zack Rusin <zack@kde.org> | 2011-08-27 01:44:01 -0400 |
commit | 712429a22a8cc9d51b620d433ade6d327fbabbf0 (patch) | |
tree | 04989135153ce0eec26ad85a3f508c31e5209ab6 /trace_parser.hpp | |
parent | 07348d58030f889a4ec11bfcef9a32628e55afa4 (diff) |
Some initial thoughts on the on-demand loading api.
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r-- | trace_parser.hpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp index 4fff9ad..a000986 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -30,14 +30,13 @@ #include <iostream> #include <list> +#include "trace_file.hpp" #include "trace_format.hpp" #include "trace_model.hpp" namespace Trace { -class File; - class Parser { protected: @@ -73,6 +72,21 @@ public: Call *parse_call(void); + bool supportsOffsets() const + { + return file-supportsOffsets(); + } + + File::Offset currentOffset() + { + return file->currentOffset(); + } + + void setCurrentOffset(const File::Offset &offset) + { + file->setCurrentOffset(offset); + } + protected: void parse_enter(void); |