File: fgdlist.h

package info (click to toggle)
ftpgrab 0.1.2r-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 376 kB
  • ctags: 335
  • sloc: cpp: 2,790; makefile: 26
file content (34 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _FGDLIST_H
#define _FGDLIST_H

// fgdlist.h

#ifndef _FGFILEINFO_H
#include "fgfileinfo.h"
#endif

#ifndef __SGI_STL_VECTOR_H
#include <vector.h>
#endif

#ifndef _FGSTRING_H
#define "fgstring.h"
#endif

class FGDirListing : public vector<FGFileInfo> {
public:
  // Constructor must specify the name of the dir
  FGDirListing(const FGString& dirName);

  // Some static helper methods for comparing file lists etc.
  static FGDirListing GetRHSOnlyFiles(const FGDirListing& lhs,
                                      const FGDirListing& rhs);

  const FGString& GetDirName(void) const;

private:
  // Directory name (full path) this listing is actually for
  FGString mDirName;
};

#endif // _FGDLIST_H