diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-10-14 10:26:03 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-10-14 10:26:03 +0800 |
commit | 8c41e846e74026844d4b3e43778e53160f7dc27c (patch) | |
tree | ba2daa7a5fef99d3275b1f47047fc5935fda32d5 /staptree.h | |
parent | 6928ee0a21a1832c9845c125b0998d45b801af81 (diff) | |
parent | 1c1f1a255cd969934bb7ce1678f4a411337be6f9 (diff) | |
download | systemtap-steved-8c41e846e74026844d4b3e43778e53160f7dc27c.tar.gz systemtap-steved-8c41e846e74026844d4b3e43778e53160f7dc27c.tar.xz systemtap-steved-8c41e846e74026844d4b3e43778e53160f7dc27c.zip |
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.h')
-rw-r--r-- | staptree.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -373,10 +373,6 @@ struct print_format: public expression } }; - print_format() - : hist(NULL) - {} - std::string raw_components; std::vector<format_component> components; format_component delimiter; @@ -385,11 +381,17 @@ struct print_format: public expression static std::string components_to_string(std::vector<format_component> const & components); static std::vector<format_component> string_to_components(std::string const & str); - static bool parse_print(const std::string &name, bool &stream, - bool &format, bool &delim, bool &newline, bool &_char); + static print_format* create(const token *t); void print (std::ostream& o) const; void visit (visitor* u); + +private: + print_format(bool stream, bool format, bool delim, bool newline, bool _char): + print_to_stream(stream), print_with_format(format), + print_with_delim(delim), print_with_newline(newline), + print_char(_char), hist(NULL) + {} }; |