29 lines
613 B
C
29 lines
613 B
C
#ifndef NALOGA1001_FUNCTIONS_H
|
|
#define NALOGA1001_FUNCTIONS_H
|
|
|
|
#include "Artwork.h"
|
|
|
|
bool ascendingYear(Artwork* i, Artwork* j){
|
|
return i->getYear() < j->getYear();
|
|
};
|
|
|
|
bool descandingYear(Artwork* i, Artwork* j){
|
|
return i->getYear() > j->getYear() ;
|
|
};
|
|
|
|
bool ascendingPrice(Artwork* i, Artwork* j) {
|
|
return (i->getPrice() > j->getPrice());
|
|
|
|
};
|
|
|
|
bool isRenaissanceArt(Artwork* a){
|
|
//return (a->getYear() > 1400 && a->getYear() < 1600);
|
|
return a->getYear() < 0;
|
|
};
|
|
|
|
bool isCheperThen(Artwork* a){
|
|
return a->getPrice() < 1500;
|
|
};
|
|
|
|
#endif //NALOGA1001_FUNCTIONS_H
|