本文整理汇总了C++中scxcorelib::SCXHandle::GetParameters方法的典型用法代码示例。如果您正苦于以下问题:C++ SCXHandle::GetParameters方法的具体用法?C++ SCXHandle::GetParameters怎么用?C++ SCXHandle::GetParameters使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类scxcorelib::SCXHandle
的用法示例。
在下文中一共展示了SCXHandle::GetParameters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetDHCPEnabledFromProcessList
/**
Get DHCPEnabled status from the process list
*/
bool NetworkInterfaceConfigurationEnumeration::GetDHCPEnabledFromProcessList(
std::wstring& name,
SCXCoreLib::SCXHandle<NetworkInstanceConfigurationEnumerationDeps> deps)
{
ProcessEnumeration procEnum;
procEnum.SampleData();
procEnum.Update(true);
std::vector<SCXCoreLib::SCXHandle<ProcessInstance> > proc_v = deps->Find(L"dhcpcd", procEnum);
if(proc_v.size() == 0)
return false;
for(std::vector<SCXCoreLib::SCXHandle<ProcessInstance> >::iterator i = proc_v.begin(); i != proc_v.end(); ++i)
{
SCXCoreLib::SCXHandle<ProcessInstance> process = (*i);
std::vector<std::string> parms;
if(!process->GetParameters(parms))
continue;
for(std::vector<std::string>::iterator i_parms = parms.begin(); i_parms != parms.end(); i_parms++)
if(name.compare(SCXCoreLib::StrFromMultibyte(*i_parms)) == 0)
return true;
}
return false;
}
示例2: AddProperties
//.........这里部分代码省略.........
inst.AddProperty(prop);
}
if (processinst->GetUserModeTime(ulong))
{
SCXProperty prop(L"UserModeTime", ulong);
inst.AddProperty(prop);
}
if (processinst->GetWorkingSetSize(ulong))
{
SCXProperty prop(L"WorkingSetSize", ulong);
inst.AddProperty(prop);
}
if (processinst->GetProcessSessionID(ulong))
{
SCXProperty prop(L"ProcessSessionID", ulong);
inst.AddProperty(prop);
}
if (processinst->GetProcessTTY(name))
{
SCXProperty prop(L"ProcessTTY", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetModulePath(name))
{
SCXProperty prop(L"ModulePath", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetParameters(params))
{
std::vector<SCXProperty> props;
for (std::vector<std::string>::const_iterator iter = params.begin();
iter != params.end(); ++iter)
{
SCXProperty item(L"", StrFromMultibyte(*iter));
props.push_back(item);
}
SCXProperty prop(L"Parameters", props);
inst.AddProperty(prop);
}
if (processinst->GetProcessWaitingForEvent(name))
{
SCXProperty prop(L"ProcessWaitingForEvent", StrFromMultibyte(name));
inst.AddProperty(prop);
}
if (processinst->GetName(name))
{
SCXProperty name_prop(L"Name", StrFromMultibyte(name));
inst.AddProperty(name_prop);
}
if (processinst->GetPriority(uint))
{
SCXProperty prio_prop(L"Priority", uint);
inst.AddProperty(prio_prop);
}
if (processinst->GetExecutionState(ushort))
{