#include <history.hpp>
Sloty publiczne | |
void | saveToMFile (string fname) |
Metody publiczne | |
void | add (unsigned int ID, AnimalParam ¶m, unsigned int t) |
void | addEvent (Event &ev) |
AnimalParam | get (unsigned int ID, unsigned int t) |
void | getEvent (unsigned int t, list< Event > &ret) |
History () | |
Atrybuty chronione | |
map< unsigned int, History_ > | _animalHist |
list< Event > | _eventHist |
History::History | ( | ) |
Konstruktor.
void History::add | ( | unsigned int | ID, | |
AnimalParam & | param, | |||
unsigned int | t | |||
) |
Dodaj moment historyczny
identyfikator | zwierzecia | |
parametry | w danym momencie | |
moment | [ms] |
void History::addEvent | ( | Event & | ev | ) |
Dodaje zdarzenie
zdarzenie |
AnimalParam History::get | ( | unsigned int | ID, | |
unsigned int | t | |||
) |
Pobierz moment historyczny
indentyfikator | zwierzecia | |
moment | [ms] |
void History::getEvent | ( | unsigned int | t, | |
list< Event > & | ret | |||
) |
Pobiera zdarzenie
moment | [ms] | |
poprzez | zmienna zwracana jest lista zdarzen, ktore wystapily w danym momencie |
void History::saveToMFile | ( | string | fname | ) | [slot] |
Wykonuje zrzut historii w formacie m-file.
fname |
iterHist->second.saveToMFile(mfile, (*iterHist).first);
map<unsigned int, History_> History::_animalHist [protected] |
list<Event> History::_eventHist [protected] |