// // C++ Interface: langelemsprinter // // Description: // // // Author: Lorenzo Bettini , (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #ifndef LANGELEMSPRINTER_H #define LANGELEMSPRINTER_H #include #include /** Prints all the language elements @author Lorenzo Bettini */ class LangElemsPrinter { typedef std::set SetOfElements; SetOfElements setOfElements; public: LangElemsPrinter(); virtual ~LangElemsPrinter(); /** * Prints all the elements contained in the passed LangElems * to the standard output. */ void print(const LangElems *elems); protected: branches collect void (const StateLangElem *elem); void (const LangElem *elem); void (const LangElems *elem); endbranches }; #endif