File: fgscomp.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 (31 lines) | stat: -rw-r--r-- 689 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
#ifndef _FGSCOMP_H
#define _FGSCOMP_H

// fgscomp.h
//
// FGStringComponent: handles matching of plain string bits of a filename

#include "fgfncomp.h"

#ifndef _FGSTRING_H
#include "fgstring.h"
#endif

class FGStringComponent : public FGFileNameComponent {
public:
  // Construct from string fragment
  FGStringComponent(const FGString& str);

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

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

  FGString mStringBit;
};

#endif // _FGSCOMP_H