00001
00002 #ifndef __DIRECTORY_H__
00003 #define __DIRECTORY_H__
00004
00005 #include "compressed.h"
00006 #include <boost/filesystem/path.hpp>
00007
00008
00009 namespace Spm
00010 {
00011 namespace Util
00012 {
00013 class Directory : public Compressed
00014 {
00015 private :
00016 void listFiles ();
00017 void copyDir (const boost::filesystem::path & origDir,
00018 const boost::filesystem::path & destDir);
00019 public:
00020 Directory (const boost::filesystem::path & dir);
00021
00022 bool uncompress (const boost::filesystem::path & dest);
00023
00024 bool extract (const std::string & file,
00025 const boost::filesystem::path & to);
00026 };
00027 }
00028 }
00029 #endif