Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5231: The core module is available as module itself when querying th…
…e ModuleRegistry. Plus some build order and events fixes.
- Loading branch information
1 parent
4f8e481
commit 26675d5
Showing
22 changed files
with
213 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#pragma once | ||
|
||
#include "iradiant.h" | ||
#include "modulesystem/ModuleRegistry.h" | ||
|
||
namespace applog { class LogFile; } | ||
|
||
namespace radiant | ||
{ | ||
|
||
class Radiant : | ||
public IRadiant | ||
{ | ||
private: | ||
ApplicationContext& _context; | ||
|
||
std::unique_ptr<applog::LogFile> _logFile; | ||
|
||
std::unique_ptr<module::ModuleRegistry> _moduleRegistry; | ||
|
||
public: | ||
Radiant(ApplicationContext& context); | ||
|
||
~Radiant(); | ||
|
||
const std::string& getName() const override; | ||
const StringSet& getDependencies() const override; | ||
void initialiseModule(const ApplicationContext& ctx) override; | ||
|
||
applog::ILogWriter& getLogWriter() override; | ||
module::ModuleRegistry& getModuleRegistry() override; | ||
|
||
static std::shared_ptr<Radiant>& InstancePtr(); | ||
|
||
private: | ||
void createLogFile(); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.