nx_metadata_sdk 1.0 Metadata SDK

enum_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 EnumType
18 {
19 std::string id;
20 std::string name;
21 std::vector<std::string> items;
22
23 // TODO: Add inheritance.
24
25 EnumType(
26 std::string id,
27 std::string name,
28 std::vector<std::string> items);
29
30 nx::kit::Json serialize() const;
31 };
32
33 } // namespace standard_taxonomy
34 } // namespace modules
35 } // namespace stub
36 } // namespace analytics
37 } // namespace vms_server_plugins
38 } // namespace nx
nx::vms_server_plugins::analytics::stub::modules::standard_taxonomy::EnumType
Definition: enum_type.h:17
nx::kit::detail::json11::Json
Definition: json.cpp:80
json.h
nx
Definition: apple_utils.h:6