Public Attributes | List of all members
mootio::mocxxstream Class Reference
Inheritance diagram for mootio::mocxxstream:
Inheritance graph
[legend]
Collaboration diagram for mootio::mocxxstream:
Collaboration graph
[legend]

Public Member Functions

Constructors etc.
 mocxxstream (std::ostream *ostreamptr)
 
 mocxxstream (std::ostream &ostream)
 
virtual ~mocxxstream (void)
 
Output Methods
virtual bool mflush (void)
 
virtual bool write (const char *buf, size_t n)
 
virtual bool putbyte (unsigned char c)
 
virtual bool puts (const char *s)
 
virtual bool puts (const std::string &s)
 
virtual bool vprintf (const char *fmt, va_list &ap)
 
- Public Member Functions inherited from mootio::mcxxstream< std::ostream >
 mcxxstream (std::ostream *streamptr=__null)
 
 mcxxstream (std::ostream &stream)
 
virtual ~mcxxstream (void)
 
virtual bool valid (void)
 
virtual bool eof (void)
 
- Public Member Functions inherited from mootio::mstream
 mstream (const std::string &myname="")
 
virtual ~mstream (void)
 
 operator bool (void)
 
virtual std::string errmsg (void)
 
virtual bool reopen (void)
 
virtual bool close (void)
 
- Public Member Functions inherited from mootio::mostream
 mostream (void)
 
virtual ~mostream (void)
 
virtual bool flush (void)
 
bool printf (const char *fmt,...)
 

Public Attributes

char * _printf_buffer
 persistent buffer for printf hack More...
 
ByteCount _printf_buflen
 allocated size of _printf_buffer More...
 
- Public Attributes inherited from mootio::mcxxstream< std::ostream >
std::ostream * streamp
 pointer to underlying stream More...
 
- Public Attributes inherited from mootio::mstream
std::string name
 symbolic name of this stream More...
 

Detailed Description

Wrapper for C++ output streams (std::ostream)

Constructor & Destructor Documentation

◆ mocxxstream() [1/2]

mootio::mocxxstream::mocxxstream ( std::ostream *  ostreamptr)
inline

Default constructor

◆ mocxxstream() [2/2]

mootio::mocxxstream::mocxxstream ( std::ostream &  ostream)
inline

Reference-based constructor

◆ ~mocxxstream()

virtual mootio::mocxxstream::~mocxxstream ( void  )
inlinevirtual

Destructor

Member Function Documentation

◆ mflush()

virtual bool mootio::mocxxstream::mflush ( void  )
inlinevirtual

Flush all pending output

◆ write()

virtual bool mootio::mocxxstream::write ( const char *  buf,
size_t  n 
)
inlinevirtual

Write
bytes from to the stream

Reimplemented from mootio::mostream.

◆ putbyte()

virtual bool mootio::mocxxstream::putbyte ( unsigned char  c)
inlinevirtual

Write a single byte to the stream

Reimplemented from mootio::mostream.

◆ puts() [1/2]

virtual bool mootio::mocxxstream::puts ( const char *  s)
inlinevirtual

Write a C string to the stream

Reimplemented from mootio::mostream.

◆ puts() [2/2]

virtual bool mootio::mocxxstream::puts ( const std::string &  s)
inlinevirtual

Write a C++ string to the buffer

Reimplemented from mootio::mostream.

◆ vprintf()

virtual bool mootio::mocxxstream::vprintf ( const char *  fmt,
va_list &  ap 
)
inlinevirtual

printf() to the stream, va_list version (the real thing)

Reimplemented from mootio::mostream.

Member Data Documentation

◆ _printf_buffer

char* mootio::mocxxstream::_printf_buffer

◆ _printf_buflen

ByteCount mootio::mocxxstream::_printf_buflen

The documentation for this class was generated from the following file: