00001 #ifndef DATAITEMPART_H 00002 #define DATAITEMPART_H 00003 00007 struct DataItemPart 00008 { 00009 int year; 00010 int month; 00011 double quantity; 00012 00013 bool operator<(const DataItemPart& other) const { if (this->year < other.year || (this->year == other.year && this->month < other.month)) {return true;} else {return false;} } 00014 bool operator==(const DataItemPart& other) const { if (this->year == other.year && this->month == other.month) {return true;} else {return false;} } 00015 }; 00016 00017 #endif