예제 #1
0
bool Agent::WasAgentOnRunList()
{
	AnalyzeXML response ;

	bool ok = GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_WasAgentOnRunList, GetAgentName()) ;

	if (!ok)
		return false ;

	bool wasRun = response.GetResultBool(false) ;
	return wasRun ;
}
예제 #2
0
bool Agent::IsProductionLoaded(char const* pProductionName)
{
	if (!pProductionName)
		return false ;

	AnalyzeXML response ;

	bool ok = GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_IsProductionLoaded, GetAgentName(), sml_Names::kParamName, pProductionName) ;

	if (!ok)
		return false ;

	return response.GetResultBool(false) ;
}