Turi Create  4.0
types.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 #include <string>
7 
8 namespace turi {
9  namespace JSON {
10  namespace types {
11  static const std::string INTEGER = flex_type_enum_to_name(flex_type_enum::INTEGER);
12  static const std::string FLOAT = flex_type_enum_to_name(flex_type_enum::FLOAT);
13  static const std::string STRING = flex_type_enum_to_name(flex_type_enum::STRING);
14  static const std::string VECTOR = flex_type_enum_to_name(flex_type_enum::VECTOR);
15  static const std::string LIST = flex_type_enum_to_name(flex_type_enum::LIST);
16  static const std::string DICT = flex_type_enum_to_name(flex_type_enum::DICT);
17  static const std::string DATETIME = flex_type_enum_to_name(flex_type_enum::DATETIME);
19  static const std::string IMAGE = flex_type_enum_to_name(flex_type_enum::IMAGE);
20  static const std::string SARRAY = "SArray";
21  static const std::string SFRAME = "SFrame";
22  static const std::string SGRAPH = "SGraph";
23  };
24  }
25 }
const char * flex_type_enum_to_name(flex_type_enum en)