LifeV
copyright_check.hpp
Go to the documentation of this file.
1 // copyright_check header --------------------------------------------------//
2 
3 // Copyright Beman Dawes 2002, 2003.
4 // Copyright Rene Rivera 2004.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef BOOST_COPYRIGHT_CHECK_HPP
10 #define BOOST_COPYRIGHT_CHECK_HPP
11 
12 #include "inspector.hpp"
13 
14 namespace boost
15 {
16 namespace inspect
17 {
19 {
21 public:
22 
24  virtual const char* name() const
25  {
26  return "copyright-check";
27  }
28  virtual const char* desc() const
29  {
30  return "missing copyright";
31  }
32 
33  virtual void inspect (
34  const std::string& library_name,
35  const path& full_path,
36  const std::string& contents );
37 
38  virtual ~copyright_check()
39  {
40  std::cout << " " << m_files_with_errors << " files missing copyrights\n";
41  }
42 };
43 }
44 }
45 
46 #endif // BOOST_COPYRIGHT_CHECK_HPP
virtual const char * name() const
virtual void inspect(const std::string &library_name, const path &full_path, const std::string &contents)
virtual const char * desc() const