Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Create Components from Attributes (Qi and Karma)

Define a Custom Attribute Mapping for a Parser
Define a Custom Attribute Mapping for a Generator

Spirit supports the creation of a default parser or a default generator from a given attribute type. It implements a minimal set of predefined mappings from different attribute types to parsers and generators (for a description of the predefined mappings see Additional Attribute Requirements for Parsers and Additional Attribute Requirements for Generators). The customization points described in this section (traits::create_parser and traits::create_generator) can be specialized to define additional mappings for custom data types.


PrevUpHomeNext