Search code examples
boost-spiritboost-spirit-qi

How to use attribute grammar to parse a string into classes


I like the idea of using attribute grammar to directly parse an input string and fill in a struct after adapting it to a random access sequence using BOOST_FUSION_ADAPT_STRUCT and was wondering if it's possible to adapt a class with private members and setter/getter functions to behave the same way?


Solution

  • As noted by sehe, I was looking for BOOST_FUSION_ADAPT_ADT.