X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fdiagnostics%2Fgraph.h;h=268d74cb528aa8bbeba5e4199278a52b259502e7;hb=refs%2Ftags%2F2.0.0.2;hp=3f54c0a7c1b6f3ad9c18b9d84bade6b93192d4e1;hpb=d100d17e81ed61c7638b681989cfdab5276430db;p=casparcg diff --git a/common/diagnostics/graph.h b/common/diagnostics/graph.h index 3f54c0a7c..268d74cb5 100644 --- a/common/diagnostics/graph.h +++ b/common/diagnostics/graph.h @@ -51,11 +51,11 @@ struct color class graph { - friend safe_ptr create_graph(const std::string& name); - friend safe_ptr create_graph(const printer& parent_printer); - graph(const std::string& name); - graph(const printer& parent_printer); + friend void register_graph(const safe_ptr& graph); public: + graph(); + void set_text(const std::string& value); + void set_text(const std::wstring& value); void update_value(const std::string& name, double value); void set_value(const std::string& name, double value); void set_color(const std::string& name, color c); @@ -66,9 +66,9 @@ private: std::shared_ptr impl_; }; -safe_ptr create_graph(const std::string& name); -safe_ptr create_graph(const printer& parent_printer); - +void register_graph(const safe_ptr& graph); +void show_graphs(bool value); + //namespace v2 //{ //