bool TradesItem::isValid() { bool valid=date>0&&price>0.0&&amount>0.0; if(valid)cacheStrings(); return valid; }
void Item::postSpawn( Event * ) { cacheStrings(); }
bool HistoryItem::isValid() { bool valid=dateTimeInt>0&&symbol.size()==6; if(valid)cacheStrings(); return valid; }