Writing Converters » History » Version 1

J. Moringen, 06/22/2011 09:50 PM
initial outline

1 1 J. Moringen
h1. Writing Converters
2 1 J. Moringen
3 1 J. Moringen
h2. Introduction
4 1 J. Moringen
5 1 J. Moringen
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 [[Types|here]]. However, in many use-cases it is necessary to use additional converters for domain-specific types and/or serialization mechanisms.
6 1 J. Moringen
7 1 J. Moringen
This page describes how to add such converters to RSB using the running example of a converter for TODO.
8 1 J. Moringen
9 1 J. Moringen
h2. Preparation
10 1 J. Moringen
11 1 J. Moringen
In order to implement a new converter, the following information is required:
12 1 J. Moringen
* To/from which [[Glossary|wire-type]] will the converter serialize/deserialize? In our example, the wire-type is TODO.
13 1 J. Moringen
* Which [[Glossary|data-type]] or (data-types) will be handled by the converter? TODO in our example.
14 1 J. Moringen
* What is the [[Glossary|wire-schema]] of the converter?
15 1 J. Moringen
16 1 J. Moringen
h2. Implementation: C++