r1 - 24 Sep 2006 - 21:33:09 - PatrickSmythYou are here: TWiki >  IBG Web  > R_and_MVC_archi

-- PatrickSmyth - 24 Sep 2006

The following code scheme was articulated in order to implement a MVC architecture into the R code associated with the Pelagic application.

original code


#inc stdio.h

printf(...)

Greg Code


#ifdef R #inc rio.h #else #inc stdio.h #end if

#ifdef R r_printf(...) #else printf(...) #endif

IBG.h


#ifdef R #define IBG_printf #include rio.h #else #define IBG_printf #include stdio.h #endif

New Greg


#include IBG.h

IBG.printf(...)

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Illinois Bio-Grid
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback