| Rev | Line |   | 
|---|
| [12] | 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 |   { | 
|---|
 | 18 |     class copyright_check : public source_inspector | 
|---|
 | 19 |     { | 
|---|
 | 20 |       long m_files_with_errors; | 
|---|
 | 21 |     public: | 
|---|
 | 22 |  | 
|---|
 | 23 |       copyright_check(); | 
|---|
 | 24 |       virtual const char * name() const { return "copyright-check"; } | 
|---|
 | 25 |       virtual const char * desc() const { return "missing copyright"; } | 
|---|
 | 26 |  | 
|---|
 | 27 |       virtual void inspect( | 
|---|
 | 28 |         const std::string & library_name, | 
|---|
 | 29 |         const path & full_path, | 
|---|
 | 30 |         const std::string & contents ); | 
|---|
 | 31 |  | 
|---|
 | 32 |       virtual ~copyright_check() | 
|---|
 | 33 |         { std::cout << "  " << m_files_with_errors << " files missing copyrights\n"; } | 
|---|
 | 34 |     }; | 
|---|
 | 35 |   } | 
|---|
 | 36 | } | 
|---|
 | 37 |  | 
|---|
 | 38 | #endif // BOOST_COPYRIGHT_CHECK_HPP | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.