NDEVR
API Documentation
ReportGeneratorSettings.h
1#pragma once
2#include "ReportGenerator/Headers/NCCustomReport.h"
3#include "Base/Headers/INIInterface.h"
4#include "Base/Headers/FileResource.h"
5#include "Base/Headers/Resource.h"
6namespace NDEVR
7{
13 {
14 public:
19 : INIInterface(FileResource::PathToProgramSettings().appendPath("report_generator.ini"))
21 {
22
23 }
24 INIFactory getINI() final override
25 {
26 INIFactory ini;
27 ini.addOption("path_to_nc_editor", path_to_nc_editor);
28 return ini;
29 }
33 {
34 static ReportGeneratorSettings settings;
35 return settings;
36 }
37 };
38}
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
Contains methods for getting information about particular OS directories or static program file direc...
Contains methods for easily reading and writing to an INI file including efficient casting,...
Definition INIReader.h:107
void addOption(const StringView &label, Resource< Vector< t_dims, t_type > > &mem_loc)
Registers a Vector Resource option that will be read/written by the factory.
Definition INIReader.h:141
INIInterface()
Constructs an INIInterface with no default INI file.
Dictionary< String, NCCustomReport * > custom_reports
Named custom report templates.
ReportGeneratorSettings()
Constructs settings, loading from the report_generator.ini file.
Resource< String > path_to_nc_editor
File path to the NCReport editor executable.
static ReportGeneratorSettings & DefaultSettings()
Returns the global singleton settings instance.
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Resource.h:42
The primary namespace for the NDEVR SDK.