Virtual Testbed
Ship dynamics simulator for extreme conditions
src
vtestbed
iges
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
25
std::istream
&
26
operator>>(
std::istream
& in,
string
& rhs);
27
28
std::ostream
&
29
operator<<(
std::ostream
& out,
const
string
& rhs);
30
31
std::ostream
&
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
vtb::iges::string::string_pp
Definition:
string.hh:16
std::istream
std::string
vtb::iges::string
IGES string.
Definition:
string.hh:14
vtb
Main namespace.
Definition:
convert.hh:9
std::ostream
Generated by
1.8.15