This repository was archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQName.cpp
More file actions
55 lines (47 loc) · 1.43 KB
/
QName.cpp
File metadata and controls
55 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* Copyright (C) 2017-2018 Stephan Kreutzer
*
* This file is part of CppStAX.
*
* CppStAX is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 or any later
* version of the license, as published by the Free Software Foundation.
*
* CppStAX is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with CppStAX. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file $/QName.cpp
* @author Stephan Kreutzer
* @since 2017-08-24
*/
#include "QName.h"
namespace cppstax
{
QName::QName(const std::string& namespaceURI, const std::string& localPart, const std::string& prefix):
m_strNamespaceURI(namespaceURI), m_strLocalPart(localPart), m_strPrefix(prefix)
{
}
const std::string& QName::getNamespaceURI() const
{
return m_strNamespaceURI;
}
const std::string& QName::getLocalPart() const
{
return m_strLocalPart;
}
const std::string& QName::getPrefix() const
{
return m_strPrefix;
}
bool QName::operator==(const QName& rhs) const
{
return m_strLocalPart == rhs.getLocalPart() &&
m_strPrefix == rhs.getPrefix() &&
m_strNamespaceURI == rhs.getNamespaceURI();
}
}