Back to index

scribus-ng  1.3.4.dfsg+svn20071115
uniqueid.h
Go to the documentation of this file.
00001 /*
00002  *  saxfilter.h
00003  *  
00004  *
00005  *  Created by Andreas Vox on 21.09.06.
00006  *  Copyright 2006 under GPL2. All rights reserved.
00007  *
00008  */
00009 
00010 
00011 
00012 #ifndef DESAXE_UNIQUEID_H
00013 #define DESAXE_UNIQUEID_H
00014 
00015 #include <set>
00016 #include "saxfilter.h"
00017 
00021 class UniqueID : public SaxFilter {
00022 public:
00023        UniqueID(SaxHandler* delegate) : SaxFilter(delegate), seenIDs(), level(0)  {}
00024        virtual void begin(const Xml_string& tag, Xml_attr attr);
00025        virtual void end(const Xml_string& tag);
00026        virtual void chars(const Xml_string& text);
00027 private:
00028        std::set<Xml_string> seenIDs;
00029        int level;
00030 };
00031 
00032 #endif