Public Member Functions

hamcast::util::deserializer Class Reference

Deserializes objects from a given source. More...

#include <deserializer.hpp>

List of all members.

Public Member Functions

 deserializer ()
 deserializer (const boost::intrusive_ptr< source > &src_ptr)
void reset (const boost::intrusive_ptr< source > &new_source)
void read (size_t buf_size, void *buf)

Detailed Description

Deserializes objects from a given source.


Constructor & Destructor Documentation

hamcast::util::deserializer::deserializer (  ) 

Create a deserializer with no data source.

hamcast::util::deserializer::deserializer ( const boost::intrusive_ptr< source > &  src_ptr  )  [explicit]

Create a deserializer that reads from src_ptr.

Parameters:
src_ptr The used data source.
Precondition:
src_ptr.get() != NULL.

Member Function Documentation

void hamcast::util::deserializer::read ( size_t  buf_size,
void *  buf 
)

Read buf_size bytes from the source and store them in buf.

Parameters:
buf_size Size of buf in bytes.
buf C-buffer to store the result of this operation.
Precondition:
buf_size > 0 && buf != NULL.
void hamcast::util::deserializer::reset ( const boost::intrusive_ptr< source > &  new_source  ) 

Change the used data source.

Parameters:
new_source The new data source for this.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator