nx_metadata_sdk  1.0
Metadata SDK
color_type.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2 
3 #pragma once
4 
5 #include <string>
6 #include <vector>
7 
8 #include <nx/kit/json.h>
9 
10 namespace nx {
11 namespace vms_server_plugins {
12 namespace analytics {
13 namespace stub {
14 namespace modules {
15 namespace standard_taxonomy {
16 
17 struct ColorType
18 {
19  struct Item
20  {
21  std::string name;
22  std::string rgb;
23  };
24 
25  std::string id;
26  std::string name;
27  std::vector<Item> items;
28 
29  // TODO: Add inheritance.
30 
31  ColorType(
32  std::string id,
33  std::string name,
34  std::vector<Item> items);
35 
36  nx::kit::Json serialize() const;
37 };
38 
39 } // namespace standard_taxonomy
40 } // namespace modules
41 } // namespace stub
42 } // namespace analytics
43 } // namespace vms_server_plugins
44 } // namespace nx
Definition: json.cpp:80
Definition: apple_utils.h:6