#include <ParameterSet.hpp>
Classes | |
struct | ParameterRecord |
Public Member Functions | |
ParameterSet () | |
~ParameterSet () | |
void | add_int_parameter (const char *name, int initial_value, MsqError &err) |
void | set_int_parameter (const char *name, int value, MsqError &err) |
void | get_int_parameter (const char *name, int *value, MsqError &err) |
void | remove_parameter (const char *name, MsqError &err) |
ParameterSet () | |
~ParameterSet () | |
void | add_int_parameter (const char *name, int initial_value, MsqError &err) |
void | set_int_parameter (const char *name, int value, MsqError &err) |
void | get_int_parameter (const char *name, int *value, MsqError &err) |
void | remove_parameter (const char *name, MsqError &err) |
Private Member Functions | |
msq_stdc::size_t | get_parameter_index (const char *name, MsqError &err) |
void | generic_add_parameter (const char *name, MsqError &err) |
msq_stdc::size_t | get_parameter_index (const char *name, MsqError &err) |
void | generic_add_parameter (const char *name, MsqError &err) |
Private Attributes | |
ParameterRecord * | mParameterArray |
msq_stdc::size_t | mNumParameters |
Definition at line 43 of file includeLinks/ParameterSet.hpp.
ParameterSet | ( | ) |
Definition at line 62 of file ParameterSet.cpp.
~ParameterSet | ( | ) |
Definition at line 68 of file ParameterSet.cpp.
References ParameterSet::mNumParameters, ParameterSet::mParameterArray, MSQ_STRING, ParameterSet::ParameterRecord::name, ParameterSet::ParameterRecord::ParameterValue::strVal, and ParameterSet::ParameterRecord::value.
ParameterSet | ( | ) |
~ParameterSet | ( | ) |
void add_int_parameter | ( | const char * | name, |
int | initial_value, | ||
MsqError & | err | ||
) |
Definition at line 147 of file ParameterSet.cpp.
References ParameterSet::generic_add_parameter(), ParameterSet::ParameterRecord::ParameterValue::intVal, ParameterSet::mNumParameters, ParameterSet::mParameterArray, MSQ_ERRRTN, MSQ_INT, ParameterSet::ParameterRecord::type, and ParameterSet::ParameterRecord::value.
void add_int_parameter | ( | const char * | name, |
int | initial_value, | ||
MsqError & | err | ||
) |
|
private |
|
private |
Definition at line 120 of file ParameterSet.cpp.
References MsqError::clear(), ParameterSet::get_parameter_index(), MsqError::INVALID_ARG, ParameterSet::mNumParameters, ParameterSet::mParameterArray, MSQ_SETERR, and ParameterSet::ParameterRecord::name.
Referenced by ParameterSet::add_int_parameter().
void get_int_parameter | ( | const char * | name, |
int * | value, | ||
MsqError & | err | ||
) |
void get_int_parameter | ( | const char * | name, |
int * | value, | ||
MsqError & | err | ||
) |
Definition at line 176 of file ParameterSet.cpp.
References ParameterSet::get_parameter_index(), MsqError::INVALID_ARG, ParameterSet::mParameterArray, MSQ_ERRRTN, MSQ_INT, MSQ_SETERR, and ParameterSet::ParameterRecord::value.
|
private |
Definition at line 84 of file ParameterSet.cpp.
References i, MsqError::INVALID_ARG, ParameterSet::mNumParameters, ParameterSet::mParameterArray, and MSQ_SETERR.
Referenced by ParameterSet::generic_add_parameter(), ParameterSet::get_int_parameter(), ParameterSet::remove_parameter(), and ParameterSet::set_int_parameter().
|
private |
void remove_parameter | ( | const char * | name, |
MsqError & | err | ||
) |
Definition at line 95 of file ParameterSet.cpp.
References ParameterSet::get_parameter_index(), ParameterSet::mNumParameters, ParameterSet::mParameterArray, MSQ_ERRRTN, MSQ_STRING, ParameterSet::ParameterRecord::name, ParameterSet::ParameterRecord::ParameterValue::strVal, and ParameterSet::ParameterRecord::value.
void remove_parameter | ( | const char * | name, |
MsqError & | err | ||
) |
void set_int_parameter | ( | const char * | name, |
int | value, | ||
MsqError & | err | ||
) |
Definition at line 159 of file ParameterSet.cpp.
References ParameterSet::get_parameter_index(), ParameterSet::ParameterRecord::ParameterValue::intVal, MsqError::INVALID_ARG, ParameterSet::mParameterArray, MSQ_ERRRTN, MSQ_INT, MSQ_SETERR, and ParameterSet::ParameterRecord::value.
void set_int_parameter | ( | const char * | name, |
int | value, | ||
MsqError & | err | ||
) |
|
private |
Definition at line 86 of file includeLinks/ParameterSet.hpp.
Referenced by ParameterSet::add_int_parameter(), ParameterSet::generic_add_parameter(), ParameterSet::get_parameter_index(), ParameterSet::remove_parameter(), and ParameterSet::~ParameterSet().
|
private |
Definition at line 85 of file includeLinks/ParameterSet.hpp.
Referenced by ParameterSet::add_int_parameter(), ParameterSet::generic_add_parameter(), ParameterSet::get_int_parameter(), ParameterSet::get_parameter_index(), ParameterSet::remove_parameter(), ParameterSet::set_int_parameter(), and ParameterSet::~ParameterSet().