File: fgfilelist.h

package info (click to toggle)
ftpgrab 0.1.5-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 444 kB
  • sloc: cpp: 2,906; makefile: 103
file content (45 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (5)
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
44
45
#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;

  static void* ThreadStartPoint(void* pArg);
};

#endif // _FGFILELIST_H