27#ifndef GAPPLICATIONPAR_HPP
28#define GAPPLICATIONPAR_HPP
56 const std::string&
mode,
const std::string&
value,
57 const std::string&
min,
const std::string&
max,
58 const std::string&
prompt);
78 const std::string&
name(
void)
const;
79 const std::string&
type(
void)
const;
80 const std::string&
mode(
void)
const;
82 std::string
value(
void);
91 const std::string&
min(
void)
const;
92 const std::string&
max(
void)
const;
93 const std::string&
prompt(
void)
const;
101 void pickle(
const std::vector<std::string>&
string);
102 std::vector<std::string>
pickle(
void)
const;
157 return (
"GApplicationPar");
Definition of interface for all GammaLib classes.
Time class interface definition.
Application parameter class.
bool check_options(const std::string &value) const
Test if parameter value satisfies possible options.
std::string m_name
Parameter name.
std::string m_min
Parameter minimum.
void copy_members(const GApplicationPar &par)
Copy class members.
std::vector< std::string > pickle(void) const
Return pickled string vector.
std::string m_value
Parameter value.
void check_value_bool(const std::string &value) const
Test validity of boolean value string.
std::string m_type
Parameter type.
const std::string & mode(void) const
Returns parameter mode.
void check_value_time(const std::string &value) const
Test validity of time parameter value.
void check_value_int(const std::string &value) const
Test validity of integer parameter value.
double real(void)
Returns real.
bool is_learn(void) const
Signals if parameter mode is "learn".
void clear(void)
Clear parameter.
std::string classname(void) const
Return class name.
GApplicationPar & operator=(const GApplicationPar &par)
Assignment operator.
const std::string & max(void) const
Returns parameter maximum.
const std::string & current_value(void) const
Returns current parameter value without querying.
std::string m_mode
Parameter mode.
bool is_valid(void)
Signals if parameter is valid.
GTime time(void)
Return time in native reference system.
std::string string(void)
Returns string parameter value.
void init_members(void)
Initialise class members.
GApplicationPar * clone(void) const
Clone parameter.
void free_members(void)
Delete class members.
bool m_update
Signal value updating.
bool m_queried
Signal that parameter was queried.
std::string par_type_string(const std::string &type) const
Return type string.
std::string print(const GChatter &chatter=NORMAL) const
Print parameter.
std::string m_max
Parameter maximum.
bool is_notanumber(void)
Signals if parameter is not a number.
void check_value_string(const std::string &value) const
Test validity of string parameter value.
GApplicationPar(void)
Void constructor.
void check_type(const std::string &type) const
Test validity of type string.
void query(void)
Query parameter if required.
bool boolean(void)
Returns boolean.
const std::string & name(void) const
Returns parameter name.
std::string value(void)
Returns parameter value as string.
const std::string & type(void) const
Returns parameter type.
std::string par_status_string(void) const
Return status string.
GFilename filename(void)
Returns filename parameter value.
bool is_undefined(void)
Signals if parameter is undefined.
std::string set_status(const std::string &value)
Set parameter status.
void check_mode(const std::string &mode) const
Test validity of mode string.
const std::string & prompt(void) const
Returns parameter prompt.
void set_value(const std::string &value)
Set parameter value.
const std::string & min(void) const
Returns parameter minimum.
bool is_filename(void) const
Signals if parameter mode is of type "filename".
virtual ~GApplicationPar(void)
Destructor.
void check_value_real(const std::string &value) const
Test validity of real parameter value.
void check_value_filename(const std::string &value) const
Test validity of filename parameter value.
Status m_status
Parameter status.
void stop_query(void)
Don't query parameter again.
bool was_queried(void) const
Signals if parameter was queried.
bool is_query(void) const
Signals if parameter mode is "query".
int integer(void)
Returns integer.
void check_value(const std::string &value) const
Test validity of value string.
std::string m_prompt
Parameter prompt.
Application parameter container class.
GammaLib application interface definition.
Interface class for all GammaLib classes.
Implements a time reference.
GTimeReference reference(void) const
Returns native time reference.