Doxygen update

This commit is contained in:
Harry Moffat 2009-01-13 23:41:23 +00:00
parent cfcb884dde
commit 81e8de48df
2 changed files with 16 additions and 5 deletions

View file

@ -249,11 +249,12 @@ namespace Cantera {
while (s != "");
}
int fillArrayFromString(const std::string& str, doublereal* a, char delim) {
int fillArrayFromString(const std::string& str,
doublereal* const a, char delim) {
std::string::size_type iloc;
int count = 0;
std::string num, s;
s = str;
std::string num;
std::string s = str;
while (s.size() > 0) {
iloc = s.find(delim);
if (iloc > 0) {
@ -264,7 +265,7 @@ namespace Cantera {
num = s;
s = "";
}
a[count] = atof(num.c_str());
a[count] = atofCheck(num.c_str());
count++;
}
return count;

View file

@ -117,7 +117,17 @@ namespace Cantera {
*/
void split(const std::string &ss, std::vector<std::string>& w);
int fillArrayFromString(const std::string& str, doublereal* a, char delim = ' ');
//! Interpret a string as a list of floats, and convert it to a vector
//! of floats
/*!
* @param str String input vector
* @param a Output pointer to a vector of floats
* @param delim character delimiter. Defaults to a space
* @return Returns the number of floats found and converted
*/
int fillArrayFromString(const std::string& str, doublereal* const a,
char delim = ' ');
std::string report(const ThermoPhase& th, bool show_thermo = true);
std::string formatCompList(const Phase& mix, int xyc);
std::string logfileName(const std::string& infile);