52 m_message =
"Invalid model type \""+type+
"\" encountered. " + message;
56 if (registry.
size() > 0) {
57 m_message +=
"The following models are registered: ";
58 for (
int i = 0; i < registry.
size(); ++i) {
86 m_message =
"Invalid spatial model type \""+type+
"\" encountered. " +
91 if (registry.
size() > 0) {
92 m_message +=
"The following models are registered: ";
93 for (
int i = 0; i < registry.
size(); ++i) {
101 m_message +=
"No models are registered.";
121 m_message =
"Invalid spectral model type \""+type+
"\" encountered. " +
126 if (registry.
size() > 0) {
127 m_message +=
"The following models are registered: ";
128 for (
int i = 0; i < registry.
size(); ++i) {
136 m_message +=
"No models are registered.";
156 m_message =
"Invalid temporal model type \""+type+
"\" encountered. " +
161 if (registry.
size() > 0) {
162 m_message +=
"The following models are registered: ";
163 for (
int i = 0; i < registry.
size(); ++i) {
171 m_message +=
"No models are registered.";
191 m_message =
"Invalid number of model parameters found in XML element. " +
212 m_message =
"Invalid model parameter names found in XML element. " +
233 m_message =
"Invalid model parameter value found in XML element. " +
254 m_message =
"Invalid model parameter limit found in XML element. " +
296 m_message =
"Model parameter with invalid scale found in XML element. " +
313 std::string filename,
320 " energy nodes while at least 2 are required to describe a"
322 if (message.length() > 0) {
340 std::string filename,
347 " columns while at least 2 are required to define"
348 " energy and intensity.";
349 if (message.length() > 0) {
367 std::string filename,
374 " file function \""+filename+
"\".";
375 if (message.length() > 0) {
399 m_message =
"Parameter \""+name+
"\" not found in container.";
400 if (message.length() > 0)
423 m_message =
"Model \""+name+
"\" not found in container.";
424 if (message.length() > 0)
447 m_message =
"No point source model component found in model \""+name+
"\".";
448 if (message.length() > 0)
471 m_message =
"No extended source model component found in model \""+name+
"\".";
472 if (message.length() > 0)
par_not_found(std::string origin, std::string name, std::string message="")
Parameter not found.
model_invalid_temporal(std::string origin, std::string type, std::string message="")
Invalid temporal model type.
model_invalid_parnum(std::string origin, GXmlElement xml, std::string message="")
Invalid number of model parameters in XML element.
Interface definition for the model registry class.
no_extended_source(std::string origin, std::string name, std::string message="")
No extended source model component found.
no_point_source(std::string origin, std::string name, std::string message="")
No point source model component found.
model_invalid_spectral(std::string origin, std::string type, std::string message="")
Invalid spectral model type.
file_function_value(std::string origin, std::string filename, double value, std::string message="")
Invalid value in file function.
Spectral model registry class definition.
std::string name(const int &index) const
Returns model name.
std::string name(const int &index) const
Returns model name.
Interface definition for the spatial model registry class.
model_invalid_parscale(std::string origin, double scale, std::string message="")
Model parameter has invalid scale.
model_invalid_spatial(std::string origin, std::string type, std::string message="")
Invalid spatial model type.
file_function_columns(std::string origin, std::string filename, int num, std::string message="")
Not enough columns in file function.
int size(void) const
Return number of registered models.
std::string name(const int &index) const
Returns model name.
model_invalid_parvalue(std::string origin, GXmlElement xml, std::string message="")
Invalid model parameter value in XML element.
int size(void) const
Return number of registered models.
Spatial model registry class definition.
int size(void) const
Return number of registered models.
Interface definition for the spectral model registry class.
Interface definition for the temporal model registry class.
int size(void) const
Return number of registered models.
Temporal model registry class definition.
Exception handler interface definition.
model_not_found(std::string origin, std::string name, std::string message="")
Model not found.
file_function_data(std::string origin, std::string filename, int num, std::string message="")
Not enough nodes in file function.
model_invalid(std::string origin, std::string type, std::string message="")
Invalid model type.
Model registry class definition.
model_invalid_parlimit(std::string origin, GXmlElement xml, std::string message="")
Invalid model parameter limit in XML element.
model_invalid_parnames(std::string origin, GXmlElement xml, std::string message="")
Invalid model parameter names in XML element.
std::string name(const int &index) const
Returns model name.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.