35 #ifndef CONTROLDICTIONARY_H 36 #define CONTROLDICTIONARY_H 80 int priority,
bool allowreplace =
false ) ;
82 int priority,
bool allowreplace =
false ) ;
87 struct ControlDictionaryElement{
93 std::map<std::string, ControlDictionaryElement> myControls ;
virtual ~ControlCreatorBase()
bool removeControl(const std::string &)
ControlPtr getControlInstance(const std::string &name)
almost private utility class, used mainly for python bindings
ControlPtr(* ControlCreator)()
static ControlDictionary * instance()
almost private utility class, used mainly for python bindings
int controlPriority(const std::string &name) const
virtual ControlPtr operator()()=0
int testPriorityUnicity(int priority)
void addControl(const std::string &name, ControlCreator creator, int priority, bool allowreplace=false)