// // 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 #include namespace srchilite { /** * Prints all the language elements. * his class uses dynamic overloading and it must be processed by doublecpp, * http://doublecpp.sf.net, in case you need to modify it. */ class LangElemsPrinter { typedef std::set SetOfElements; SetOfElements setOfElements; public: LangElemsPrinter(); virtual ~LangElemsPrinter(); /** * Prints all the elements contained in the passed LangElems * to the specified ostream. * @param elems * @param os */ void print(const LangElems *elems, std::ostream &os); protected: branches collect void (const StateLangElem *elem); void (const LangElem *elem); void (const LangElems *elem); void (const NamedSubExpsLangElem *elem); endbranches }; } #endif

AltStyle によって変換されたページ (->オリジナル) /