[geos-devel] Namespaces and headers split
mateusz at loskot.net
Thu Mar 23 20:13:27 EST 2006
strk at refractions.net wrote:
> I've completed the namespaces and headers split step.
> GEOS namespaces now reflect JTS packages, and all classes are named
> after JTS classes/interfaces. There are now duplicated names, but in
> different namespaces (as it is for JTS).
Are behind those duplicated names also duplicated types?
If you don't mind, I'd have one more suggestion.
Currently, the source tree is quite complex and the main trunk with
implementation files (.cpp) includes its mirror in form of headers subdirs.
Here is short example presenting how does it look like now:
So, as you can see, headers directory has the same structure
(operation/buffer) but the only difference is that it contains headers
Shortly, GEOS follows the concept clear separation of headers and
implementation files, just like common GNU project structure, that includes:
Now, my suggestion is to make GEOS' structure more clear by arranging it
in real GNU style.
Here is new version of the example above:
In my opinion, the this could make the structure better readable and
clear. As wall as less deep, so it's would make if easier to navigate
Note, that there would not be much problem with header files inclusion,
because GEOS' implementation files use include path based on -I compiler
What do you think about my suggestion?
More information about the geos-devel