Virtual Testbed
Ship dynamics simulator for extreme conditions
string.hh
1 #ifndef VTESTBED_IGES_STRING_HH
2 #define VTESTBED_IGES_STRING_HH
3 
4 #include <iosfwd>
5 #include <string>
6 
7 #include <vtestbed/iges/types.hh>
8 
9 namespace vtb {
10 
11  namespace iges {
12 
14  struct string: public std::string {
15  using std::string::string;
16  struct string_pp {
17  const string& str;
18  };
19  inline string_pp
20  print() const {
21  return {*this};
22  }
23  };
24 
26  operator>>(std::istream& in, string& rhs);
27 
29  operator<<(std::ostream& out, const string& rhs);
30 
32  operator<<(std::ostream& out, const string::string_pp& rhs);
33 
34  iges_ostream&
35  operator<<(iges_ostream& out, const string& rhs);
36 
37  }
38 
39 }
40 
41 #endif // vim:filetype=cpp
IGES string.
Definition: string.hh:14
Main namespace.
Definition: convert.hh:9