Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

STDdstream Class Reference

#include <stream.H>

Inheritance diagram for STDdstream:

Inheritance graph
[legend]
Collaboration diagram for STDdstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 STDdstream ()
 STDdstream (iostream *s)
 STDdstream (istream *i)
 STDdstream (ostream *o)
virtual ~STDdstream ()
void write (const char *const data, int count)
void read (UGAptr data, int count, int pop=1)
void flush ()
iostream * iostr () const
istream * istr () const
ostream * ostr () const
int ascii () const
char peekahead ()
void read_open_delim ()
void read_close_delim ()
void write_open_delim ()
void write_close_delim ()
void write_newline ()
void write_delim (char)
char read_delim ()
int check ()
int eof () const
void ws (char *)
STDbool operator! () const
STDbool fail () const
STDbool block () const
STDbool block (STDbool flag)
str_ptr get_string_with_spaces ()

Protected Member Functions

virtual size_t send (const UGAptr data, int count)
virtual size_t recv (UGAptr data, int count)

Protected Attributes

STDmem_queue _in_queue
STDmem_queue _out_queue
iostream * _iostream
istream * _istream
ostream * _ostream
int _indent

Private Attributes

STDbool _fail
STDbool _block

Friends

STDdstreamoperator>> (STDdstream &, char &)
STDdstreamoperator>> (STDdstream &, char *&)
STDdstreamoperator>> (STDdstream &, str_ptr &)
STDdstreamoperator>> (STDdstream &, short &)
STDdstreamoperator>> (STDdstream &, int &)
STDdstreamoperator>> (STDdstream &, long &)
STDdstreamoperator>> (STDdstream &, unsigned char &)
STDdstreamoperator>> (STDdstream &, unsigned short &)
STDdstreamoperator>> (STDdstream &, unsigned int &)
STDdstreamoperator>> (STDdstream &, unsigned long &)
STDdstreamoperator>> (STDdstream &, float &)
STDdstreamoperator>> (STDdstream &, double &)
STDdstreamoperator<< (STDdstream &, char)
STDdstreamoperator<< (STDdstream &, const char *const)
STDdstreamoperator<< (STDdstream &, str_ptr)
STDdstreamoperator<< (STDdstream &, short)
STDdstreamoperator<< (STDdstream &, int)
STDdstreamoperator<< (STDdstream &, long)
STDdstreamoperator<< (STDdstream &, unsigned char)
STDdstreamoperator<< (STDdstream &, unsigned short)
STDdstreamoperator<< (STDdstream &, unsigned int)
STDdstreamoperator<< (STDdstream &, unsigned long)
STDdstreamoperator<< (STDdstream &, float)
STDdstreamoperator<< (STDdstream &, double)

Detailed Description

Definition at line 22 of file stream.H.


Constructor & Destructor Documentation

STDdstream::STDdstream  ) 
 

Definition at line 20 of file stream.C.

STDdstream::STDdstream iostream *  s  ) 
 

Definition at line 30 of file stream.C.

STDdstream::STDdstream istream *  i  ) 
 

Definition at line 40 of file stream.C.

STDdstream::STDdstream ostream *  o  ) 
 

Definition at line 50 of file stream.C.

virtual STDdstream::~STDdstream  )  [inline, virtual]
 

Definition at line 33 of file stream.H.


Member Function Documentation

int STDdstream::ascii  )  const [inline]
 

Definition at line 43 of file stream.H.

References istr(), and ostr().

Referenced by COMMENT::decode(), JOTdone::format(), get_string_with_spaces(), NetStream::NetStream(), operator<<(), operator>>(), write_close_delim(), write_newline(), write_open_delim(), and ws().

STDbool STDdstream::block STDbool  flag  )  [inline]
 

Definition at line 63 of file stream.H.

References _block.

STDbool STDdstream::block  )  const [inline]
 

Definition at line 62 of file stream.H.

References _block.

Referenced by NetStream::NetStream(), and DISTRIB::save().

int STDdstream::check  )  [inline]
 

Definition at line 56 of file stream.H.

References peekahead().

Referenced by TAGformat::operator int(), and operator>>().

int STDdstream::eof  )  const [inline]
 

Definition at line 57 of file stream.H.

References _in_queue, STDmem_queue::count(), and istr().

