本文整理汇总了C++中CONTROL::DebugPrint方法的典型用法代码示例。如果您正苦于以下问题:C++ CONTROL::DebugPrint方法的具体用法?C++ CONTROL::DebugPrint怎么用?C++ CONTROL::DebugPrint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CONTROL
的用法示例。
在下文中一共展示了CONTROL::DebugPrint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool CARCONTROLMAP_LOCAL::CONTROL::operator==(const CONTROL & other) const
{
CONTROL me = *this;
CONTROL them = other;
//don't care about certain flags
me.onetime = 1;
me.pushdown = 1;
me.deadzone = 0;
me.exponent = 1;
me.gain = 1;
them.onetime = 1;
them.pushdown = 1;
them.deadzone = 0;
them.exponent = 1;
them.gain = 1;
std::stringstream mestr;
std::stringstream themstr;
me.DebugPrint(mestr);
them.DebugPrint(themstr);
return (mestr.str() == themstr.str());
/*std::cout << "Checking:" << std::endl;
me.DebugPrint(std::cout);
me.MemDump(std::cout);
them.DebugPrint(std::cout);
them.MemDump(std::cout);
std::cout << "Equality check: " << (std::memcmp(&me,&them,sizeof(CONTROL)) == 0) << std::endl;
return (std::memcmp(&me,&them,sizeof(CONTROL)) == 0);*/
//bool equality = (type == other.type) && (type == other.type) &&
}