Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JNullStreamBuffer.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JNULLSTREAMBUFFER__
2 #define __JLANG__JNULLSTREAMBUFFER__
3 
4 #include <stdio.h>
5 #include <streambuf>
6 
7 
8 /**
9  * \author mdejong
10  */
11 
12 namespace JLANG {}
13 namespace JPP { using namespace JLANG; }
14 
15 namespace JLANG {
16 
17 
18  /**
19  * Null stream buffer.
20  */
22  public virtual std::streambuf
23  {
24  public:
25 
26 
27  typedef std::streambuf::traits_type traits;
28  typedef traits::int_type int_type;
29  typedef std::streamsize streamsize;
30 
31 
32  /**
33  * Default constructor.
34  */
36  {}
37 
38 
39  /**
40  * Get reference to unique instance of this class object.
41  *
42  * \return reference to this class object
43  */
45  {
46  static const JNullStreamBuffer null;
47 
48  return null;
49  }
50 
51 
52  /**
53  * Check underflow.
54  * This method reads nothing.
55  *
56  * \return 0
57  */
58  virtual int_type underflow()
59  {
60  return EOF;
61  }
62 
63 
64  /**
65  * Check overflow.
66  * This method writes nothing.
67  *
68  * \param c character
69  * \return c
70  */
72  {
73  return c;
74  }
75  };
76 }
77 
78 #endif
virtual int_type overflow(int_type c)
Check overflow.
JNullStreamBuffer()
Default constructor.
std::streambuf::traits_type traits
static const JNullStreamBuffer & getInstance()
Get reference to unique instance of this class object.
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
virtual int_type underflow()
Check underflow.
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
Null stream buffer.