Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRdfUri.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkRdfUri.h"
18 
19 namespace mitk {
21  {
22  }
23 
24  RdfUri::RdfUri(std::string uri)
25  : m_Uri(uri)
26  {
27  }
28 
30  {
31  }
32 
33  std::string RdfUri::ToString() const
34  {
35  return m_Uri;
36  }
37 
38  void RdfUri::SetUri(std::string uri)
39  {
40  m_Uri = uri;
41  }
42 
43  bool RdfUri::operator==(const RdfUri &u) const
44  {
45  if (this->m_Uri.compare(u.m_Uri) != 0) return false;
46  return true;
47  }
48 
49  bool RdfUri::operator!=(const RdfUri &u) const
50  {
51  return !operator==(u);
52  }
53 } // end of namespace mitk
std::string ToString() const
Definition: mitkRdfUri.cpp:33
DataCollection - Class to facilitate loading/accessing structured data.
void SetUri(std::string uri)
Definition: mitkRdfUri.cpp:38
bool operator!=(const RdfUri &u) const
Definition: mitkRdfUri.cpp:49
bool operator==(const RdfUri &u) const
Definition: mitkRdfUri.cpp:43
virtual ~RdfUri()
Definition: mitkRdfUri.cpp:29