31 #include "boost/filesystem.hpp"
33 namespace fs = boost::filesystem;
58 std::stringstream mess;
63 while(fin<file.size()-1)
65 fin=file.find(
'#',ini);
71 mess<<
"Database up to date"<<std::endl;
86 mess<<file<<
" has been removed from the DB"<<std::endl;
90 mess<<file<<
" State: Non existant"<<std::endl;
105 if ( !fs::exists( file ) )
116 std::map< std::string, std::string> attr;
120 tree::LevelDescriptor::AttributeDescriptorListType::const_iterator a;
121 for (a = adl.begin();a!=adl.end();++a)
123 std::string databaseVal;
125 std::string fileVal=attr.find(a->GetKey())->second;
126 if ( a->GetFlags()==0 && databaseVal.compare(fileVal)!=0 )
131 mess<<file<<
" has been updated in the DB"<<std::endl;
135 mess<<file<<
" State: Attributes differ"<<std::endl;