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