diff --git a/Modules/RDF/mitkRdfUri.cpp b/Modules/RDF/mitkRdfUri.cpp index 0c998637c4..55aebc512f 100644 --- a/Modules/RDF/mitkRdfUri.cpp +++ b/Modules/RDF/mitkRdfUri.cpp @@ -1,55 +1,53 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkRdfUri.h" -#include - namespace mitk { RdfUri::RdfUri() { } RdfUri::RdfUri(std::string uri) : m_Uri(uri) { } RdfUri::~RdfUri() { } std::string RdfUri::ToString() const { return m_Uri; } void RdfUri::SetUri(std::string uri) { m_Uri = uri; } bool RdfUri::operator==(const RdfUri &u) const { if (this->m_Uri.compare(u.m_Uri) != 0) return false; return true; } bool RdfUri::operator!=(const RdfUri &u) const { return !operator==(u); } } // end of namespace mitk diff --git a/Modules/RDF/mitkRdfUri.h b/Modules/RDF/mitkRdfUri.h index 8e003176f1..e5ca22c265 100644 --- a/Modules/RDF/mitkRdfUri.h +++ b/Modules/RDF/mitkRdfUri.h @@ -1,64 +1,65 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef MITKRDFURI_H #define MITKRDFURI_H #include + #include namespace mitk { /** * \ingroup MitkRDFModule */ class MitkRDF_EXPORT RdfUri { public: /** * Construct a empty RdfUri. */ RdfUri(); /** * Construct a RdfUri with a value. * @param uri A std:string which represents the transfer parameter from a URI. */ explicit RdfUri(std::string uri); virtual ~RdfUri(); /** * Returns the string value of an RdfUri. * @return Value of RdfUri as std:string. */ std::string ToString() const; /** * Set the value of an RdfUri. * @param uri New value of an RdfUri. */ void SetUri(std::string uri); bool operator==(const RdfUri &u) const; bool operator!=(const RdfUri &u) const; private: std::string m_Uri; }; } #endif // MITKRDFURI_H