Hi

> I reviewed the corresponding mkgmap files again, heading to implement
> getOutputDir(). This approach would create a central place where
>
> - the directory is read or set to DEFAULT_DIR
> - the pathname is tested for presence
> - the directory is created (if not existing)
>
> But it has some downsides too:
> - The above 3 actions are executed for each call of getOutputDir().

That's not really a problem as it is only called a few times.

> - CommandArgs is not easily accessible from classes like DEM.java or
> MapMaker.java (createMap needs a pathname)

I'd just do DEM separately.  And pass in output dir to createMap like 
you did.

..Steve
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to