9 #ifndef BOOST_INSPECTOR_HPP 10 #define BOOST_INSPECTOR_HPP 15 #include <boost/filesystem/path.hpp> 18 using boost::filesystem::path;
31 virtual const char*
name()
const = 0;
32 virtual const char*
desc()
const = 0;
36 const string& library_name,
37 const path& full_path ) {}
41 const string& library_name,
42 const path& full_path,
43 const string& contents ) {}
58 const string& library_name,
59 const path& full_path,
82 inline string
relative_to (
const path& src_arg,
const path& base_arg )
86 path base ( base_arg );
88 string::size_type pos ( base.string().size() );
89 return src.string().substr (
90 pos + ( pos < src.string().size() ? 1 : 0 ) );
string impute_library(const path &full_dir_path)
void register_signature(const string &signature)
const string_set & signatures() const
virtual void inspect(const string &library_name, const path &full_path, const string &contents)
std::set< string > string_set
virtual void inspect(const string &library_name, const path &full_path)
string relative_to(const path &src_arg, const path &base_arg)
virtual const char * name() const =0
virtual const char * desc() const =0
void error(const string &library_name, const path &full_path, const string &msg)