示例#1
0
void Observables::rename(const std::string& old_name,
			 const std::string& new_name)
{
    Observable& obs = get(old_name);
    Observable new_obs(new_name);
    const ObservablePortList& port_list = obs.observableportlist();
    ObservablePortList::const_iterator it_port = port_list.begin();
    while (it_port != port_list.end()) {
        new_obs.add(it_port->second);
        ++it_port;
    }
    del(old_name);
    add(new_obs);
}
示例#2
0
//construtor IOPolly
IOPolly::IOPolly()
{
  new_TCStations ();
  new_obs ();
}