31 virtual std::string
getName()=0;
38 std::shared_ptr<T> model = std::dynamic_pointer_cast<T>(
domainModel);
40 throw std::runtime_error(
"inconsistent domain model type");
49 std::string
getName(){
return "DummyAction";};
50 void performAction(){std::cout <<
"Dummy action performed\n";};
std::shared_ptr< T > getModel()
virtual void performAction()=0
std::shared_ptr< DomainModel > domainModel
virtual std::string getName()=0