• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/xpath/XPathOpError.cpp

00001 #include <spl/xml/xpath/private/XPathOpError.h>
00002 
00003 XPathOpError::XPathOpError(const String& msg)
00004 : m_msg(msg)
00005 {
00006 }
00007 
00008 XPathOpError::XPathOpError()
00009 : m_msg("Unsupported operation")
00010 {
00011 }
00012 
00013 XPathOpError::XPathOpError(const XPathOpError& op)
00014 : m_msg(op.m_msg)
00015 {
00016 }
00017 
00018 XPathOpError::~XPathOpError()
00019 {
00020 }
00021 
00022 XPathOpError& XPathOpError::operator =(const XPathOpError& oproot)
00023 {
00024         m_msg = oproot.m_msg;
00025         return *this;
00026 }
00027 
00028 bool XPathOpError::IsMatch(XmlNode& context)
00029 {
00030         throw new Exception(m_msg);
00031 }
00032 
00033 XmlNodeListPtr XPathOpError::NextContext(XmlNodePtr context)
00034 {
00035         throw new Exception(m_msg);
00036 }
00037 
00038 #if defined(DEBUG) || defined(_DEBUG)
00039 void XPathOpError::CheckMem() const
00040 {
00041         XPathOperator::CheckMem();
00042         m_msg.CheckMem();
00043 }
00044 
00045 void XPathOpError::ValidateMem() const
00046 {
00047         XPathOperator::ValidateMem();
00048         m_msg.ValidateMem();
00049 }
00050 #endif