#ifndef SCENEVIS_H
#define SCENEVIS_H

#include "visman.h"

class SceneVis : public Vis {
protected:
  const LogEntry *_start;
public:
  SceneVis (const Vis *parent, const LogEntry *someevent) : Vis (parent, someevent), _start (someevent) {strcpy (_type, "sceneReadVis");}

   void Display (const LogEntry *current) const {}

  const LogEntry *GetStartEntry (void) const {return _start;}

  char *StatusLine (const LogEntry *ours) const  {char *newline = new char [strlen (ours->_name) + 1]; strcpy (newline, ours->_name); return newline;}

  int IsOurs (const LogEntry *en) const {return (IsStartEvent (en) || IsEndEvent (en));}
  int IsStartEvent (const LogEntry *en) const {return (en->_event == SceneReadFile_Start);}
  int IsEndEvent (const LogEntry *en) const {return (en->_event == SceneReadFile_End);}
};

#endif
