string kind = name.substr(1, colon-1);
map<string, string> params;
- params["length"] = lexical_cast(type.get_length()*1000);
- params["width"] = lexical_cast(type.get_width()*1000);
- params["height"] = lexical_cast(type.get_height()*1000);
+ params["length"] = lexical_cast<string>(type.get_length()*1000);
+ params["width"] = lexical_cast<string>(type.get_width()*1000);
+ params["height"] = lexical_cast<string>(type.get_height()*1000);
if(colon!=string::npos)
{
string::size_type start = colon+1;
if(unsigned sid = track.get_track().get_sensor_id())
{
overlay->add_graphic(track, "sensor");
- overlay->set_label(track, lexical_cast(sid));
+ overlay->set_label(track, lexical_cast<string>(sid));
}
else if(unsigned tid = track.get_track().get_turnout_id())
{
if(tid<0x800)
{
overlay->add_graphic(track, "turnout");
- overlay->set_label(track, lexical_cast(tid));
+ overlay->set_label(track, lexical_cast<string>(tid));
}
}
}
if(selection.size()==1)
{
if(unsigned tid = selection.get_track()->get_turnout_id())
- ent_turnout_id->set_text(lexical_cast(tid));
+ ent_turnout_id->set_text(lexical_cast<string>(tid));
}
const set<Track *> &tracks = selection.get_tracks();
}
if(sensor_id>=0)
- ent_sensor_id->set_text(lexical_cast(sensor_id));
+ ent_sensor_id->set_text(lexical_cast<string>(sensor_id));
}
void TrackProperties::on_response(int code)
add(*(lbl = new GLtk::Label("Number")));
lbl->set_geometry(GLtk::Geometry(170, geom.h-95, 70, 20));
- add(*(ent_number = new GLtk::Entry(lexical_cast(zone.get_number()))));
+ add(*(ent_number = new GLtk::Entry(lexical_cast<string>(zone.get_number()))));
ent_number->set_geometry(GLtk::Geometry(240, geom.h-95, 50, 20));
GLtk::Button *btn;
if(train)
{
- ent_addr->set_text(lexical_cast(train->get_address()));
+ ent_addr->set_text(lexical_cast<string>(train->get_address()));
ent_name->set_text(train->get_name());
drp_priority->set_selected_index(train->get_priority()+2);
if(!result.empty())
result += '-';
- result += lexical_cast(i->number);
+ result += lexical_cast<string>(i->number);
if(i->letter)
result += i->letter;
}