27 #ifndef GMODELSPECTRALREGISTRY_HPP
28 #define GMODELSPECTRALREGISTRY_HPP
72 std::string
name(
const int& index)
const;
88 static int m_number = 0;
107 return (
"GModelSpectralRegistry");
void free_members(void)
Delete class members.
Abstract spectral model base class.
void init_members(void)
Initialise class members.
Interface class for registries.
Smart pointer for registry classes.
static GRegistryPointer< const GModelSpectral * > & models()
GModelSpectralRegistry(void)
Void constructor.
std::string name(const int &index) const
Returns model name.
std::string print(const GChatter &chatter=NORMAL) const
Print registry information.
GModelSpectral * alloc(const GXmlElement &xml) const
Allocate spectral model that is found in XML element.
Interface definition for the spectral model registry class.
virtual ~GModelSpectralRegistry(void)
Destructor.
GModelSpectralRegistry & operator=(const GModelSpectralRegistry ®istry)
Assignment operator.
int size(void) const
Return number of registered models.
Interface class definition for registries.
void copy_members(const GModelSpectralRegistry ®istry)
Copy class members.
std::string classname(void) const
Return class name.