Referenced by DISTRIB::interpret(), TAGformat::operator int(), and peekahead().

STDbool STDdstream::fail  )  const [inline]
 

Definition at line 61 of file stream.H.

References _fail.

Referenced by peekahead(), and DISTRIB::save().

void STDdstream::flush  ) 
 

Definition at line 173 of file stream.C.

References _block, _fail, _out_queue, STDmem_queue::count(), STDmem_queue::get(), STDmem_queue::peek(), send(), STD_FALSE, and STD_TRUE.

Referenced by flush(), NetStream::flush_data(), and write().

str_ptr STDdstream::get_string_with_spaces  ) 
 

Definition at line 244 of file stream.C.

References ascii(), istr(), and j.

iostream* STDdstream::iostr  )  const [inline]
 

Definition at line 39 of file stream.H.

References _iostream.

Referenced by NetStream::attached().

istream* STDdstream::istr  )  const [inline]
 

Definition at line 40 of file stream.H.

References _iostream, and _istream.

Referenced by ascii(), COMMENT::decode(), eof(), get_string_with_spaces(), DISTRIB::load(), operator>>(), peekahead(), read_close_delim(), and read_open_delim().

STDbool STDdstream::operator!  )  const [inline]
 

Definition at line 60 of file stream.H.

References _fail.

ostream* STDdstream::ostr  )  const [inline]
 

Definition at line 41 of file stream.H.

References _iostream, and _ostream.

Referenced by ascii(), operator<<(), and write_delim().

char STDdstream::peekahead  ) 
 

Definition at line 65 of file stream.C.

References _fail, eof(), fail(), istr(), read(), and STD_FALSE.

Referenced by check(), and DISTRIB::interpret().

void STDdstream::read UGAptr  data,
int  count,
int  pop = 1
 

Definition at line 123 of file stream.C.

References _block, _fail, _in_queue, STDmem_queue::count(), DSTREAM_READ_AHEAD_FACTOR, STDmem_queue::get(), STDmem_queue::peek(), STDmem_queue::put(), recv(), STD_FALSE, and STD_TRUE.

Referenced by operator>>(), peekahead(), and read_delim().

void STDdstream::read_close_delim  ) 
 

Definition at line 205 of file stream.C.

References istr(), and read_delim().

Referenced by TAGformat::read_end_id().

char STDdstream::read_delim  ) 
 

Definition at line 236 of file stream.C.

References read().

Referenced by operator>>(), read_close_delim(), and read_open_delim().

void STDdstream::read_open_delim  ) 
 

Definition at line 216 of file stream.C.

References istr(), and read_delim().

Referenced by TAGformat::read_id().

virtual size_t STDdstream::recv UGAptr  data,
int  count
[inline, protected, virtual]
 

Reimplemented in NetStream.

Definition at line 71 of file stream.H.

References _out_queue, and STDmem_queue::get().

Referenced by read().

virtual size_t STDdstream::send const UGAptr  data,
int  count
[inline, protected, virtual]
 

Reimplemented in NetStream.

Definition at line 70 of file stream.H.

References _in_queue, and STDmem_queue::put().

Referenced by flush().

void STDdstream::write const char *const   data,
int  count
 

Definition at line 98 of file stream.C.

References _block, _fail, _out_queue, flush(), STDmem_queue::put(), and STD_FALSE.

Referenced by operator<<(), and write_delim().

void STDdstream::write_close_delim  )  [inline]
 

Definition at line 50 of file stream.H.

References _indent, ascii(), and write_delim().

Referenced by TAGformat::end_id().

void STDdstream::write_delim char   ) 
 

Definition at line 227 of file stream.C.

References ostr(), and write().

Referenced by operator<<(), write_close_delim(), and write_open_delim().

void STDdstream::write_newline  )  [inline]
 

Definition at line 51 of file stream.H.

References _indent, ascii(), and ws().

Referenced by DATA_ITEM::format(), and TAGformat::id().

void STDdstream::write_open_delim  )  [inline]
 

Definition at line 49 of file stream.H.

References _indent, ascii(), and write_delim().

Referenced by TAGformat::id().

void STDdstream::ws char *   ) 
 

Definition at line 729 of file stream.C.

References ascii().

