本文整理汇总了C++中Obj::logOrder方法的典型用法代码示例。如果您正苦于以下问题:C++ Obj::logOrder方法的具体用法?C++ Obj::logOrder怎么用?C++ Obj::logOrder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj
的用法示例。
在下文中一共展示了Obj::logOrder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
if (verbose)
cout << "\nTESTING 'setTriggerMarkers' AND 'triggerMarkers'"
<< "\n=================================================\n";
Obj lmc;
ASSERT(lmc.triggerMarkers() == Obj::e_BEGIN_END_MARKERS);
lmc.setTriggerMarkers(Obj::e_NO_MARKERS);
ASSERT(lmc.triggerMarkers() == Obj::e_NO_MARKERS);
lmc.setTriggerMarkers(Obj::e_BEGIN_END_MARKERS);
ASSERT(lmc.triggerMarkers() == Obj::e_BEGIN_END_MARKERS);
} break;
case 5: {
// --------------------------------------------------------------------
// TESTING 'setLogOrder' AND 'logOrder':
// Verify 'setLogOrder' and 'logOrder'.
//
// Concern:
// That 'setLogOrder' and 'logOrder' works correctly.
//
// Plan:
// Create a logger manager and verify 'logOrder'.
// Invoke 'setLogOrder' with 'e_FIFO' and verify 'logOrder'.
// Invoke 'setLogOrder' with 'e_LIFO' and verify 'logOrder'.
//
// Testing:
// void setLogOrder(LogOrder value);
// const LogOrder logOrder() const;
// --------------------------------------------------------------------
if (verbose) cout << "\nTESTING 'setLogOrder' AND 'logOrder'"
<< "\n====================================" << endl;
Obj lmc;
ASSERT(lmc.logOrder() == Obj::e_LIFO);
lmc.setLogOrder(Obj::e_FIFO);
ASSERT(lmc.logOrder() == Obj::e_FIFO);
lmc.setLogOrder(Obj::e_LIFO);
ASSERT(lmc.logOrder() == Obj::e_LIFO);
} break;
case 4: {
// --------------------------------------------------------------------
// TESTING 'bdex' STREAMING FUNCTIONALITY:
//
// This component does not support 'bdex' streaming.
// --------------------------------------------------------------------
if (verbose) cout << "\nTesting Streaming Functionality"
<< "\n===============================" << endl;
if (verbose)
cout << "\nThis component does not support 'bdex' streaming."
<< endl;
} break;
case 3: {
// --------------------------------------------------------------------
// TESTING: setDefaultThresholdLevels
//
// Concerns: