Virtual Testbed
Ship dynamics simulator for extreme conditions
name.hh
1 #ifndef VTESTBED_VSL_NAME_HH
2 #define VTESTBED_VSL_NAME_HH
3 
4 #include <iosfwd>
5 #include <string>
6 
7 namespace vtb {
8 
9  namespace vsl {
10 
11  class Name: public std::string {
12 
13  public:
14  using std::string::string;
15  using std::string::operator=;
16 
17  };
18 
20  operator>>(std::istream& in, Name& rhs);
21 
23  operator<<(std::ostream& out, const Name& rhs);
24 
25  inline const std::string& to_string(const Name& rhs) { return rhs; }
26 
27  }
28 
29 }
30 
31 #endif // vim:filetype=cpp
Main namespace.
Definition: convert.hh:9