File: fgfilelist.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 (43 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (4)
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
35
36
37
38
39
40
41
42
43
#ifndef _FGFILELIST_H
#define _FGFILELIST_H

// fgfilelist.h

// Internal call which is the starting point for
// child threads
void* ThreadStartPoint(void* pArg);

class FGString;

class FGFileList {
public:
  // Constructor, desctructor
  FGFileList();
  ~FGFileList();

  // Loads file list from config rc file
  void LoadConfig(const FGString& configFile);

  // The all import "grab them all" method :-)
  void GetAllFiles(void) const;

private:
  // Banned!
  FGFileList(const FGFileList& other);
  FGFileList& operator=(const FGFileList& other);

  // Internal helpers
  FGString GetLineString(void) const;

  // Using the Cheshire Cat to hide implementation details
  struct Internal_FGFileList;
  Internal_FGFileList* mpInternals;

  int mLine;

  // Counter of active child rule threads
  // (shared across all threads)
  static int msThreadsActive;
};

#endif // _FGFILELIST_H