Improved handling of late initialisation for component objects
This commit is contained in:
@@ -28,21 +28,19 @@ namespace Bloom::DebugServers
|
||||
class DebugServer: public Thread
|
||||
{
|
||||
public:
|
||||
explicit DebugServer(EventManager& eventManager): eventManager(eventManager) {};
|
||||
explicit DebugServer(
|
||||
EventManager& eventManager,
|
||||
const ProjectConfig& projectConfig,
|
||||
const EnvironmentConfig& environmentConfig,
|
||||
const DebugServerConfig& debugServerConfig
|
||||
):
|
||||
eventManager(eventManager),
|
||||
projectConfig(projectConfig),
|
||||
environmentConfig(environmentConfig),
|
||||
debugServerConfig(debugServerConfig) {};
|
||||
|
||||
virtual ~DebugServer() = default;
|
||||
|
||||
void setProjectConfig(const ProjectConfig& projectConfig) {
|
||||
this->projectConfig = projectConfig;
|
||||
}
|
||||
|
||||
void setEnvironmentConfig(const EnvironmentConfig& environmentConfig) {
|
||||
this->environmentConfig = environmentConfig;
|
||||
}
|
||||
|
||||
void setDebugServerConfig(const DebugServerConfig& debugServerConfig) {
|
||||
this->debugServerConfig = debugServerConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* Entry point for the DebugServer. This must called from a dedicated thread.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user