File: fgfshelp.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 (30 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (9)
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
#ifndef _FGFSHELP_H
#define _FGFSHELP_H

// fgfshelp.h
//
// Helper class for local filesystem operations; static members only

class FGDirListing;
class FGString;

class FGFileSystemHelper {
public:
  // Get a _local_ dir listing
  static FGDirListing GetDirListing(const FGString& dir);

  // Transfer data from one (remote) fd to another
  static void TransferRemoteToLocal(int fromFD, int toFD, int bytes);

  // Create local file to put data in
  static int CreateLocalFile(const FGString& file);

  // Delete a local file
  static void DeleteFile(const FGString& file);

private:
  // Constants
  static const int msTransferBufSize = 1024 * 64;
};

#endif // _FGFSHELP_H