~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/mod/sio/shl/Directory.hpp

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2015-07-11 02:00:35 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150711020035-2nhpztq7s15qyc0v
Tags: 2.5.1-1
* New upstream release. (Closes: #789968)
* Update debian/control.
  - Update Standards-Version to 3.9.6.
* Add support mips64(el) and ppc64el. (Closes: #741508, #748146)
* Add patches/support-gcc-5.x.patch. (Closes: #777767)
  - Fix build with gcc-5.x.
* Add patches/Disable-NET0001.als.patch.
  - Disable test of NET0001.als.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2012 amaury darsch                                   -
 
14
// - copyright (c) 1999-2015 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
#ifndef  AFNIX_DIRECTORY_HPP
18
18
#define  AFNIX_DIRECTORY_HPP
19
19
 
20
 
#ifndef  AFNIX_LIST_HPP
21
 
#include "List.hpp"
 
20
#ifndef  AFNIX_STRVEC_HPP
 
21
#include "Strvec.hpp"
22
22
#endif
23
23
 
24
24
namespace afnix {
29
29
  /// @author amaury darsch
30
30
 
31
31
  class Directory : public Object {
 
32
  public:
 
33
    /// remove a directory recursively
 
34
    /// @patam path the diectory path
 
35
    static void rmall (const String& path);
 
36
 
32
37
  private:
33
38
    /// the directory name
34
39
    String d_name;
71
76
    String nxtdpth (void);
72
77
 
73
78
    /// @return a list of this directory names
74
 
    List* getlist (void);
 
79
    Strvec* getlist (void);
75
80
 
76
81
    /// @return a list of this directory names with their path
77
 
    List* getplist (void);
 
82
    Strvec* getplist (void);
78
83
 
79
84
    /// @return a list of this directory files
80
 
    List* getfiles (void);
 
85
    Strvec* getfiles (void);
81
86
 
82
87
    /// @return a list of this directory files with their path
83
 
    List* getpfiles (void);
 
88
    Strvec* getpfiles (void);
84
89
 
85
90
    /// @return a list of sub directories
86
 
    List* getdirs (void);
 
91
    Strvec* getdirs (void);
87
92
 
88
93
    /// @return a list of sub directories with their path
89
 
    List* getpdirs (void);
 
94
    Strvec* getpdirs (void);
90
95
 
91
96
    /// create a new directory by name
92
97
    /// @param name the directory name