Commit ff4fc70723fa0f5f858e02037b781907093738ad
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,6 +62,7 @@ public: | ||
| 62 | virtual void save(void) = 0; | 62 | virtual void save(void) = 0; |
| 63 | 63 | ||
| 64 | // Methods | 64 | // Methods |
| 65 | + void obs(const GObservations& obs); | ||
| 65 | const GObservations& obs(void) const; | 66 | const GObservations& obs(void) const; |
| 66 | void write_ogip_keywords(GFitsHDU* hdu) const; | 67 | void write_ogip_keywords(GFitsHDU* hdu) const; |
| 67 | 68 | ||
| @@ -83,7 +84,7 @@ protected: | @@ -83,7 +84,7 @@ protected: | ||
| 83 | void save_events_xml(void); | 84 | void save_events_xml(void); |
| 84 | 85 | ||
| 85 | // Protected members | 86 | // Protected members |
| 86 | - GObservations m_obs; //!< Observation container | 87 | + GObservations m_obs; //!< Observation container |
| 87 | 88 | ||
| 88 | private: | 89 | private: |
| 89 | // Private members | 90 | // Private members |
| @@ -99,6 +100,21 @@ private: | @@ -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 | * @brief Return observation container | 118 | * @brief Return observation container |
| 103 | * | 119 | * |
| 104 | * @return Reference to observation container. | 120 | * @return Reference to observation container. |