null_reporter.hpp

00001 /*
00002 This file is part of GraphLab.
00003 
00004 GraphLab is free software: you can redistribute it and/or modify
00005 it under the terms of the GNU Lesser General Public License as 
00006 published by the Free Software Foundation, either version 3 of 
00007 the License, or (at your option) any later version.
00008 
00009 GraphLab is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU Lesser General Public License for more details.
00013 
00014 You should have received a copy of the GNU Lesser General Public 
00015 License along with GraphLab.  If not, see <http://www.gnu.org/licenses/>.
00016 */
00017 
00018 
00019 #ifndef GRAPHLAB_NULL_REPORTER
00020 #define GRAPHLAB_NULL_REPORTER
00021 
00022 #include <graphlab/metrics/imetrics_reporter.hpp>
00023 
00024 /**
00025  * Simple metrics reporter that dumps metrics to
00026  * standard output.
00027  */
00028 
00029 namespace graphlab {
00030 
00031   class null_reporter : public imetrics_reporter {
00032 
00033   public:
00034     virtual void do_report(std::string name, std::string ident, std::map<std::string, metrics_entry> & entries) {
00035     }
00036 
00037   };
00038 
00039 }
00040 
00041 
00042 
00043 #endif
00044