From 748eec873689c550a340163e1ef02c9f135fa72b Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 20 Dec 2012 23:23:06 +0100 Subject: [PATCH] Add event_id() and obs_id() member access methods. --- inst/cta/include/GCTAEventAtom.hpp | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/inst/cta/include/GCTAEventAtom.hpp b/inst/cta/include/GCTAEventAtom.hpp index 40dbd66..ab6404f 100644 --- a/inst/cta/include/GCTAEventAtom.hpp +++ b/inst/cta/include/GCTAEventAtom.hpp @@ -68,6 +68,12 @@ public: void time(const GTime& time) { m_time=time; } std::string print(void) const; + // Other methods + const unsigned long& event_id(void) const { return m_event_id; } + const unsigned long& obs_id(void) const { return m_obs_id; } + void event_id(const unsigned long& id) { m_event_id=id; } + void obs_id(const unsigned long& id) { m_obs_id=id; } + protected: // Protected methods void init_members(void); -- libgit2 0.21.4