44 #define G_RESPONSE "GMWLObservation::response(GResponse&)"
45 #define G_READ "GMWLObservation::read(GXmlElement&)"
46 #define G_WRITE "GMWLObservation::write(GXmlElement&)"
220 if (mwlrsp == NULL) {
221 std::string cls = std::string(
typeid(&rsp).
name());
222 std::string msg =
"Invalid response type \""+cls+
"\" specified. "
223 "Please specify a \"GMWLResponse\" instance as "
320 spec->
load(filename);
323 name(
"Multi-wavelength observation");
348 result.append(
"=== GMWLObservation ===");
const GFilename & filename(void) const
Return filename.
const std::string & statistic(void) const
Return optimizer statistic.
Multi-wavelength response class.
virtual GMWLObservation * clone(void) const
Clone instance.
std::string m_instrument
Instrument name.
Multi-wavelength spectrum class interface definition.
GEvents * m_events
Pointer to event container.
const std::string & instrument(void) const
Return instrument name.
GFilename xml_file_reduce(const GXmlElement &xml, const std::string &filename)
Reduce file name provided for writing as XML attribute.
virtual ~GMWLObservation(void)
Destructor.
Multi-wavelength spectrum class interface.
void free_members(void)
Delete class members.
const std::string & id(void) const
Return observation identifier.
const GXmlAttribute * attribute(const int &index) const
Return attribute.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print multi-wavelength information.
virtual void clear(void)
Clear instance.
const GMWLObservation g_obs_mwl_seed
GXmlElement * xml_need_par(const std::string &origin, GXmlElement &xml, const std::string &name)
Return pointer to parameter with given name in XML element.
Interface definition for the observation registry class.
const std::string & name(void) const
Return observation name.
void copy_members(const GMWLObservation &obs)
Copy class members.
Observation registry class definition.
Interface class for multi-wavelength observations.
void init_members(void)
Initialise class members.
Abstract observation base class.
GMWLResponse m_response
Response function.
virtual void read(const GXmlElement &xml)
Read observation from XML element.
GFilename m_filename
Filename.
virtual GMWLObservation & operator=(const GMWLObservation &obs)
Assignment operator.
void clear(void)
Clear file name.
virtual std::string instrument(void) const
Return instrument name.
void init_members(void)
Initialise class members.
std::string m_statistic
Optimizer statistic.
Multi-wavelength observation class interface definition.
virtual const GMWLResponse * response(void) const
Return response.
virtual GObservation & operator=(const GObservation &obs)
Assignment operator.
virtual void write(GXmlElement &xml) const
Write observation into XML element.
Exception handler interface definition.
std::string xml_get_attr(const std::string &origin, const GXmlElement &xml, const std::string &name, const std::string &attribute)
Return attribute value for a given parameter in XML element.
virtual void clear(void)
Clear instance.
Abstract instrument response base class.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
GMWLObservation(void)
Void constructor.
void load(const GFilename &filename)
Load observation.
Filename class interface definition.
virtual void load(const GFilename &filename)
Load spectrum.
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
GFilename xml_file_expand(const GXmlElement &xml, const std::string &filename)
Expand file name provided as XML attribute for loading.
void free_members(void)
Delete class members.