34 #ifndef CARTOBASE_ALGORITHM_ALGORITHM_H 
   35 #define CARTOBASE_ALGORITHM_ALGORITHM_H 
   74                     const std::string &doc ) :
 
   77     _documentation( doc ) {}
 
   86   std::string _documentation;
 
   89   std::vector< std::pair< std::string, T > > _choices;
 
  107   template <
typename T>
 
  109                                        const std::string &documentation );
 
  110   template <
typename T>
 
  112                                         const std::string &documentation );
 
  119   std::vector< rc_ptr< BaseParameter > > _parameters;
 
  127 template <
typename T>
 
  133   _parameter( pm._parameter ) {}
 
  140     _parameter._optional = o;
 
  146     return choices( 
"", value );
 
  152     _parameter._choices.push_back( std::pair<std::string, T>( label,
 
  172   template <
typename T>
 
  180   std::vector< carto::Object > _unnamedParameters;
 
  197 template <
typename T>
 
  206 template <
typename T>
 
  209                            const std::string &doc )
 
  218 template <
typename T>
 
  221                             const std::string &doc )
 
  233 template <
typename T>
 
AlgorithmCaller & operator<<(const T &)
AlgorithmCaller(const std::string &algorithmName)
Algorithm(const std::string &name)
ParameterModifier< T > outputParameter(T &ref, const std::string &name, const std::string &documentation)
ParameterModifier< T > inputParameter(T &ref, const std::string &name, const std::string &documentation)
static Object value()
factory function: builds an Object by using the default constructor
ParameterModifier(const ParameterModifier< T > &pm)
ParameterModifier< T > optional(bool o=true)
ParameterModifier(Parameter< T > &p)
ParameterModifier< T > choice(const T &value)
ParameterModifier< T > choice(const std::string &label, const T &value)
Parameter(T &ref, const std::string &name, const std::string &doc)
Reference-counting pointer.
A ref is a const_ref which can reference non constant objects.
const AlgorithmCaller::LaunchExecution execute