52North / IlwisCore

Integrated Land and Water Information System (ILWIS) is a remote sensing and GIS software. ILWIS Core is the functional center of ilwis4..
http://52north.org/communities/ilwis/
34 stars 13 forks source link

ConnectorFactory always return nullpointer #48

Closed ridoo closed 9 years ago

ridoo commented 10 years ago

Why the method registerCatalogExplorers always return a null pointer?

Better: make it void.

When searching for usage references, there are no actual callers of that method. If this method is obsolete, delete it.

ridoo commented 10 years ago

Also ConnectorFactory has a static _explorer vector member containing catalogexplorers. This seems odd, as CatalogExplorer also contains catalog explorers

ridoo commented 10 years ago

Here is the magic done: create and register via macro

For GDAL, see explorer declaration and registration.

ridoo commented 10 years ago

Document this methodology in the wiki

MartinSchouwenburg commented 10 years ago

Eehm, though this is a trick. It is a fairly wellknown trick in the c++ world. whole libraries are built on top of it ( MFC from MS for example).