Changes between Version 3 and Version 4 of documentation/tutorials/Datagrid

Show
Ignore:
Author:
peterc (IP: 192.168.0.1)
Timestamp:
01/08/08 15:12:15 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/tutorials/Datagrid

    v3 v4  
    205205{ 
    206206        EMP::Core::Colourb ship_colour; 
    207         EMPTypeConverter< EMP::Core::String, EMP::Core::Colourb >::Convert(raw_data[0], ship_colour); 
     207        EMP::Core::TypeConverter< EMP::Core::String, EMP::Core::Colourb >::Convert(raw_data[0], ship_colour); 
    208208 
    209209        EMP::Core::String colour_string(32, "%d,%d,%d", ship_colour.red, ship_colour.green, ship_colour.blue); 
    211211} 
    212212}}} 
     213 
     214Be sure to include <EMP/Core/TypeConverter.h> at the top of your .cpp file. 
    213215 
    214216Then to tie it all together we need to instance the formatter. It'll automatically add itself to the formatter database, so in the main.cpp we only have to include the .h file and construct an instance after Rocket is initialised.