File: fgicomp.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 (27 lines) | stat: -rw-r--r-- 695 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
#ifndef _FGICOMP_H
#define _FGICOMP_H

// fgicomp.h
//
// FGIntegerComponent: handles matching of numeric bits of filename.
// Probably the most used ranking primitive; e.g. linux-2.2.<x>.tar.gz
// and 2.2.3 is newer than 2.2.2 :-)

#include "fgfncomp.h"

class FGIntegerComponent : public FGFileNameComponent {
public:
  // Default constructor
  FGIntegerComponent();

  virtual bool MatchAndRankComponent(FGString& fnameRemainder,
                                     int* pMatchVal) const;
  virtual ~FGIntegerComponent();

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

#endif // _FGICOMP_H