BNullTextOutput Class Reference
[Data Model]

#include <support/NullStreams.h>

Inheritance diagram for BNullTextOutput:

ITextOutput IInterface SAtom List of all members.

Public Member Functions

 BNullTextOutput ()
virtual void Flush ()
 Request that any pending data be written.
virtual status_t LogV (const log_info &info, const iovec *vector, ssize_t count, uint32_t flags=0)
 Write a log line.
virtual void MoveIndent (int32_t delta)
 Adjust the current indentation level by delta amount.
virtual status_t Print (const char *debugText, ssize_t len=-1)
 level, and possibly other formatting, will be applied to each line.
virtual status_t Sync ()
 physical device.

Protected Member Functions

virtual ~BNullTextOutput ()

Constructor & Destructor Documentation

BNullTextOutput  ) 
 

~BNullTextOutput  )  [protected, virtual]
 


Member Function Documentation

void Flush  )  [virtual]
 

Request that any pending data be written.

This does NOT block until the data has been written; rather, it just ensures that the data will be written at some point in the future.

Implements ITextOutput.

status_t LogV const log_info &  info,
const iovec *  vector,
ssize_t  count,
uint32_t  flags = 0
[virtual]
 

Write a log line.

Metadata about the text is supplied in info. The text itself is supplied in the iovec, which is handled as one atomic unit. You can supply B_WRITE_END for flags to indicate the item being logged has ended.

void MoveIndent int32_t  delta  )  [virtual]
 

Adjust the current indentation level by delta amount.

Implements ITextOutput.

status_t Print const char *  debugText,
ssize_t  len = -1
[virtual]
 

level, and possibly other formatting, will be applied to each line.

If len is negative, all text up to the first NUL character will be printed. Otherwise, up to len characters will be printed.

Implements ITextOutput.

status_t Sync  )  [virtual]
 

physical device.

Returns B_OK if the data is safely stored away, else an error code.

Implements ITextOutput.


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