LibPkg
auto_dir.h
Go to the documentation of this file.
1 // This file is part of LibPkg.
2 // Copyright © 2003-2005 Graham Shaw.
3 // Distribution and use are subject to the GNU Lesser General Public License,
4 // a copy of which may be found in the file !LibPkg.Copyright.
5 
6 #ifndef LIBPKG_AUTO_DIR
7 #define LIBPKG_AUTO_DIR
8 
9 #include <string>
10 
11 namespace pkg {
12 
13 using std::string;
14 
20 class auto_dir
21 {
22 private:
24  string _pathname;
25 public:
29  auto_dir();
30 
34  ~auto_dir();
35 
41  void operator()(const string& pathname);
42 };
43 
44 }; /* namespace pkg */
45 
46 #endif
A class for automatically creating and deleting directories.
Definition: auto_dir.h:20
~auto_dir()
Destroy auto-directory object.
Definition: auto_dir.cc:39
void operator()(const string &pathname)
Move to new pathname.
Definition: auto_dir.cc:42
auto_dir()
Construct auto-directory object.
Definition: auto_dir.cc:36

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)