I put TraitsType::GetName() in the GetClassName method for CGAL and Open_Mesh classes so it does the right thing.  The idea is to use the same string for registering in the factory and for the pipeline.

Vincent

De : Martial Tola [mailto:notifications@github.com]
Envoyé : jeudi 18 juillet 2013 08:35
À : MEPP-team/Gharial
Cc : Vincent Vidal
Objet : Re: [Gharial] Modifications done to be able to retrieve a filter from a unique std::string (#54)


In Src/Adapters/CGAL_Mesh.hxx:

> @@ -62,10 +62,17 @@ public:

>    struct FunctorNew : public Mepp::ObjectFactory::FunctorNew

>    {

>      FunctorNew(){ Mepp::ObjectFactory::GetInstance()

> -        ->Register(TraitsType::GetName(), this); }

> +        ->Register(GetClassName(), this); }

Here, it is not good because we need to take into account the TraitsType... (before : TraitsType::GetName())

—
Reply to this email directly or view it on GitHub<https://github.com/MEPP-team/Gharial/pull/54/files#r5261603>.