PulseEnginePool.h
1/* Distributed under the Apache License, Version 2.0.
2See accompanying NOTICE file for details.*/
3
4#pragma once
5
6#include "engine/CommonDefs.h"
7#include "cdm/PhysiologyEnginePool.h"
8
10{
11public:
12 PulseEnginePool(size_t poolSize = 0, const std::string& dataDir = "./", Logger* logger = nullptr);
13 ~PulseEnginePool() = default;
14
15 virtual SEPhysiologyEnginePoolEngine* CreateEngine(int id, eModelType type);
16
17protected:
19 virtual void AllocateEngine(SEPhysiologyEnginePoolEngine& pe) override;
20
21 eModelType m_creationType;
22};
Definition: Logger.h:71
Definition: PulseEnginePool.h:10
~PulseEnginePool()=default
eModelType m_creationType
Definition: PulseEnginePool.h:21
Definition: PhysiologyEnginePool.h:18
Definition: PhysiologyEnginePool.h:35
SEPhysiologyEnginePoolEngine * CreateEngine(int id)
Definition: PhysiologyEnginePool.cpp:62
virtual void AllocateEngine(SEPhysiologyEnginePoolEngine &pe)=0

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.