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());
~DynamicCellModelLoader()
std::string mLoadableModulePath
#define EXCEPTION(message)
CellCreationFunctionType * mpCreationFunction
AbstractCardiacCellInterface * CellCreationFunctionType(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, boost::shared_ptr< AbstractStimulusFunction > pStimulus)
DynamicCellModelLoader(const std::string &rLoadableModulePath)
const std::string GetLoadableModulePath() const
AbstractCardiacCellInterface * CreateCell(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, boost::shared_ptr< AbstractStimulusFunction > pStimulus)
static DynamicCellModelLoaderPtr Create(const std::string &rLoadableModulePath)