36#include "DynamicCellModelLoader.hpp"
37#include "AbstractDynamicallyLoadableEntity.hpp"
52 : mLoadableModulePath(rLoadableModulePath)
58 EXCEPTION(
"Unable to load .so file '" + rLoadableModulePath +
"': " + dlerror());
65 const char* p_error = dlerror();
68 EXCEPTION(
"Failed to load cell creation function from .so file '" + rLoadableModulePath
84 boost::shared_ptr<AbstractStimulusFunction> pStimulus)
89 assert(p_entity != NULL);
90 p_entity->SetLoader(shared_from_this());
#define EXCEPTION(message)
AbstractCardiacCellInterface * CellCreationFunctionType(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, boost::shared_ptr< AbstractStimulusFunction > pStimulus)
DynamicCellModelLoader(const std::string &rLoadableModulePath)
~DynamicCellModelLoader()
CellCreationFunctionType * mpCreationFunction
const std::string GetLoadableModulePath() const
AbstractCardiacCellInterface * CreateCell(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, boost::shared_ptr< AbstractStimulusFunction > pStimulus)
std::string mLoadableModulePath
static DynamicCellModelLoaderPtr Create(const std::string &rLoadableModulePath)