degate  0.1.2
RCVBlacklistExporter.h
Go to the documentation of this file.
00001 /* -*-c++-*-
00002 
00003  This file is part of the IC reverse engineering tool degate.
00004 
00005  Copyright 2008, 2009, 2010 by Martin Schobert
00006 
00007  Degate is free software: you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by
00009  the Free Software Foundation, either version 3 of the License, or
00010  any later version.
00011 
00012  Degate is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU General Public License for more details.
00016 
00017  You should have received a copy of the GNU General Public License
00018  along with degate. If not, see <http://www.gnu.org/licenses/>.
00019 
00020  */
00021 
00022 #ifndef __RCVBLACKLISTEXPORTER_H__
00023 #define __RCVBLACKLISTEXPORTER_H__
00024 
00025 #include "globals.h"
00026 #include <RCBase.h>
00027 #include <RCViolation.h>
00028 #include "XMLExporter.h"
00029 #include "ObjectIDRewriter.h"
00030 
00031 #include <stdexcept>
00032 
00033 namespace degate {
00034 
00035   /**
00036    * The RCVBlacklistExporter exports a set of RC Violations, which should be ignored.
00037    */
00038   
00039   class RCVBlacklistExporter : public XMLExporter {
00040     
00041   private:
00042     
00043     void add_rcv(xmlpp::Element* templates_elem, RCViolation_shptr rcv);
00044     
00045     ObjectIDRewriter_shptr oid_rewriter;
00046     
00047   public:
00048     RCVBlacklistExporter(ObjectIDRewriter_shptr _oid_rewriter) : oid_rewriter(_oid_rewriter) {}
00049     ~RCVBlacklistExporter() {}
00050     
00051     void export_data(std::string const& filename, RCBase::container_type const& violations);
00052     
00053   };
00054 
00055 }
00056 
00057 #endif