14 #ifndef STACK_OPERATOR_FACTORY_H
15 #define STACK_OPERATOR_FACTORY_H
20 class StackOperatorCreator;
21 class StackOperatorFactoryPimpl;
46 void addCreator(std::shared_ptr<StackOperatorCreator> creator);
57 std::shared_ptr<StackOperator>
create(
const std::string& str)
const;
61 std::shared_ptr<StackOperatorFactoryPimpl> pimpl;
Factory to create StackOperators and help from StackOperatorCreators.
std::shared_ptr< StackOperator > create(const std::string &str) const
Try to create a StackOperator for the given str.
StackOperatorFactory & operator=(const StackOperatorFactory &rhs)
StackOperatorFactory()
Create.
std::string getHelp() const
void addCreator(std::shared_ptr< StackOperatorCreator > creator)
Add creator as available after all previous creators.
Container of Calculator resources.