summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/staptree.h b/staptree.h
index de148ce0..791b56f4 100644
--- a/staptree.h
+++ b/staptree.h
@@ -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)
+ {}
};