nx_metadata_sdk  1.0
Metadata SDK
attribute.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 #include <nx/vms_server_plugins/analytics/stub/utils.h>
11 
12 namespace nx {
13 namespace vms_server_plugins {
14 namespace analytics {
15 namespace stub {
16 namespace modules {
17 namespace standard_taxonomy {
18 
19 struct Attribute
20 {
21  std::string name;
22  std::string type;
23  std::string subtype;
24  SimpleOptional<int> minValue;
25  SimpleOptional<int> maxValue;
26  std::string unit;
27 
28  Attribute() = default;
29 
30  Attribute(
31  std::string name,
32  std::string type,
33  std::string subtype = std::string(),
36  std::string unit = std::string());
37 
38  nx::kit::Json serialize() const;
39 };
40 
41 } // namespace standard_taxonomy
42 } // namespace modules
43 } // namespace stub
44 } // namespace analytics
45 } // namespace vms_server_plugins
46 } // namespace nx
Definition: json.cpp:80
Definition: apple_utils.h:6