File: fgmrank.h

package info (click to toggle)
ftpgrab 0.1.2r-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 332
  • sloc: cpp: 2,790; makefile: 63
file content (39 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (10)
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
#ifndef _FGMRANK_H
#define _FGMRANK_H

// fgmrank.h
//
// FGMatchRanking
//
// Class encapsulating "rank" given to a filename. Typically, the newer
// the version specified within the filename, the higher the rank

class FGMatchRanking {
public:
  // Default constructor
  FGMatchRanking();

  // Need these for the mm
  ~FGMatchRanking();
  FGMatchRanking(const FGMatchRanking& other);
  FGMatchRanking& operator=(const FGMatchRanking& other);

  // Aside from quality of match, was this a match at all?
  bool IsMatch(void) const;

  // Compare two rankings
  bool operator<(const FGMatchRanking& other) const;

  // Stuff another value on the stack
  void AddValue(int value);

  // Set the match flag
  void SetMatch(void);

private:
  // That fabled Cheshire Cat to hide implementation details again
  struct Internal_FGMatchRanking;
  Internal_FGMatchRanking* mpInternals;
};

#endif // _FGMRANK_H