Turi Create  4.0
table.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef __TC_VISUALIZATION_TABLE
7 #define __TC_VISUALIZATION_TABLE
8 
9 #include <string>
10 #include <sstream>
11 
12 namespace turi {
13 
14  class sframe_reader;
15  class unity_sframe;
16 
17  namespace visualization {
18  std::string table_spec(const std::shared_ptr<unity_sframe>& table, const std::string& title, std::string table_id = "");
19  std::string table_data(const std::shared_ptr<unity_sframe>& table, sframe_reader* reader, size_t start, size_t end);
20  std::string table_accordion(const std::shared_ptr<unity_sframe>& table, const std::string& column_name, size_t row_idx);
21  std::string image_png_data(const flex_image& image, size_t resized_height);
22  }
23 
24 }
25 
26 #endif // __TC_VISUALIZATION_TABLE
image_type flex_image