Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/inspect/license_check.hpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

File size: 1.0 KB
Line 
1//  license_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_LICENSE_CHECK_HPP
10#define BOOST_LICENSE_CHECK_HPP
11
12#include "inspector.hpp"
13
14namespace boost
15{
16  namespace inspect
17  {
18    class license_check : public source_inspector
19    {
20      long m_files_with_errors;
21    public:
22
23      license_check();
24      virtual const char * name() const { return "license-check"; }
25      virtual const char * desc() const { return "missing Boost license info"; }
26
27      virtual void inspect(
28        const std::string & library_name,
29        const path & full_path,
30        const std::string & contents );
31
32      virtual ~license_check()
33        { std::cout << "  "
34            << m_files_with_errors << " files missing Boost license info\n"; }
35    };
36  }
37}
38
39#endif // BOOST_LICENSE_CHECK_HPP
Note: See TracBrowser for help on using the repository browser.