7 #include <visualization/server/plot.hpp> 10 #include <unordered_map> 17 namespace visualization {
22 table(
const std::shared_ptr<unity_sframe>& sf, std::unique_ptr<sframe_reader> reader,
const std::string& title);
23 std::shared_ptr<unity_sframe> sf;
24 std::unique_ptr<sframe_reader> reader;
28 typedef std::unordered_map< std::string, Plot > plot_map;
29 typedef std::vector< table > table_vector;
31 static WebServer& get_instance();
35 std::string add_plot(
const Plot& plot);
36 std::string add_table(
const std::shared_ptr<unity_sframe>& table,
const std::string& title);
40 static std::string get_base_url();
41 static std::string get_url_for_plot(
const Plot& plot);
42 static std::string get_url_for_table(
const std::shared_ptr<unity_sframe>& table,
const std::string& title);
49 table_vector m_tables;
50 std::unique_ptr<Impl> m_impl;
53 extern std::string VISUALIZATION_WEB_SERVER_ROOT_DIRECTORY;