GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GMWLInstDir.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * GMWLInstDir.hpp - Multi-wavelength instrument direction class *
3  * ----------------------------------------------------------------------- *
4  * copyright (C) 2010-2014 by Juergen Knoedlseder *
5  * ----------------------------------------------------------------------- *
6  * *
7  * This program is free software: you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation, either version 3 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19  * *
20  ***************************************************************************/
21 /**
22  * @file GMWLInstDir.hpp
23  * @brief GMWLInstDir class definition.
24  * @author Juergen Knoedlseder
25  */
26 
27 #ifndef GMWLINSTDIR_HPP
28 #define GMWLINSTDIR_HPP
29 
30 /* __ Includes ___________________________________________________________ */
31 #include <string>
32 #include "GInstDir.hpp"
33 
34 
35 /***********************************************************************//**
36  * @class GMWLInstDir
37  *
38  * @brief Interface for the Multi-wavelength instrument direction class.
39  *
40  * The Multi-wavelength instrument direction class is a dummy class that is
41  * needed but not used for the implementation of the Multi-wavelength
42  * interface as an instrument class.
43  ***************************************************************************/
44 class GMWLInstDir : public GInstDir {
45 
46 public:
47  // Constructors and destructors
48  GMWLInstDir(void);
49  GMWLInstDir(const GMWLInstDir& dir);
50  virtual ~GMWLInstDir(void);
51 
52  // Operators
53  GMWLInstDir& operator= (const GMWLInstDir& dir);
54 
55  // Methods
56  void clear(void);
57  GMWLInstDir* clone(void) const;
58  std::string classname(void) const;
59  std::string print(const GChatter& chatter = NORMAL) const;
60 
61 protected:
62  // Protected methods
63  void init_members(void);
64  void copy_members(const GMWLInstDir& dir);
65  void free_members(void);
66 };
67 
68 
69 /***********************************************************************//**
70  * @brief Return class name
71  *
72  * @return String containing the class name ("GMWLInstDir").
73  ***************************************************************************/
74 inline
75 std::string GMWLInstDir::classname(void) const
76 {
77  return ("GMWLInstDir");
78 }
79 
80 #endif /* GMWLINSTDIR_HPP */
Abstract instrument direction base class definition.
GMWLInstDir * clone(void) const
Clone instance.
void copy_members(const GMWLInstDir &dir)
Copy class members.
Abstract instrument direction base class.
Definition: GInstDir.hpp:47
void init_members(void)
Initialise class members.
virtual ~GMWLInstDir(void)
Destructor.
Definition: GMWLInstDir.cpp:83
GMWLInstDir(void)
Void constructor.
Definition: GMWLInstDir.cpp:52
GChatter
Definition: GTypemaps.hpp:33
Interface for the Multi-wavelength instrument direction class.
Definition: GMWLInstDir.hpp:44
std::string classname(void) const
Return class name.
Definition: GMWLInstDir.hpp:75
void free_members(void)
Delete class members.
GMWLInstDir & operator=(const GMWLInstDir &dir)
Assignment operator.
std::string print(const GChatter &chatter=NORMAL) const
Print instrument direction information.
void clear(void)
Clear instance.