GammaLib
2.0.0
|
CTA source cube base class. More...
#include <GCTACubeSource.hpp>
Public Member Functions | |
GCTACubeSource (void) | |
Void constructor. More... | |
GCTACubeSource (const GCTACubeSource &source) | |
Copy constructor. More... | |
virtual | ~GCTACubeSource (void) |
Destructor. More... | |
virtual GCTACubeSource & | operator= (const GCTACubeSource &source) |
Assignment operator. More... | |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GCTACubeSource * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual GCTAClassCode | code (void) const =0 |
virtual void | set (const std::string &name, const GModelSpatial &model, const GObservation &obs)=0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. More... | |
virtual const std::string & | name (void) const |
Return the source name. More... | |
virtual void | name (const std::string &name) |
Set the source name. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GCTACubeSource &source) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Attributes | |
std::string | m_name |
Unique source name. More... | |
CTA source cube base class.
This class provides an abstract base class for handling of pre-computed response information in a cube-style analysis.
Definition at line 50 of file GCTACubeSource.hpp.
GCTACubeSource::GCTACubeSource | ( | void | ) |
GCTACubeSource::GCTACubeSource | ( | const GCTACubeSource & | source | ) |
Copy constructor.
[in] | source | Cube analysis source. |
Definition at line 68 of file GCTACubeSource.cpp.
References copy_members(), and init_members().
|
virtual |
|
pure virtual |
Return class name.
Returns the class name for non-abstract classes in a human readable way.
Implements GBase.
|
pure virtual |
Clear object.
Sets the object to a clean initial state. After calling the method the object will be in the same state as it were if an empty instance of the object would have been created.
Implements GBase.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GBase.
|
pure virtual |
|
protected |
Copy class members.
[in] | source | Cube analysis source. |
Definition at line 158 of file GCTACubeSource.cpp.
References m_name.
Referenced by GCTACubeSource(), and operator=().
|
protected |
Delete class members.
Definition at line 170 of file GCTACubeSource.cpp.
Referenced by operator=(), and ~GCTACubeSource().
|
protected |
Initialise class members.
Definition at line 143 of file GCTACubeSource.cpp.
References m_name.
Referenced by GCTACubeSource(), and operator=().
|
inlinevirtual |
Return the source name.
Definition at line 93 of file GCTACubeSource.hpp.
References m_name.
Referenced by name().
|
inlinevirtual |
Set the source name.
[in] | name | Source name. |
Definition at line 105 of file GCTACubeSource.hpp.
|
virtual |
Assignment operator.
[in] | source | Cube analysis source. |
Definition at line 106 of file GCTACubeSource.cpp.
References copy_members(), free_members(), and init_members().
Print content of object.
[in] | chatter | Chattiness (defaults to NORMAL). |
Formats the content in a standard way and puts this content in a C++ string that is returned.
Implements GBase.
|
pure virtual |
|
protected |
Unique source name.
Definition at line 82 of file GCTACubeSource.hpp.
Referenced by copy_members(), init_members(), and name().