const Args * CommandInterpreter::GetEnvironmentVariables () { if (! HasInterpreterVariables()) return NULL; VariableMap::const_iterator pos = m_variables.find("env-vars"); if (pos == m_variables.end()) return NULL; StateVariable *var = pos->second.get(); if (var) return &var->GetArgs(); return NULL; }
const Args * CommandInterpreter::GetProgramArguments () { if (! HasInterpreterVariables()) return NULL; VariableMap::const_iterator pos = m_variables.find("run-args"); if (pos == m_variables.end()) return NULL; StateVariable *var = pos->second.get(); if (var) return &var->GetArgs(); return NULL; }