#include "environment.h" #include "logger.h"//XXX #include #include namespace proctools { using namespace std; static void environment_setter(const pair& variable) { logger::info(variable.first+"="+variable.second); setenv( variable.first.c_str(), variable.second.c_str(), 1 ); } void environment::set() { for_each( m_variables.begin(), m_variables.end(), environment_setter ); } };