+ for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++)
+ {
+ DELETE(i->second);
+ }
+ hostchanges.clear();
+ for (int index = 0; index < Conf->Enumerate("hostchange"); index++)
+ {
+ std::string mask = Conf->ReadValue("hostchange","mask",index);
+ std::string action = Conf->ReadValue("hostchange","action",index);
+ std::string newhost = Conf->ReadValue("hostchange","value",index);
+ Host* x = new Host;
+ x->action = action;
+ x->newhost = newhost;
+ hostchanges[mask] = x;
+ }