Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JNullStream.hh
Go to the documentation of this file.
1#ifndef __JLANG__JNULLSTREAM__
2#define __JLANG__JNULLSTREAM__
3
4#include <istream>
5#include <ostream>
6
8
9
10/**
11 * \author mdejong
12 */
13
14namespace JLANG {}
15namespace JPP { using namespace JLANG; }
16
17namespace JLANG {
18
19
20 /**
21 * Streaming of input.
22 */
23 class JNullStream :
24 protected JNullStreamBuffer,
25 public std::istream,
26 public std::ostream
27 {
28 public:
29 /**
30 * Default constructor.
31 */
34 std::istream(this),
35 std::ostream(this)
36 {}
37
38
39 /**
40 * Close stream.
41 * This method does nothing.
42 */
43 void close()
44 {}
45 };
46
47
48 /**
49 * Null I/O stream.
50 */
52}
53
54#endif
Streaming of input.
void close()
Close stream.
JNullStream()
Default constructor.
Auxiliary classes and methods for language specific functionality.
static JNullStream null
Null I/O stream.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).