mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 04:32:30 +00:00
5b050b594b
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@291 e378c898-3ddf-0310-93e7-cc216c733640
40 lines
692 B
C++
40 lines
692 B
C++
#ifndef RTORRENT_UTILS_DIRECTORY_H
|
|
#define RTORRENT_UTILS_DIRECTORY_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace utils {
|
|
|
|
class Directory : private std::vector<std::string> {
|
|
public:
|
|
typedef std::vector<std::string> Base;
|
|
|
|
using Base::iterator;
|
|
using Base::const_iterator;
|
|
using Base::reverse_iterator;
|
|
using Base::const_reverse_iterator;
|
|
|
|
using Base::begin;
|
|
using Base::end;
|
|
using Base::rbegin;
|
|
using Base::rend;
|
|
|
|
using Base::empty;
|
|
using Base::size;
|
|
|
|
Directory() {}
|
|
Directory(const std::string& path) : m_path(path) {}
|
|
|
|
void update();
|
|
|
|
const std::string& get_path() { return m_path; }
|
|
|
|
private:
|
|
std::string m_path;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|