コード例 #1
0
void HistoryHandler::addEvent (CommandParser& test)
{
	int index = masterList[0].dateDifference(test.getDateObj());
	if (masterList.size()<=index)
		fillDates(index);
	
	masterList[index].addEvent(	test.getId(), 
								test.getInputName(), 
								test.getInputLocation(), 
								test.getStartTimeObj(), 
								test.getEndTimeObj(), 
								test.getInputEventType(), 
								test.getEventStatus());	
}
コード例 #2
0
void HistoryHandler::showEvents (CommandParser test)
{
	Date date;
	if (test.hasName())
	{
		displayList.clear();
		searchInputParameter(test.getInputName(), "name");
	}
	
	else if (test.hasDate())
	{
		showParticularDate(test.getDateObj());
	}

	else if (test.hasLocation())
	{
		displayList.clear();
		searchInputParameter(test.getInputLocation(), "location");
	}
}