/*****************************************************************/
/*    NAME: Michael Benjamin                                     */
/*    ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA     */
/*    FILE: LifeEventHistory.h                                   */
/*    DATE: March 9th, 2010                                      */
/*                                                               */
/* This file is part of IvP Helm Core Libs                       */
/*                                                               */
/* IvP Helm Core Libs is free software: you can redistribute it  */
/* and/or modify it under the terms of the Lesser GNU General    */
/* Public License as published by the Free Software Foundation,  */
/* either version 3 of the License, or (at your option) any      */
/* later version.                                                */
/*                                                               */
/* IvP Helm Core Libs is distributed in the hope that it will    */
/* be useful but WITHOUT ANY WARRANTY; without even the implied  */
/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       */
/* PURPOSE. See the Lesser GNU General Public License for more   */
/* details.                                                      */
/*                                                               */
/* You should have received a copy of the Lesser GNU General     */
/* Public License along with MOOS-IvP.  If not, see              */
/* <http://www.gnu.org/licenses/>.                               */
/*****************************************************************/

#ifndef LIFE_EVENT_HISTORY_HEADER
#define LIFE_EVENT_HISTORY_HEADER

#include <string>
#include <vector>
#include "LifeEvent.h"

class LifeEventHistory
{
public:
  LifeEventHistory();
  ~LifeEventHistory() {}
  
  void addLifeEvent(const std::string& event);

  bool isStale() {return(m_stale_report);}

  void setBannerActive(bool v) {m_banner_active=v;}
  void setColorActive(bool v)  {m_color_active=v;}
  void setSeedActive(bool v)   {m_seed_active=v;}

  std::vector<std::string> getReport(std::string mode="normal");

protected:
  void addLifeEvent(const LifeEvent& event);

protected:

  std::vector<LifeEvent>   m_life_events;
  std::vector<std::string> m_life_events_raw;
  std::vector<std::string> m_history_report;

  bool m_stale_report;

  bool m_banner_active;
  bool m_color_active;
  bool m_seed_active;

  unsigned int m_max_len_time;
  unsigned int m_max_len_iter;
  unsigned int m_max_len_bname;
  unsigned int m_max_len_btype;
  unsigned int m_max_len_event;
  unsigned int m_max_len_seed;
};

#endif 









