File: fgdyymmddcomp.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-- 693 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 _FGDYYMMDD_H
#define _FGDYYMMDD_H

// fgdyyddmm.h
//
// FGDateYYMMDDComponent
//
// Class to handle matching and ranking of date components
// e.g. Wine-990328.tar.gz etc.

#ifndef _FGFNCOMP_H
#include "fgfncomp.h"
#endif

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

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

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

#endif // _FGDYYMMDD_H