Jpp - the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JLang
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
7
#include "
JLang/JNullStreamBuffer.hh
"
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
*/
32
JNullStream
() :
33
JNullStreamBuffer
(),
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
JLANG::JNullStream::close
void close()
Close stream.
Definition:
JNullStream.hh:43
JLANG::JNullStream::JNullStream
JNullStream()
Default constructor.
Definition:
JNullStream.hh:32
JNullStreamBuffer.hh
JLANG::JNullStream
Streaming of input.
Definition:
JNullStream.hh:23
null
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
Definition:
examples/JLogger/JLogger.sh:33
JLANG::JNullStreamBuffer
Null stream buffer.
Definition:
JNullStreamBuffer.hh:21
Generated by
1.8.5