owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
doc_id.hpp
Go to the documentation of this file.
1 
6 #ifndef DOC_ID_HPP_
7 #define DOC_ID_HPP_
8 #include <iosfwd>
9 #include "owlcpp/detail/object_id_base.hpp"
10 
11 namespace owlcpp{
12 
15 class Doc_id : public detail::Base_id<Doc_id> {
16 public:
17  explicit Doc_id(const unsigned x) : base(x) {}
18  Doc_id() : base(0) {}
19 };
20 
23 template<class ChT, class Tr> inline std::basic_ostream<ChT,Tr>& operator<<(
24  std::basic_ostream<ChT,Tr>& os,
25  Doc_id const& id
26 ) {
27  return os << "Doc" << id();
28 }
29 
30 }//namespace owlcpp
31 #endif /* DOC_ID_HPP_ */