Faudes object serialization.

Objects of a class derived from the universal base faudes::Type provide a uniform interface for serialization, which are to be implemented for derived classes. More...

Classes

class  faudes::Token
 Tokens model atomic data for stream IO. More...
class  faudes::TokenReader
 A TokenReader reads sequential tokens from a file or string. More...
class  faudes::TokenWriter
 A TokenWriter writes sequential tokens to a file, a string or stdout. More...

Detailed Description

Objects of a class derived from the universal base faudes::Type provide a uniform interface for serialization, which are to be implemented for derived classes.

This is supported by

  • the faudes::Token class to model atomic data units like integers, sections tags and strings.
  • the faudes::TokenReader class to read a tokenized character stream from file or string
  • the faudes::TokenWriter class to write a tokenized character stream to file or string

A token hast value types attached, e.g., type string, number, and/or tag. Tags indicate the beginning or end of a section, must balance, and must be XML compliant. The character data inbetween the tags is interpreted as a sequence of strings and numbers, to e.g. conveniently represent a list of events, transition or states. While the Token class implements reading and writing individual tokens from a C++ stream, the TokenReader and TokenWriter classes keep track of nested sections. Thus, opening a file via a TokenReader allows to scan for a particular section or to loop over all tokens from a particular section.

Tokens by example

  • abcd the string "abcd"
  • "abcd ef" the string "abcd ef"
  • 'adc"ed' the string containing a double quote
  • abc

libFAUDES 2.28a --- 2016.09.13 --- c++ api documentaion by doxygen