Skip to content
Snippets Groups Projects

Resolve "Refactoring WOLF installation system"

Merged Mederic Fourmy requested to merge 451-refactoring-wolf-installation-system into devel
1 file
+ 9
9
Compare changes
  • Side-by-side
  • Inline
@@ -322,30 +322,30 @@ class Factory
Factory(const Factory&) = delete;
void operator=(Factory const&) = delete;
private:
Factory() { }
Factory();
~Factory();
};
template<class TypeBase, typename... TypeInput>
inline Factory<TypeBase, TypeInput...>::~Factory<TypeBase, TypeInput...>()
inline Factory<TypeBase, TypeInput...>::Factory()
{
std::cout << " Factory destructor " << this->getClass() << std::endl;
//std::cout << " Factory constructor " << this->getClass() << std::endl;
}
template<class TypeBase, typename... TypeInput>
inline bool Factory<TypeBase, TypeInput...>::registerCreator(const std::string& _type, CreatorCallback createFn)
inline Factory<TypeBase, TypeInput...>::~Factory()
{
printCallbacks();
printAddress();
//std::cout << " Factory destructor " << this->getClass() << std::endl;
}
template<class TypeBase, typename... TypeInput>
inline bool Factory<TypeBase, TypeInput...>::registerCreator(const std::string& _type, CreatorCallback createFn)
{
bool reg = get().callbacks_.insert(typename CallbackMap::value_type(_type, createFn)).second;
if (reg)
std::cout << std::setw(26) << std::left << get().getClass() << " <-- registered " << _type << std::endl;
else
std::cout << std::setw(26) << std::left << get().getClass() << " X-- skipping " << _type << ": already registered." << std::endl;
printCallbacks();
printAddress();
return reg;
}
Loading