Referenced by TAGformat::id(), and write_newline().


Friends And Related Function Documentation

STDdstream& operator<< STDdstream ,
double 
[friend]
 

Definition at line 644 of file stream.C.

STDdstream& operator<< STDdstream ,
float 
[friend]
 

Definition at line 610 of file stream.C.

STDdstream& operator<< STDdstream ,
unsigned  long
[friend]
 

Definition at line 574 of file stream.C.

STDdstream& operator<< STDdstream ,
unsigned  int
[friend]
 

Definition at line 541 of file stream.C.

STDdstream& operator<< STDdstream ,
unsigned  short
[friend]
 

Definition at line 508 of file stream.C.

STDdstream& operator<< STDdstream ,
unsigned  char
[friend]
 

Definition at line 712 of file stream.C.

STDdstream& operator<< STDdstream ,
long 
[friend]
 

Definition at line 475 of file stream.C.

STDdstream& operator<< STDdstream ,
int 
[friend]
 

Definition at line 442 of file stream.C.

STDdstream& operator<< STDdstream ,
short 
[friend]
 

Definition at line 409 of file stream.C.

STDdstream& operator<< STDdstream ,
str_ptr 
[friend]
 

Definition at line 374 of file stream.C.

STDdstream& operator<< STDdstream ,
const char *  const
[friend]
 

Definition at line 324 of file stream.C.

STDdstream& operator<< STDdstream ,
char 
[friend]
 

Definition at line 678 of file stream.C.

STDdstream& operator>> STDdstream ,
double & 
[friend]
 

Definition at line 630 of file stream.C.

STDdstream& operator>> STDdstream ,
float & 
[friend]
 

Definition at line 593 of file stream.C.

STDdstream& operator>> STDdstream ,
unsigned long & 
[friend]
 

Definition at line 560 of file stream.C.

STDdstream& operator>> STDdstream ,
unsigned int & 
[friend]
 

Definition at line 527 of file stream.C.

STDdstream& operator>> STDdstream ,
unsigned short & 
[friend]
 

Definition at line 494 of file stream.C.

STDdstream& operator>> STDdstream ,
unsigned char & 
[friend]
 

Definition at line 697 of file stream.C.

STDdstream& operator>> STDdstream ,
long & 
[friend]
 

Definition at line 461 of file stream.C.

STDdstream& operator>> STDdstream ,
int & 
[friend]
 

Definition at line 89 of file net_types.H.

STDdstream& operator>> STDdstream ,
short & 
[friend]
 

Definition at line 395 of file stream.C.

STDdstream& operator>> STDdstream ,
str_ptr
[friend]
 

Definition at line 342 of file stream.C.

STDdstream& operator>> STDdstream ,
char *& 
[friend]
 

Definition at line 305 of file stream.C.

STDdstream& operator>> STDdstream ,
char & 
[friend]
 

Definition at line 663 of file stream.C.


Member Data Documentation

STDbool STDdstream::_block [private]
 

Definition at line 82 of file stream.H.

Referenced by block(), flush(), read(), and write().

STDbool STDdstream::_fail [private]
 

Definition at line 81 of file stream.H.

Referenced by fail(), flush(), operator!(), operator<<(), operator>>(), peekahead(), read(), and write().

STDmem_queue STDdstream::_in_queue [protected]
 

Definition at line 73 of file stream.H.

Referenced by eof(), NetStream::interpret(), read(), NetStream::read_stuff(), and send().

int STDdstream::_indent [protected]
 

Definition at line 78 of file stream.H.

Referenced by write_close_delim(), write_newline(), and write_open_delim().

iostream* STDdstream::_iostream [protected]
 

Definition at line 75 of file stream.H.

Referenced by iostr(), istr(), NetStream::NetStream(), ostr(), and NetStream::~NetStream().

istream* STDdstream::_istream [protected]
 

Definition at line 76 of file stream.H.

Referenced by istr().

ostream* STDdstream::_ostream [protected]
 

Definition at line 77 of file stream.H.

Referenced by ostr().

STDmem_queue STDdstream::_out_queue [protected]
 

Definition at line 74 of file stream.H.

Referenced by flush(), NetStream::flush_data(), recv(), and write().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:47:23 2006 for jot by  doxygen 1.4.4