summaryrefslogtreecommitdiff
path: root/swig/Arch.i
blob: 3f314b1d6b71329a14741ace97ddc8b312ee33d5 (plain)
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

typedef std::set<Arch,CompareByGT<Arch> > CompatSet;

%ignore Arch::compare(const Arch &, const Arch &);

class Arch
{
public:
  //Arch();
  Arch( const std::string & rhs );
  const std::string & asString() const;
  bool empty() const;
  bool compatibleWith( const Arch & targetArch_r ) const;
  int compare( const Arch & rhs ) const;
  static int compare( const Arch & lhs, const Arch & rhs );
  //static std::string asString( const CompatSet & cset );
  struct CompatEntry;
private:
  Arch( const CompatEntry & );
  const CompatEntry * _entry;
};

extern const Arch Arch_noarch;
extern const Arch Arch_x86_64;
extern const Arch Arch_athlon;
extern const Arch Arch_i686;
extern const Arch Arch_i586;
extern const Arch Arch_i486;
extern const Arch Arch_i386;
extern const Arch Arch_s390x;
extern const Arch Arch_s390;
extern const Arch Arch_ppc64;
extern const Arch Arch_ppc;
extern const Arch Arch_ia64;