====== Klasse FileInfo ====== ===== Verwendung ===== #include #include #include AdvFileInfo MyAdvFileInfo; FileInfo MyFileInfo( "Path/to/file", MyAdvFileInfo );//Pfad sowohl String als auch char const * std::string Dateiname = MyFileInfo.GetName(); std::string Dateipfad = MyFileInfo.GetPath(); unsigned long long Dateigroesse = MyFileInfo.GetSize(); std::string Dateierstellungsdatum = MyFileInfo.GetDateCreated(); std::string Dateiaenderungsdatum = MyFileInfo.GetDateChanged(); unsigned long long Hash; MyFileInfo.SetHash( Hash ); Hash = MyFileInfo.GetHash(); //Dedupe::State enthält eine Konstantensammlung als Enum MyFileInfo.SetInfoFilesearch( Dedupe::State::ok ); short State = MyFileInfo.GetInfoFilesearch(); MyFileInfo.SetInfoHash( Dedupe::State::ok ); short State = MyFileInfo.GetInfoHash(); MyFileInfo.SetInfoDatabase( Dedupe::State::ok ); short State = MyFileInfo.GetInfoDatabase(); MyFileInfo.SetInfoGui( Dedupe::State::ok ); short State = MyFileInfo.GetInfoGui();