API Documentation
Loading...
Searching...
No Matches
FeatureOptions.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/String.h>
4#include <NDEVR/UUID.h>
5#include <NDEVR/Dictionary.h>
6#include <NDEVR/Set.h>
7namespace NDEVR
8{
10 {
11 public:
12 static FeatureOptions& Default();
13 static void ThrowIfNotEnabled(const String& resource);
14 static void EnableOption(const String& resource, const String& password);
15 static void DisableOption(const String& resource);
16 static void SetCredentialOwner(const String& owner, const String& password);
17 static String CredentialOwner();
18 static bool IsSoftwareActivated();
19 static TimeSpan SoftwareActivationTimespan();
20 static bool IsFeatureEnabled(const String& resource);
86 public:
87 static void SetCheckActivationOverride(std::function<void()> function);
88 public:
89 void performAudit();
90 protected:
91 static std::function<void()> s_check_activation_function;
92 #if NDEVR_SECURITY
94 #else
95 Set<String> m_features;
96 #endif
98 };
99}
#define NDEVR_BASE_API
Definition DLLInfo.h:78
Definition Dictionary.h:48
Definition FeatureOptions.h:10
static String supports_gps
Definition FeatureOptions.h:42
static String supports_lock_camera
Definition FeatureOptions.h:72
static String supports_rotate_command
Definition FeatureOptions.h:54
static String supports_project_save
Definition FeatureOptions.h:73
static String supports_imports
Definition FeatureOptions.h:75
static String supports_coordinate_modes
Definition FeatureOptions.h:28
static String supports_snaps
Definition FeatureOptions.h:26
static String supports_exports
Definition FeatureOptions.h:74
static String supports_create_material
Definition FeatureOptions.h:76
static String supports_invert_normals_command
Definition FeatureOptions.h:59
static String supports_edit_selection_model_single
Definition FeatureOptions.h:65
static String supports_managed_wifi
Definition FeatureOptions.h:45
static String supports_grips
Definition FeatureOptions.h:24
static String supports_layer_edit_dialog
Definition FeatureOptions.h:35
static String supports_pattern_edit_dialog
Definition FeatureOptions.h:34
static String supports_multipoint_transform_command
Definition FeatureOptions.h:56
static String supports_material_edit_widget
Definition FeatureOptions.h:43
static String supports_touch_mode
Definition FeatureOptions.h:25
static String supports_rubber_stamp_command
Definition FeatureOptions.h:51
static String supports_add_mask_command
Definition FeatureOptions.h:49
static String supports_geo_reference
Definition FeatureOptions.h:79
static String supports_moveable_tabs
Definition FeatureOptions.h:83
static String supports_model_material_edit_dialog
Definition FeatureOptions.h:39
static String supports_edit_selection_vertex_rectangle
Definition FeatureOptions.h:66
static String supports_flip_command
Definition FeatureOptions.h:50
static std::function< void()> s_check_activation_function
Definition FeatureOptions.h:91
static String supports_3D_draw_commands
Definition FeatureOptions.h:70
static String supports_erase_command
Definition FeatureOptions.h:48
static String supports_scan_calibration
Definition FeatureOptions.h:71
static String supports_group_command
Definition FeatureOptions.h:58
static String supports_offset_command
Definition FeatureOptions.h:55
static String supports_filter_command
Definition FeatureOptions.h:61
static String supports_scale_command
Definition FeatureOptions.h:53
static String supports_deployment_edit_dialog
Definition FeatureOptions.h:36
static String supports_scanner
Definition FeatureOptions.h:21
static String supports_no_activation
Definition FeatureOptions.h:84
static String supports_network
Definition FeatureOptions.h:44
static String supports_station_edit_dialog
Definition FeatureOptions.h:32
static String supports_explode_command
Definition FeatureOptions.h:57
static String supports_demo_activation
Definition FeatureOptions.h:85
static String supports_model_tile
Definition FeatureOptions.h:80
static String supports_reports
Definition FeatureOptions.h:37
static String supports_fill_holes_command
Definition FeatureOptions.h:62
static String supports_smooth_command
Definition FeatureOptions.h:60
static String supports_color_theme
Definition FeatureOptions.h:22
static String supports_project_edit_dialog
Definition FeatureOptions.h:29
static String supports_text_edit_dialog
Definition FeatureOptions.h:33
static String supports_vertex_table
Definition FeatureOptions.h:40
static String supports_edit_selection_inclusion_exclusion
Definition FeatureOptions.h:68
static String supports_camera_edit_dialog
Definition FeatureOptions.h:38
static String supports_registration_command
Definition FeatureOptions.h:64
String m_owner
Definition FeatureOptions.h:97
static String supports_surface_command
Definition FeatureOptions.h:63
static String supports_print
Definition FeatureOptions.h:41
static String supports_model_library
Definition FeatureOptions.h:27
static String supports_material_edit_dialog
Definition FeatureOptions.h:30
static String supports_io_factory_write
Definition FeatureOptions.h:81
static String supports_print_dialog
Definition FeatureOptions.h:23
static String supports_create_layers
Definition FeatureOptions.h:78
static String supports_edit_selection_vertex_polygon
Definition FeatureOptions.h:67
static String supports_io_factory_read
Definition FeatureOptions.h:82
static String supports_geometry_edit_dialog
Definition FeatureOptions.h:31
static String supports_layers
Definition FeatureOptions.h:77
static String supports_material_mode_widget
Definition FeatureOptions.h:69
Dictionary< UUID, String > m_features
Definition FeatureOptions.h:93
static String supports_editing_features
Definition FeatureOptions.h:47
static String supports_thickness_command
Definition FeatureOptions.h:52
static String supports_line_of_sight
Definition FeatureOptions.h:46
Definition Model.h:51
Definition String.h:40
Definition TimeSpan.h:40
Definition ACIColor.h:37