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

stream.C File Reference

#include "std/support.H"
#include "net.H"
#include "pack.H"
#include "stream.H"

Include dependency graph for stream.C:

Go to the source code of this file.

Defines

#define INIT_PACK   (packcount = 0, packbuf = packbuf_space)
#define DONE_PACK   ds.write_delim(' '); ds.write(packbuf_space, packcount);
#define INIT_UNPACK

Functions

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

Variables

static const int DSTREAM_READ_AHEAD_FACTOR = 4
static char packbuf_space [sizeof(double)]
static char * packbuf
static int packcount


Define Documentation

#define DONE_PACK   ds.write_delim(' '); ds.write(packbuf_space, packcount);
 

Definition at line 296 of file stream.C.

Referenced by operator<<().

#define INIT_PACK   (packcount = 0, packbuf = packbuf_space)
 

Definition at line 295 of file stream.C.

Referenced by operator<<().

#define INIT_UNPACK
 

Value:

packbuf = packbuf_space;      \
                          ds.read_delim(); ds.read(packbuf, sizeof(data))

Definition at line 298 of file stream.C.

Referenced by operator>>().


Function Documentation

STDdstream& operator<< STDdstream ds,
unsigned char  data
 

Definition at line 712 of file stream.C.

STDdstream& operator<< STDdstream ds,
char  data
 

Definition at line 678 of file stream.C.

STDdstream& operator<< STDdstream ds,
double  data
 

Definition at line 644 of file stream.C.

STDdstream& operator<< STDdstream ds,
float  data
 

Definition at line 610 of file stream.C.

STDdstream& operator<< STDdstream ds,
unsigned long  data
 

Definition at line 574 of file stream.C.

STDdstream& operator<< STDdstream ds,
unsigned int  data
 

Definition at line 541 of file stream.C.

STDdstream& operator<< STDdstream ds,
unsigned short  data
 

Definition at line 508 of file stream.C.

STDdstream& operator<< STDdstream ds,
long  data
 

Definition at line 475 of file stream.C.

STDdstream& operator<< STDdstream ds,
int  data
 

Definition at line 442 of file stream.C.

STDdstream& operator<< STDdstream ds,
short  data
 

Definition at line 409 of file stream.C.

STDdstream& operator<< STDdstream ds,
str_ptr  data
 

Definition at line 374 of file stream.C.

STDdstream& operator<< STDdstream ds,
const char *const   data
 

Definition at line 324 of file stream.C.

STDdstream& operator>> STDdstream ds,
unsigned char &  data
 

Definition at line 697 of file stream.C.

STDdstream& operator>> STDdstream ds,
char &  data
 

Definition at line 663 of file stream.C.

STDdstream& operator>> STDdstream ds,
double &  data
 

Definition at line 630 of file stream.C.

STDdstream& operator>> STDdstream ds,
float &  temp
 

Definition at line 593 of file stream.C.

STDdstream& operator>> STDdstream ds,
unsigned long &  data
 

Definition at line 560 of file stream.C.

STDdstream& operator>> STDdstream ds,
unsigned int &  data
 

Definition at line 527 of file stream.C.

STDdstream& operator>> STDdstream ds,
unsigned short &  data
 

Definition at line 494 of file stream.C.

STDdstream& operator>> STDdstream ds,
long &  data
 

Definition at line 461 of file stream.C.

STDdstream& operator>> STDdstream ds,
int &  data
[inline]
 

Definition at line 428 of file stream.C.

References STDdstream::_fail, STDdstream::ascii(), INIT_UNPACK, STDdstream::istr(), packbuf, packcount, STD_FALSE, STD_TRUE, and UGA_UNPACK_WORD.

STDdstream& operator>> STDdstream ds,
short &  data
 

Definition at line 395 of file stream.C.

STDdstream& operator>> STDdstream ds,
str_ptr data
 

Definition at line 342 of file stream.C.

STDdstream& operator>> STDdstream ds,
char *&  data
 

Definition at line 305 of file stream.C.


Variable Documentation

const int DSTREAM_READ_AHEAD_FACTOR = 4 [static]
 

Definition at line 13 of file stream.C.

Referenced by STDdstream::read().

char* packbuf [static]
 

Definition at line 292 of file stream.C.

Referenced by NetStream::flush_data(), operator<<(), operator>>(), and NetStream::read_stuff().

char packbuf_space[sizeof(double)] [static]
 

Definition at line 291 of file stream.C.

Referenced by NetStream::flush_data(), and NetStream::read_stuff().

int packcount [static]
 

Definition at line 293 of file stream.C.

Referenced by NetStream::flush_data(), operator<<(), and operator>>().


Generated on Mon Sep 18 11:43:22 2006 for jot by  doxygen 1.4.4