21 char tolower(
const char ch);
25 std::string stringtolower(
const std::string s);
82 const std::string
var, F value) {
84 s << std::setprecision(16) << value;
87 std::string::size_type i;
88 while((i =
sNew.find(
var)) != std::string::npos)
89 sNew.replace(i,
var.size(), s.str());
110 : name_(
name), data_(1) { data_[0] =
data; }
117 : name_(
name), data_(3) {
124 std::string&
name() {
return name_; }
129 bool parse(
const std::string s);
131 std::ostream&
info(std::ostream&
os)
const;
142 if (
seq.size() == 0)
return false;
148 std::stringstream
st;
st <<
seq[0];
150 data_.resize(
seq.size()-1);
151 for(
uint i = 0; i < data_.size(); ++i) {
152 std::stringstream
st;
st <<
seq[i+1];
165 if (i != data_.end())
ParseObjectFromString(const char *name, const F data1, const F data2)
Constructor with default name and default first two data entries.
bool parse(const std::string s)
Parser from a string.
ParseObjectFromString(const char *name="", const Sequence< F > data=Sequence< F >())
Constructor with default name and default data.
ParseObjectFromString(const char *name, const F data1, const F data2, const F data3)
Constructor with default name and default first three data entries.
Sequence< F > & data()
Returns the data.
std::string & name()
Returns the name of the object.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
ParseObjectFromString(const char *name, const F data)
Constructor with default name and default first data entry.
std::string removeAllWhite(const std::string str)
Removes all white space in the string str.
std::string typeOf(const T &t)
std::string getFilenamePrefix(const std::string str)
std::vector< std::string > splitStringByComma(const std::string text)
std::vector< std::string > splitStringNameParams(const std::string text)
std::string getFilename(const std::string str)
Returns the filename (with ending) of a given full filename.
std::string stringSubs(const std::string str, const std::string var, F value)
Sequence< concepts::Set< uint > > uintSeqSets(const std::string s)
Set< F > makeSet(uint n, const F &first,...)
std::string getDirectory(const std::string str)
Returns the directory of a given full filename.
Sequence< Real > realSeqFromStringWithPower(const std::string s)
std::vector< std::string > splitString(const std::string text, const std::string separators)