diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-11 14:44:41 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-11 14:44:41 +0100 |
commit | 838decf2821aba49d2256f4d27a35b09394336fe (patch) | |
tree | d39f9d64146b89bf42f09e8d686a42f7933c14b5 /trace_parser.hpp | |
parent | 68b60dfe281a0a69f0303e70999c2ad02d150dd3 (diff) |
Interleave parse_xxx and scan_xxx methods.
Makes much easier to read/maintain.
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r-- | trace_parser.hpp | 57 |
1 files changed, 18 insertions, 39 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp index 1a2f9e1..962c323 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -29,7 +29,6 @@ #include <iostream> #include <list> -#include <set> #include "trace_file.hpp" #include "trace_format.hpp" @@ -127,80 +126,60 @@ protected: BitmaskSig *parse_bitmask_sig(); void parse_enter(void); - - Call *parse_leave(void); - - bool parse_call_details(Call *call); - - void parse_arg(Call *call); - - Value *parse_value(void); - - Value *parse_sint(); - - Value *parse_uint(); - - Value *parse_float(); - - Value *parse_double(); - - Value *parse_string(); - - Value *parse_enum(); - - Value *parse_bitmask(); - - Value *parse_array(void); - - Value *parse_blob(void); - - Value *parse_struct(); - - Value *parse_opaque(); - - const char * read_string(void); - - unsigned long long read_uint(void); - - inline int read_byte(void); - -protected: void scan_enter(void); + Call *parse_leave(void); Call *scan_leave(void); + bool parse_call_details(Call *call); bool scan_call_details(Call *call); + void parse_arg(Call *call); void scan_arg(Call *call); + Value *parse_value(void); void scan_value(void); + Value *parse_sint(); void scan_sint(); + Value *parse_uint(); void scan_uint(); + Value *parse_float(); void scan_float(); + Value *parse_double(); void scan_double(); + Value *parse_string(); void scan_string(); + Value *parse_enum(); void scan_enum(); + Value *parse_bitmask(); void scan_bitmask(); + Value *parse_array(void); void scan_array(void); + Value *parse_blob(void); void scan_blob(void); + Value *parse_struct(); void scan_struct(); + Value *parse_opaque(); void scan_opaque(); + const char * read_string(void); void skip_string(void); + unsigned long long read_uint(void); void skip_uint(void); + inline int read_byte(void); inline void skip_byte(void); }; |