|
| number (const std::string &name="", double value=0., const std::string &label="", const std::string &help="") |
|
| number (const std::string &name, const std::vector< double > &values, const std::string &label="", const std::string &help="") |
|
void | setValue (double value) |
|
void | setValues (const std::vector< double > &values) |
|
void | setMin (double min) |
|
void | setMax (double max) |
|
void | setStep (double step) |
|
void | setIndex (int index) |
|
void | setChoices (const std::vector< double > &choices) |
|
void | setChoiceLabels (const std::vector< std::string > &labels) |
|
void | setValueLabels (const std::map< double, std::string > &valueLabels) |
|
void | setValueLabel (double value, const std::string &label) |
|
std::string | getType () const |
|
double | getValue () const |
|
std::string | getValueAsString () const |
|
const std::vector< double > & | getValues () const |
|
int | getNumValues () const |
|
double | getMin () const |
|
double | getMax () const |
|
double | getStep () const |
|
int | getIndex () const |
|
const std::vector< double > & | getChoices () const |
|
const std::map< double, std::string > & | getValueLabels () const |
|
std::string | getValueLabel (double value) const |
|
void | update (const number &p) |
|
std::string | toChar () const |
|
std::string::size_type | fromChar (const std::string &msg) |
|
std::string | toJSON () const |
|
bool | fromJSON (const std::string &json) |
|
bool | fromJSON (const picojson::value::object &par) |
|
| parameter (const std::string &name="", const std::string &label="", const std::string &help="") |
|
virtual | ~parameter () |
|
void | setName (const std::string &name) |
|
void | setLabel (const std::string &label) |
|
void | setHelp (const std::string &help) |
|
void | setChanged (int changed, const std::string &client="") |
|
void | setChangedValue (int value) |
|
void | setNeverChanged (bool never) |
|
void | setVisible (bool visible) |
|
void | setReadOnly (bool readOnly) |
|
void | setAttribute (const std::string &key, const std::string &value) |
|
void | setAttributes (const std::map< std::string, std::string > &attributes) |
|
void | setClients (const std::map< std::string, int > &clients) |
|
void | addClient (const std::string &client, int changed) |
|
void | addClients (const std::map< std::string, int > &clients) |
|
bool | hasClient (const std::string &client) |
|
int | getNumClients () |
|
const std::string & | getName () const |
|
const std::string & | getLabel () const |
|
const std::string & | getHelp () const |
|
std::string | getPath () const |
|
std::string | getShortName () const |
|
int | getChanged (const std::string &client="") const |
|
int | getChangedValue () const |
|
bool | getNeverChanged () const |
|
bool | getVisible () const |
|
bool | getReadOnly () const |
|
std::string | getAttribute (const std::string &key) const |
|
const std::map< std::string, std::string > & | getAttributes () const |
|
const std::map< std::string, int > & | getClients () const |
|
std::string | sanitize (const std::string &in) const |
|
std::string | sanitizeJSON (const std::string &in) const |
|
|
static char | charSep () |
|
static double | maxNumber () |
|
static std::string | version () |
|
static int | defaultChangedValue () |
|
static std::string | getNextToken (const std::string &msg, std::string::size_type &first, char separator=charSep()) |
|
static std::vector< std::string > | split (const std::string &msg, char separator=charSep()) |
|
static std::string | trim (const std::string &str, const std::string &whitespace=" \t\n") |
|
static void | getInfoFromChar (const std::string &msg, std::string &version, std::string &type, std::string &name) |
|
static bool | fromFile (std::vector< std::string > &msg, FILE *fp) |
|
static bool | toFile (const std::vector< std::string > &msg, FILE *fp, const std::string &creator) |
|
std::map< std::string, std::string > | _attributes |
|
Definition at line 432 of file onelab.h.