本文整理汇总了C++中Subsystem::type方法的典型用法代码示例。如果您正苦于以下问题:C++ Subsystem::type方法的具体用法?C++ Subsystem::type怎么用?C++ Subsystem::type使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Subsystem
的用法示例。
在下文中一共展示了Subsystem::type方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: make_pair
//.........这里部分代码省略.........
ostringstream o;
o <<"Discovered " << allDiscoveredLUNs.LUNpointers.size() << " LUNs on the test hosts." << std::endl;
//std::cout<<o.str();
log(masterlogfile,o.str());
}
if (0 == allDiscoveredLUNs.LUNpointers.size())
{
std::ostringstream o;
o << ivyscript_line_number << ": \"" << ivyscript_line << "\"" << std::endl;
o << "No LUNs were found on any of the hosts." << std::endl;
std::cout << o.str();
log (masterlogfile,o.str());
ivyscriptIfstream.close();
kill_subthreads_and_exit();
}
allDiscoveredLUNs.split_out_command_devices_into(commandDeviceLUNs);
/*debug*/
{
ostringstream o;
o <<"commandDeviceLUNs contains:"<<std::endl<< commandDeviceLUNs.toString() <<std::endl;
//std::cout<<o.str();
log(masterlogfile,o.str());
}
for (LUN* pLUN : allDiscoveredLUNs.LUNpointers)
{
if (select.matches(pLUN))
{
if ( pLUN->attribute_value_matches("ldev", "FF:FF" )
&& pLUN->attribute_value_matches("ldev_type", "" )
&& ( pLUN->attribute_value_matches("product", "DISK-SUBSYSTEM") || pLUN->attribute_value_matches("product","OPEN-V") ) )
{
; // Ignore "phantom LUNs" that have been deleted on the subsystem but for which a /dev/sdxxx entry still exists.
}
else if ( pLUN->attribute_value_matches("ldev", "FF:FF")
&& pLUN->attribute_value_matches("ldev_type", "phantom LUN") )
{
; // Ignore "phantom LUNs" that have been deleted on the subsystem but for which a /dev/sdxxx entry still exists.
}
else
{
availableTestLUNs.LUNpointers.push_back(pLUN);
}
}
}
if ( 0 == availableTestLUNs.LUNpointers.size() )
{
std::ostringstream o;
o << "No LUNs matched [hosts] statement [select] clause." << std::endl;
//p_Select->display("",o);
std::cout << o.str();
log(masterlogfile,o.str());
kill_subthreads_and_exit();
}
for (auto& pLUN : availableTestLUNs.LUNpointers) pLUN -> createNicknames();
// Now we create the Subsystem objects