~ubuntu-branches/debian/experimental/libtorrent/experimental

« back to all changes in this revision

Viewing changes to src/torrent/path.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-03-31 10:31:05 UTC
  • mto: (4.1.4 gutsy) (6.2.1 squeeze) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20070331103105-jzpp1rml6ud0ff75
Tags: upstream-0.11.4
ImportĀ upstreamĀ versionĀ 0.11.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include <string>
41
41
#include <vector>
 
42
#include <torrent/common.h>
42
43
 
43
44
namespace torrent {
44
45
 
45
46
// Use a blank first path to get root and "." to get current dir.
46
47
 
47
 
class Path : private std::vector<std::string> {
 
48
class LIBTORRENT_EXPORT Path : private std::vector<std::string> {
48
49
public:
49
50
  typedef std::vector<std::string>          base_type;
50
51
 
76
77
 
77
78
  using base_type::push_back;
78
79
 
 
80
  using base_type::at;
 
81
  using base_type::operator[];
 
82
 
79
83
  void               insert_path(iterator pos, const std::string& path);
80
84
 
81
85
  // Return the path as a string with '/' deliminator. The deliminator