11 #include <boost/filesystem/path.hpp> 12 #include <boost/filesystem/exception.hpp> 13 #include <boost/filesystem/operations.hpp> 14 #include <boost/filesystem/fstream.hpp> 15 #include <boost/noncopyable.hpp> 40 boost::filesystem::path entries_file_path ( dir_path /
"CVS/Entries" );
41 entries_file.open ( entries_file_path );
44 throw std::string (
"could not open: " ) + entries_file_path.string();
62 std::getline ( entries_file, contents );
63 if ( entries_file.eof() )
70 while ( contents ==
"D" );
71 if ( contents[0] ==
'D' )
73 contents.erase ( 0, 1 );
76 / boost::filesystem::path ( contents.substr ( 1, contents.find (
'/', 1 ) ), boost::filesystem::no_check );
cvs_iterator(const boost::filesystem::path &dir_path)
boost::filesystem::path value_path
boost::filesystem::path dir_path
bool operator!=(const cvs_iterator &rhs)
cvs_iterator & operator++()
const boost::filesystem::path & operator*() const
bool operator==(const cvs_iterator &rhs)
boost::filesystem::ifstream entries_file