Files
core/ASCOfficeOdtFile/Source/XML/XAttribute.cpp
Elen.Subbotina 6138139c4e исправлен проект - подключен "старый" DocxFormat (тот который с AVS - без вытирания буста)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:37:54 +03:00

57 lines
948 B
C++

// auto inserted precompiled begin
#include "precompiled_xml.h"
// auto inserted precompiled end
#include "XAttribute.h"
#include "Private/NullAttribute.h"
#include "Private/NullXAttribute.h"
namespace XML
{
XAttribute::XAttribute()
: base(0)
{
}
XAttribute::XAttribute(Private::NullAttribute)
: base(new Private::NullAttribute)
{
}
const bool XAttribute::exist() const
{
return m_ptr->exist();
}
const Private::XString XAttribute::value() const
{
return m_ptr->value();
}
const Private::XString XAttribute::get_value_or(const std::string& def)const
{
if(exist())
return value();
return Private::XString(def);
}
const bool XAttribute::operator ==(const XAttribute& rhs) const
{
return ((*m_ptr) == (*rhs.m_ptr));
}
const bool XAttribute::operator <(const XAttribute& rhs) const
{
return ((*m_ptr) < (*rhs.m_ptr));
}
} // namespace XML