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