OpenLexocad  27.1
ModuleNameRegistry.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <string>
5 
6 namespace Base
7 {
8 struct TestModuleRegistry;
9 
10 //< Global registry for test module names. These should be loaded by test runner at the start.
11 extern LX_BASE_EXPORT TestModuleRegistry testModuleRegistry;
12 
16 struct LX_BASE_EXPORT TestModuleRegistry
17 {
18  void registerABUTestModule(const wchar_t* moduleName);
19 
20  //assuming that deregistering is not needed
21 
22  const std::vector<std::wstring>& getModuleNames() const {return ABUTestModules;}
23 
24 protected:
25  std::vector<std::wstring> ABUTestModules;
26 };
27 }
LX_BASE_EXPORT TestModuleRegistry testModuleRegistry
This class is holds the name of test modules that should be loaded for testing.
Definition: ModuleNameRegistry.h:16
std::vector< std::wstring > ABUTestModules
Definition: ModuleNameRegistry.h:25
const std::vector< std::wstring > & getModuleNames() const
Definition: ModuleNameRegistry.h:22
Definition: AbstractXMLReader.h:5