38#ifndef STK_DMANAGER_UTIL_H
39#define STK_DMANAGER_UTIL_H
49static const String STRING_VAR =
_T(
"Var");
53static const Char CHAR_NL =
_T(
'\n');
57static const Char CHAR_COMMENT =
_T(
'#');
60static const Char CHAR_EQUAL =
_T(
'=');
63static const Char CHAR_BLANK =
_T(
' ');
66static const Char CHAR_TAB =
_T(
'\t');
69static const Char CHAR_SEP =
_T(
',');
72static const Char CHAR_OPENBRACKET =
_T(
'[');
75static const Char CHAR_CLOSEBRACKET =
_T(
']');
170 lst.push_back(value);
185 if (
lst.empty())
return;
186 typename std::list<TYPE>::const_iterator
it =
lst.begin();
190 {
os <<
sep << CHAR_BLANK << *
it;}
#define _T(x)
Let x unmodified.
This file include all the header files of the project STKernel.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
bool stringToType(Type &t, String const &s, std::ios_base &(*f)(std::ios_base &)=std::dec)
convert a String to Type
void readList(String const &strBuffer, std::list< TYPE > &lst, Char sep=CHAR_SEP)
Read a list of value of type TYPE stored in a line.
void writeList(ostream &os, std::list< TYPE > const &lst, Char sep=CHAR_SEP)
Write a list of value of type TYPE stored in a line.
bool StringToBoolean(String const &str)
convert a string to a boolean.
TypeDataFile stringToTypeDataFile(String const &type)
convert a String to a TypeDataFile.
TypeDataFile
type of the data file we handle.
bool checkStringToBoolean(String const &str)
check if a string represent a boolean.
int nbEndOfLine(istream &is)
String TypeDataFileToString(TypeDataFile const &type)
convert a TypeDataFile to a String.
void removeCharBeforeAndAfter(String &str, Char c)
remove all occurrences of the char c at the beginning and the end of the string str.
istream & getField(istream &is, String &value, Char delimiter)
Get the current field from the input stream.
@ unknown_
unknown reduction
char Char
STK fundamental type of a Char.
std::basic_string< Char > String
STK fundamental type of a String.
std::basic_ostream< Char > ostream
ostream for Char
std::basic_istringstream< Char > istringstream
istringstream for Char
std::basic_istream< Char > istream
istream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.