Jpp  18.2.1-ARCA-DF-PATCH
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
14 namespace JLANG {}
15 namespace JPP { using namespace JLANG; }
16 
17 namespace 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  */
51  static JNullStream null;
52 }
53 
54 #endif
void close()
Close stream.
Definition: JNullStream.hh:43
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
JNullStream()
Default constructor.
Definition: JNullStream.hh:32
Streaming of input.
Definition: JNullStream.hh:23
static JNullStream null
Null I/O stream.
Definition: JNullStream.hh:51
Null stream buffer.