Commit ff4fc70723fa0f5f858e02037b781907093738ad

Authored by Jürgen Knödlseder
1 parent b0412b63

Add observation container set method

Showing 1 changed file with 17 additions and 1 deletions
src/support/ctobservation.hpp
... ... @@ -62,6 +62,7 @@ public:
62 62 virtual void save(void) = 0;
63 63  
64 64 // Methods
  65 + void obs(const GObservations& obs);
65 66 const GObservations& obs(void) const;
66 67 void write_ogip_keywords(GFitsHDU* hdu) const;
67 68  
... ... @@ -83,7 +84,7 @@ protected:
83 84 void save_events_xml(void);
84 85  
85 86 // Protected members
86   - GObservations m_obs; //!< Observation container
  87 + GObservations m_obs; //!< Observation container
87 88  
88 89 private:
89 90 // Private members
... ... @@ -99,6 +100,21 @@ private:
99 100  
100 101  
101 102 /***********************************************************************//**
  103 + * @brief Set observation container
  104 + *
  105 + * @param[in] obs Observation container.
  106 + *
  107 + * Set observation container.
  108 + ***************************************************************************/
  109 +inline
  110 +void ctobservation::obs(const GObservations& obs)
  111 +{
  112 + m_obs = obs;
  113 + return;
  114 +}
  115 +
  116 +
  117 +/***********************************************************************//**
102 118 * @brief Return observation container
103 119 *
104 120 * @return Reference to observation container.
... ...