Writing Converters » History » Version 1

Version 1/10 - Next ยป - Current version
J. Moringen, 06/22/2011 09:50 PM
initial outline


Writing Converters

Introduction

In RSB, converters are used to serialize and deserialize programming-language objects for transportation (e.g. over a network connection). RSB comes with converters for the fundamental types listed here. However, in many use-cases it is necessary to use additional converters for domain-specific types and/or serialization mechanisms.

This page describes how to add such converters to RSB using the running example of a converter for TODO.

Preparation

In order to implement a new converter, the following information is required:
  • To/from which wire-type will the converter serialize/deserialize? In our example, the wire-type is TODO.
  • Which data-type or (data-types) will be handled by the converter? TODO in our example.
  • What is the wire-schema of the converter?

Implementation: C++