activemq::io::EndianWriter Class Reference

#include <EndianWriter.h>

Inheritance diagram for activemq::io::EndianWriter:

activemq::io::Writer List of all members.

Public Member Functions

 EndianWriter ()
 EndianWriter (OutputStream *os)
virtual ~EndianWriter ()
virtual void setOutputStream (OutputStream *os)
virtual OutputStreamgetOutputStream ()
virtual void write (const unsigned char *buffer, int count) throw ( IOException )
virtual void writeByte (unsigned char v) throw ( IOException )
virtual void writeDouble (double v) throw ( IOException )
virtual void writeFloat (float v) throw ( IOException )
virtual void writeUInt16 (uint16_t v) throw ( IOException )
virtual void writeUInt32 (uint32_t v) throw ( IOException )
virtual void writeUInt64 (uint64_t v) throw ( IOException )

Private Attributes

OutputStreamoutputStream

Constructor & Destructor Documentation

EndianWriter::EndianWriter  ) 
 

Default Constructor.

EndianWriter::EndianWriter OutputStream os  ) 
 

Constructor.

Parameters:
os the target output stream.

EndianWriter::~EndianWriter  )  [virtual]
 

Destructor.


Member Function Documentation

virtual OutputStream* activemq::io::EndianWriter::getOutputStream void   )  [inline, virtual]
 

Gets the target output stream.

Implements activemq::io::Writer.

virtual void activemq::io::EndianWriter::setOutputStream OutputStream os  )  [inline, virtual]
 

Sets the target output stream.

Implements activemq::io::Writer.

void EndianWriter::write const unsigned char *  buffer,
int  count
throw ( IOException ) [virtual]
 

Writes a byte array to the target output stream.

Parameters:
buffer a byte array.
count the number of bytes to write.
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Writer.

void EndianWriter::writeByte unsigned char  v  )  throw ( IOException ) [virtual]
 

Writes a byte to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.

Implements activemq::io::Writer.

void EndianWriter::writeDouble double  v  )  throw ( IOException ) [virtual]
 

Writes a double to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.

void EndianWriter::writeFloat float  v  )  throw ( IOException ) [virtual]
 

Writes a float to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.

void EndianWriter::writeUInt16 uint16_t  v  )  throw ( IOException ) [virtual]
 

Writes a short to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.

void EndianWriter::writeUInt32 uint32_t  v  )  throw ( IOException ) [virtual]
 

Writes an int to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.

void EndianWriter::writeUInt64 uint64_t  v  )  throw ( IOException ) [virtual]
 

Writes a long long to the target output stream.

Parameters:
v the value to be written
Exceptions:
IOException thrown if an error occurs.


Member Data Documentation

OutputStream* activemq::io::EndianWriter::outputStream [private]
 

Target output stream.


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5