Turi Create  4.0
vega_data.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_VEGA_DATA
7 #define __TC_VEGA_DATA
8 
9 #include "transformation.hpp"
10 
11 namespace turi {
12  namespace visualization {
13  class EXPORT vega_data {
14  private:
15  bool m_has_spec = false;
16  protected:
17  std::stringstream m_spec;
18 
19  public:
20  vega_data();
21 
22  struct Image {
23  size_t idx;
24  std::string column;
25  flex_image img;
26  };
27 
28  virtual vega_data& operator<<(const std::string&);
29  virtual std::string get_data_spec(double progress);
30  };
31  }
32 }
33 
34 #endif
image_type flex_image