knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
XSDAtomic.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_XSD_ATOMIC_H
7 #define KNOWROB_XSD_ATOMIC_H
8 
9 #include "string_view"
10 #include "Atomic.h"
11 #include "RDFNode.h"
12 #include "XSDType.h"
13 
14 namespace knowrob {
18  class XSDAtomic : public RDFNode, public Atomic {
19  public:
23  xsdType_(xsdType) {}
24 
31  static std::shared_ptr<XSDAtomic> create(std::string_view lexicalForm, std::string_view xsdTypeIRI);
32 
37  std::string_view xsdTypeIRI() const;
38 
43  XSDType xsdType() const { return xsdType_; }
44 
45  protected:
47  };
48 
49 } // knowrob
50 
51 #endif //KNOWROB_XSD_ATOMIC_H
static std::shared_ptr< XSDAtomic > create(std::string_view lexicalForm, std::string_view xsdTypeIRI)
std::string_view xsdTypeIRI() const
Definition: XSDAtomic.cpp:90
XSDType xsdType() const
Definition: XSDAtomic.h:43
XSDType xsdType_
Definition: XSDAtomic.h:46
XSDAtomic(XSDType xsdType)
Definition: XSDAtomic.h:20
AtomicType
Definition: Atomic.h:17
XSDType
The XSDType enum Enumeration of the XSD types.
Definition: XSDType.h:16
RDFNodeType
Definition: RDFNode.h:15