26 typedef std::shared_ptr<StackOperatorFactoryPimpl>
Ptr;
29 std::vector<StackOperatorCreator::Ptr>
creators;
60 pimpl->creators.push_back(creator);
64 std::ostringstream os;
66 for(
auto iter = pimpl->creators.begin(); pimpl->creators.end() != iter; ++iter) {
67 os << (*iter)->getHelp() << std::endl;
74 for(
auto iter = pimpl->creators.begin(); pimpl->creators.end() != iter; ++iter) {
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.
std::vector< StackOperatorCreator::Ptr > creators
The creators available in this factory.
std::shared_ptr< StackOperatorFactoryPimpl > Ptr
std::shared_ptr< StackOperator > Ptr
Container of Calculator resources.