TC::Factory Namespace Reference
[Base Classes and Functions]

Factory for creating TC objects. More...


Functions

CodecPtr CreateAsciiCodec ()
 Create an ascii codec.
CodecPtr CreateBinaryCodec ()
 Create an binary codec without byte order conversion.
CodecPtr CreateLittleEndianBinaryCodec ()
 Create an binary codec (little endian).
CodecPtr CreateBigEndianBinaryCodec ()
 Create an binary codec (big endian).
StreamPtr CreateFileStream (std::FILE *stream, Stream::StreamDirection direction, CodecPtr codec)
 Create an file stream.
StreamPtr CreateFileStream (const std::string &fileName, Stream::StreamDirection direction, CodecPtr codec)
 Create an file stream.
StreamPtr CreateMemoryStream (CodecPtr codec, std::vector< uchar > &memory)
 Create an memory stream.
StreamPtr CreateStringStream (std::string &memory)
 Create an string stream.
StreamPtr CreateStdOutStream ()
 Create a stream which writes to standard out.
StreamPtr CreateStdErrorStream ()
 Create a stream which writes to standard error.
RngPtr Create69069Rng ()
 Create an 69069 Rng object.


Detailed Description

Factory for creating TC objects.


Function Documentation

CodecPtr TC::Factory::CreateAsciiCodec (  ) 

Create an ascii codec.

Returns:
Shared pointer to the codec

CodecPtr TC::Factory::CreateBinaryCodec (  ) 

Create an binary codec without byte order conversion.

Returns:
Shared pointer to the codec

CodecPtr TC::Factory::CreateLittleEndianBinaryCodec (  ) 

Create an binary codec (little endian).

Returns:
Shared pointer to the codec

CodecPtr TC::Factory::CreateBigEndianBinaryCodec (  ) 

Create an binary codec (big endian).

Returns:
Shared pointer to the codec

StreamPtr TC::Factory::CreateFileStream ( std::FILE *  stream,
Stream::StreamDirection  direction,
CodecPtr  codec 
)

Create an file stream.

Parameters:
stream Pointer to an open file
direction Direction of the stream see TC::Stream::StreamDirection
codec Shared pointer to a codec for encoding or decoding the data
Returns:
Shared pointer to the stream

StreamPtr TC::Factory::CreateFileStream ( const std::string &  fileName,
Stream::StreamDirection  direction,
CodecPtr  codec 
)

Create an file stream.

Parameters:
fileName name of the file to open
direction Direction of the stream see TC::Stream::StreamDirection
codec Shared pointer to a codec for encoding or decoding the data
Returns:
Shared pointer to the stream

StreamPtr TC::Factory::CreateMemoryStream ( CodecPtr  codec,
std::vector< uchar > &  memory 
)

Create an memory stream.

Parameters:
codec Shared pointer to a codec for encoding or decoding the data
Returns:
Shared pointer to the stream

StreamPtr TC::Factory::CreateStringStream ( std::string &  memory  ) 

Create an string stream.

Returns:
Shared pointer to the stream

StreamPtr TC::Factory::CreateStdOutStream (  ) 

Create a stream which writes to standard out.

Returns:
Shared pointer to the stream

StreamPtr TC::Factory::CreateStdErrorStream (  ) 

Create a stream which writes to standard error.

Returns:
Shared pointer to the stream

RngPtr TC::Factory::Create69069Rng (  ) 

Create an 69069 Rng object.

Returns:
Shared pointer to the Rng object


Copyright (c) Thomas Goessler 2003 - 2008