[GRASS-dev] Re: [GRASS GIS] #197: sfd support for r.terraflow

GRASS GIS trac at osgeo.org
Sat Jun 28 18:21:24 EDT 2008


#197: sfd support for r.terraflow
--------------------------+-------------------------------------------------
  Reporter:  adanner      |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  Raster       |     Version:  svn-develbranch6         
Resolution:               |    Keywords:  terraflow r.terraflow    
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [comment:5 adanner]:

 > If you want, I can throw the code from tflowopt.c back into main.cc and
 then you'll get 30+ warning about how terraflow is trying to connect to
 the rest of Grass.

 That is my preference.

 > This seems excessive, since there currently is no right way to fix a
 C-style interface in C++ without bloating the code and making it
 unreadable.

 Correct. Which is why the interface needs to be fixed in C; i.e. add the
 "const" to the fields of "struct Option" in gis.h. Having the compiler
 remind people about this on a regular basis is the best way to make it
 happen.

 Actually, I'll look into that side of it now.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/197#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list