|
copasi API
0.1
|
#include <qstring.h>#include <qfileinfo.h>#include "copasi.h"#include "qtUtilities.h"#include "CQMessageBox.h"#include "utilities/CCopasiParameterGroup.h"#include "utilities/CDirEntry.h"Functions | |
| QString | getParameterValue (const CCopasiParameterGroup *group, const unsigned C_INT32 &index, CCopasiParameter::Type *type) |
| QString | getParameterValue (const CCopasiParameterGroup *group, const std::string &name, CCopasiParameter::Type *type) |
| bool | setParameterValue (CCopasiParameterGroup *group, const unsigned C_INT32 &index, const QString &value) |
| bool | setParameterValue (CCopasiParameterGroup *group, const std::string &name, const QString &value) |
| C_INT32 | checkSelection (const QString &file) |
| void | vectorOfStrings2QStringList (std::vector< std::string > vs, QStringList &qsl) |
| C_INT32 checkSelection | ( | const QString & | file | ) |
Checks whether the file exists. If the file exist the user is prompted whether to overwrite the file. The return value is one of QMessageBox::Yes, QMessageBox::No, or QMessageBox::Cancel. If the file does not exist QMessageBox::Yes is returned. param const QString & file
| QString getParameterValue | ( | const CCopasiParameterGroup * | group, |
| const unsigned C_INT32 & | index, | ||
| CCopasiParameter::Type * | type = NULL |
||
| ) |
Retrieve a parameter from a parameter group and convert it to a QString.
| const | CCopasiParameterGroup * group |
| const | unsigned C_INT32 & index |
| CCopasiParameter::Type | * type (default: NULL) |
| QString getParameterValue | ( | const CCopasiParameterGroup * | group, |
| const std::string & | name, | ||
| CCopasiParameter::Type * | type = NULL |
||
| ) |
Retrieve a parameter from a parameter group and convert it to a QString.
| const | CCopasiParameterGroup * group |
| const | std::string & name |
| CCopasiParameter::Type | * type (default: NULL) |
| bool setParameterValue | ( | CCopasiParameterGroup * | group, |
| const unsigned C_INT32 & | index, | ||
| const QString & | value | ||
| ) |
Set a parameter of a parameter group from a value given as a QString. Success = true is returned when the set operation was succesful, i.e., value == getParameterValue.
| CCopasiParameterGroup | * group |
| const | std::string & name |
| const | QString & value |
| bool setParameterValue | ( | CCopasiParameterGroup * | group, |
| const std::string & | name, | ||
| const QString & | value | ||
| ) |
Set a parameter of a parameter group from a value given as a QString. Success = true is returned when the set operation was succesful, i.e., value == getParameterValue.
| CCopasiParameterGroup | * group |
| const | unsigned C_INT32 & index |
| const | QString & value |
| void vectorOfStrings2QStringList | ( | std::vector< std::string > | vs, |
| QStringList & | qsl | ||
| ) |
This converts a std::vector<std::string> into a QStringList
1.7.5.1