00001 #ifndef VIS_EVENT_VIS_EVENT_CONTENT_TWIG_H 00002 # define VIS_EVENT_VIS_EVENT_CONTENT_TWIG_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "Iguana/Framework/interface/IgTwig.h" 00007 00008 //<<<<<< PUBLIC DEFINES >>>>>> 00009 //<<<<<< PUBLIC CONSTANTS >>>>>> 00010 //<<<<<< PUBLIC TYPES >>>>>> 00011 00012 class IgState; 00013 00014 namespace edm 00015 { 00016 class Event; 00017 class EventID; 00018 class EventSetup; 00019 class Timestamp; 00020 } 00021 00022 00023 //<<<<<< PUBLIC VARIABLES >>>>>> 00024 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00025 //<<<<<< CLASS DECLARATIONS >>>>>> 00026 00027 class VisEventContentTwig : public IgCompoundTwig 00028 { 00029 public: 00030 VisEventContentTwig (IgState *state, 00031 IgTwig *parent, 00032 const std::string name, 00033 bool traverse = false, 00034 bool visible = false, 00035 bool open = false); 00036 // implicit copy constructor 00037 // implicit assignment operator 00038 // implicit destructor 00039 virtual std::string name (void) const; 00040 virtual void name (const std::string& value); 00041 virtual bool expand (void); 00042 virtual bool selfTraverse (void) const; 00043 virtual void selfTraverse (bool value); 00044 virtual bool selfVisible (void) const; 00045 virtual void selfVisible (bool value); 00046 virtual bool cascade (void) const; 00047 virtual void cascade (bool value); 00048 00049 virtual void onPreEvent (const edm::EventID &eventID, const edm::Timestamp &timeStamp); 00050 virtual void onNewEvent (const edm::Event &event, 00051 const edm::EventSetup &eventSetup); 00052 00053 IgState * state (void); 00054 00055 private: 00056 static const unsigned int TRAVERSE = 2; 00057 static const unsigned int VISIBLE = 4; 00058 static const unsigned int CASCADE = 8; 00059 00060 IgState *m_state; //< State context. 00061 const std::string m_name; 00062 std::string m_text; 00063 }; 00064 00065 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00066 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00067 00068 inline IgState * 00069 VisEventContentTwig::state (void) 00070 { return m_state; } 00071 00072 #endif // VIS_EVENT_VIS_EVENT_CONTENT_TWIG_H