RDK2::UnitTest::Serialization::ArrayUint8 Struct Reference

#include <good_tests.h>

Inheritance diagram for RDK2::UnitTest::Serialization::ArrayUint8:

Inheritance graph
[legend]
Collaboration diagram for RDK2::UnitTest::Serialization::ArrayUint8:

Collaboration graph
[legend]

Detailed Description

Definition at line 258 of file good_tests.h.


Public Member Functions

 ArrayUint8 ()
 ~ArrayUint8 ()
void write (Writer *w) const throw (WritingException)
void read (Reader *r) throw (ReadingException)

Data Fields

uint8_t * a

Constructor & Destructor Documentation

RDK2::UnitTest::Serialization::ArrayUint8::ArrayUint8 (  )  [inline]

Definition at line 261 of file good_tests.h.

References a, and ARRAY_SIZE.

RDK2::UnitTest::Serialization::ArrayUint8::~ArrayUint8 (  )  [inline]

Definition at line 265 of file good_tests.h.

References a.


Member Function Documentation

void RDK2::UnitTest::Serialization::ArrayUint8::write ( Writer  )  const throw (WritingException) [inline, virtual]

Function to be implemented by objects wishing to serialize themselves.

Here are some assumptions:

  • the object must call startWriting(), then output his data with the writeXXX functions, and then end with endWriting()
  • the object must let the exceptions generated by the Writer to pass through, as the writer will take care of them.
  • to serialize a sub-object, use the writeObject function.

Implements RDK2::Serialization::Writable.

Definition at line 267 of file good_tests.h.

References a, and ARRAY_SIZE.

void RDK2::UnitTest::Serialization::ArrayUint8::read ( Reader r  )  throw (ReadingException) [inline, virtual]

The object must let the exceptions generated by the Reader to pass through, as the reader will take care of them.

For de-serializing, the object must call on "r": 1) r->startReading("class name"); 2) zero or more r->read_* functions. 3) r->endReading();

Implements RDK2::Serialization::Readable.

Definition at line 273 of file good_tests.h.

References a, and RDK2::Statistics::r.


Field Documentation

Definition at line 259 of file good_tests.h.

Referenced by ArrayUint8(), read(), write(), and ~ArrayUint8().


The documentation for this struct was generated from the following file:

Generated on Tue Mar 3 15:07:03 2009 for OpenRDK by  doxygen 1.5.6