18#ifndef CUPT_CACHE_RELATION_SEEN
19#define CUPT_CACHE_RELATION_SEEN
29struct CUPT_API Relation
32 CUPT_LOCAL
const char* p_parseVersionPart(
const char*,
const char*);
33 CUPT_LOCAL
const char* p_parseRelationSymbols(
const char*,
const char*);
34 CUPT_LOCAL
const char* p_parsePackagePart(
const char*,
const char*);
35 CUPT_LOCAL
const char* __init(
const char*,
const char*);
37 Relation(pair<const char*, const char*> input,
char const* * end);
43 enum Type { Less, Equal, More, LessOrEqual, MoreOrEqual, LiteralyEqual, None };
57 explicit Relation(pair< const char*, const char* > input);
58 Relation(Relation&&) =
default;
59 Relation(
const Relation&) =
default;
60 Relation& operator=(Relation&&) =
default;
61 Relation& operator=(
const Relation&) =
default;
87 CUPT_LOCAL
const char* p_parseArchitectures(
const char*,
const char*);
88 CUPT_LOCAL
const char* p_parseProfiles(
const char*,
const char*);
89 CUPT_LOCAL
void __init(
const char*,
const char*,
const char*);
91 vector<string> architectureFilters;
92 vector<vector<string>> buildProfiles;
105 string toString()
const;
112 CUPT_LOCAL
void __init(
const char*,
const char*);
146 CUPT_LOCAL
void __init(
const char*,
const char*);
178 CUPT_LOCAL
void __init(
const char*,
const char*);
210 CUPT_LOCAL
void __init(
const char*,
const char*);
virtual ~ArchitecturedRelationExpression()
destructor
ArchitecturedRelationExpression(const string &input)
constructor
ArchitecturedRelationExpression()
default constructor
ArchitecturedRelationExpression(pair< const char *, const char * > input)
constructor
string toString() const
gets the string representation
ArchitecturedRelationLine(pair< const char *, const char * > input)
constructor
ArchitecturedRelationLine(const string &input)
constructor
RelationLine toRelationLine(const string ¤tArchitecture) const
converts to RelationLine given system architecture
string toString() const
gets the string representation
ArchitecturedRelationLine()
default constructor
virtual ~ArchitecturedRelationLine()
destructor
ArchitecturedRelation(pair< const char *, const char * > input)
constructor
RelationExpression()
default constructor
virtual ~RelationExpression()
destructor
string toString() const
gets the string representation
string getHashString() const
fast function to get unique, not human-readable identifier
RelationExpression(pair< const char *, const char * > input)
constructor
RelationExpression(const string &input)
constructor
array of relation expressions
Definition relation.hpp:176
RelationLine()
default constructor
RelationLine(pair< const char *, const char * > input)
constructor
string toString() const
gets the string representation
RelationLine(const string &input)
constructor
virtual ~RelationLine()
destructor
relation type
Definition relation.hpp:41
static const string strings[]
string values of corresponding types
Definition relation.hpp:45
Type
type
Definition relation.hpp:43
Relation(pair< const char *, const char * > input)
constructor
string toString() const
gets the string reprentation
virtual ~Relation()
destructor
bool isSatisfiedBy(const string &otherVersionString) const
is relation satisfied by otherVersionString
bool operator==(const Relation &other) const
operator ==