OW_Assertion.hpp File Reference

#include "OW_config.h"
#include "OW_Exception.hpp"

Include dependency graph for OW_Assertion.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE

Classes

class  OW_NAMESPACE::AssertionException

Defines

#define OW_ASSERT(CON)
 OW_ASSERT works similar to the assert() macro.
#define OW_ASSERTMSG(CON, MSG)
 OW_ASSERTMSG works the same as OW_ASSERT, but with a second string parameter that will be added to the exception message on failure.


Define Documentation

#define OW_ASSERT CON   ) 
 

OW_ASSERT works similar to the assert() macro.

But instead of calling abort(), instead it throws an AssertionException.

Parameters:
CON The condition which will be evaluated.

Definition at line 55 of file OW_Assertion.hpp.

Referenced by OWBI1::WQLCompile::_buildEvalHeap(), OW_NAMESPACE::WQLCompile::_buildEvalHeap(), OWBI1::_Compare(), OW_NAMESPACE::_Compare(), OW_NAMESPACE::CIMOMEnvironment::_loadAuthorizer(), OW_NAMESPACE::MetaRepository2::_makeClassPath(), OW_NAMESPACE::MetaRepository2::_makeQualPath(), OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::CIMObjectPath::addKey(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::associatorNames(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::associators(), OW_NAMESPACE::CIMOMEnvironment::authenticate(), OW_NAMESPACE::BaseStreamBuffer::buffer_from_device(), OW_NAMESPACE::BaseStreamBuffer::buffer_to_device(), OW_NAMESPACE::UTF8Utils::charCount(), OW_NAMESPACE::SimpleAuthorizer2::checkAccess(), OW_NAMESPACE::CIMDataType::CIMDataType(), OW_NAMESPACE::XMLExecute::clone(), OW_NAMESPACE::CmdLineParser::CmdLineParser(), OW_NAMESPACE::SocketBaseImpl::connect(), OW_NAMESPACE::Socket::createShutDownMechanism(), OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), OW_NAMESPACE::CryptographicRandomNumber::CryptographicRandomNumber(), OW_NAMESPACE::ThreadCounter::decThreadCount(), OW_NAMESPACE::CIMRepository2::deleteClass(), OW_NAMESPACE::CIMRepository::deleteClass(), OW_NAMESPACE::AssocDb::deleteEntry(), OW_NAMESPACE::HTTPClient::endRequest(), OW_NAMESPACE::CIMValue::CIMValueImpl::equal(), OWBI1::WQLSelectStatement::evaluateWhereClause(), OW_NAMESPACE::WQLSelectStatement::evaluateWhereClause(), OW_NAMESPACE::MOF::Compiler::fixParsedString(), OW_NAMESPACE::generateRandomTimerData(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getAssociatorProvider(), OW_NAMESPACE::XMLPullParser::getAttribute(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getCIMOMHandle(), OW_NAMESPACE::CIMOMEnvironment::getCIMOMHandle(), OWBI1::CIMException::getCodeDescription(), OW_NAMESPACE::CIMException::getCodeDescription(), OW_NAMESPACE::XMLPullParser::getData(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstance(), OW_NAMESPACE::CIMRepository2::getInstance(), OW_NAMESPACE::CIMRepository::getInstance(), OW_NAMESPACE::XMLCIMFactory::getInstanceName(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstanceProvider(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getLogger(), OW_NAMESPACE::CIMOMEnvironment::getLogger(), OW_NAMESPACE::getMagnitude(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getMethodProvider(), OW_NAMESPACE::AccessMgr::getMethodType(), OW_NAMESPACE::XMLPullParser::getName(), OW_NAMESPACE::SocketAddress::getPort(), OWBI1::BI1ProviderIFC::getProvider(), OW_NAMESPACE::CppProviderIFC::getProvider(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getProviderManager(), OW_NAMESPACE::CIMOMEnvironment::getProviderManager(), OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getSecondaryInstanceProvider(), OW_NAMESPACE::MetaRepository::getTopLevelAssociations(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getWQLFilterCIMOMHandle(), OW_NAMESPACE::CIMOMEnvironment::getWQLFilterCIMOMHandle(), OW_NAMESPACE::IndicationServerImpl::init(), OW_NAMESPACE::Thread::join(), OWBI1::Logger::Logger(), OW_NAMESPACE::Logger::Logger(), OW_NAMESPACE::CIMRepository2::modifyClass(), OW_NAMESPACE::CIMRepository::modifyClass(), OW_NAMESPACE::CIMRepository2::modifyInstance(), OW_NAMESPACE::CIMRepository::modifyInstance(), OW_NAMESPACE::CIMValue::CIMValueImpl::operator<(), OWBI1::String::operator[](), OW_NAMESPACE::String::operator[](), OW_NAMESPACE::HTTPSvrConnection::options(), OWBI1::Logger::processLogMessage(), OW_NAMESPACE::Logger::processLogMessage(), OW_NAMESPACE::randFilePathIsSecure(), OWBI1::CIMBase::readSig(), OW_NAMESPACE::CIMBase::readSig(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::referenceNames(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::references(), OW_NAMESPACE::CIMOMEnvironment::runSelectEngine(), OW_NAMESPACE::Select::selectRW(), OW_NAMESPACE::Select::selectRWEpoll(), OW_NAMESPACE::Select::selectRWPoll(), OW_NAMESPACE::Select::selectRWSelect(), OW_NAMESPACE::ServerSocketImpl::ServerSocketImpl(), OW_NAMESPACE::PosixUnnamedPipe::setBlocking(), OWBI1::Logger::setDefaultComponent(), OW_NAMESPACE::Logger::setDefaultComponent(), OWBI1::CIMObjectPath::setKeys(), OW_NAMESPACE::CIMObjectPath::setKeys(), OW_NAMESPACE::CIMObjectPath::setKeyValue(), OWBI1::CIMQualifier::setLanguage(), OW_NAMESPACE::CIMQualifier::setLanguage(), OW_NAMESPACE::PosixUnnamedPipe::setOutputBlocking(), OW_NAMESPACE::XMLExecute::shutdown(), OW_NAMESPACE::Socket::shutdownAllSockets(), OW_NAMESPACE::SocketBaseImpl::SocketBaseImpl(), OWBI1::String::String(), OW_NAMESPACE::String::String(), OW_NAMESPACE::UTF8Utils::StringToUCS2Common(), OW_NAMESPACE::ThreadBarrier::ThreadBarrier(), OW_NAMESPACE::ThreadBarrierImpl::ThreadBarrierImpl(), OW_NAMESPACE::Thread::threadRunner(), OW_NAMESPACE::ThreadImpl::threadStarter(), OW_NAMESPACE::SocketAddress::toString(), OW_NAMESPACE::CIMValue::CIMValueImpl::toString(), OW_NAMESPACE::UTF8Utils::UTF8toUCS4(), OW_NAMESPACE::SocketUtils::waitForIO(), OWBI1::CIMBase::writeSig(), OW_NAMESPACE::CIMBase::writeSig(), and OW_NAMESPACE::XMLPrettyPrint().

#define OW_ASSERTMSG CON,
MSG   ) 
 

OW_ASSERTMSG works the same as OW_ASSERT, but with a second string parameter that will be added to the exception message on failure.

Parameters:
CON The condition which will be evaluated.
MSG The extra message. A C string literal.

Definition at line 69 of file OW_Assertion.hpp.

Referenced by OW_NAMESPACE::ServiceEnvironmentIFC::addSelectable(), OW_NAMESPACE::ServiceEnvironmentIFC::authenticate(), OW_NAMESPACE::ProviderAgentProviderEnvironment::clone(), OW_NAMESPACE::ServiceEnvironmentIFC::getCIMOMHandle(), OW_NAMESPACE::ServiceEnvironmentIFC::getLogger(), OW_NAMESPACE::LogAppender::getLogLevel(), OW_NAMESPACE::ServiceEnvironmentIFC::getRepository(), OW_NAMESPACE::ProviderAgentProviderEnvironment::getRepository(), OW_NAMESPACE::ProviderAgentProviderEnvironment::getRepositoryCIMOMHandle(), OW_NAMESPACE::ServiceEnvironmentIFC::getRequestHandler(), OW_NAMESPACE::ProviderAgentProviderEnvironment::getUserName(), OW_NAMESPACE::ServiceEnvironmentIFC::getWQLRef(), OW_NAMESPACE::initGuardAndKey(), OW_NAMESPACE::ServiceEnvironmentIFC::removeSelectable(), OW_NAMESPACE::ServiceEnvironmentIFC::setConfigItem(), and OW_NAMESPACE::Logger::setThreadLogger().


Generated on Thu Feb 9 08:50:56 2006 for openwbem by  doxygen 1.4.6