File: fgfncomp.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 (23 lines) | stat: -rw-r--r-- 703 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
#ifndef _FGFNCOMP_H
#define _FGFNCOMP_H

// fgfncomp.h
//
// FGFileNameComponent: base class for "bits" of a filename which can
// be compared, matched, ranked etc. to determine how "recent" a file is

class FGString;

class FGFileNameComponent {
public:
  // In: string with remainder of filename to be matched/ranked
  // Out: int representing rank value (-1 for valueless match)
  // Out: String is modified; matched bit is chopped off
  // Out: bool, did we match or not?
  virtual bool MatchAndRankComponent(FGString& fnameRemainder,
                                     int* pMatchVal) const = 0;
  // Need virtual destructor for the mm
  virtual ~FGFileNameComponent();
};

#endif // _FGFNCOMP_H