40 std::vector<QString>::const_iterator it = h._events.begin();
42 while (it != h._events.end()) {
51 HiHistory(
const HiHistory &h) : _events(h._events) { }
52 virtual ~HiHistory() { }
54 inline int size()
const {
return (_events.size()); }
55 void add(
const QString &event) { _events.push_back(event); }
56 QString get(
unsigned int index = 0)
const {
57 if (index < _events.size()) {
58 return (_events[index]);
65 void clear() { _events.clear(); }
67 PvlKeyword makekey(
const QString &name =
"History")
const {
69 for (
unsigned int i = 0 ; i < _events.size() ; i++) {
70 key.addValue(_events[i]);
76 std::vector<QString> _events;
friend std::ostream & operator<<(std::ostream &o, const HiHistory &h)
Output operator for history events.