38 componentColumns_(dict.
lookup(
"valueColumns")),
39 separator_(dict.lookupOrDefault<
string>(
"separator",
string(
","))[0])
44 << componentColumns_ <<
" does not have the expected length " 66 if (componentColumns_[0] >= splitted.
size())
69 <<
"No column " << componentColumns_[0] <<
" in " 83 for(
label i = 0;i < pTraits<Type>::nComponents; i++)
85 if (componentColumns_[i] >= splitted.
size())
88 <<
"No column " << componentColumns_[i] <<
" in " 130 while (pos != std::string::npos)
132 std::size_t nPos = line.find(separator_, pos);
134 if (nPos == std::string::npos)
136 splitted.
append(line.substr(pos));
141 splitted.
append(line.substr(pos, nPos-pos));
146 if (splitted.
size() <= 1)
152 Type value = readValue(splitted);
187 os << componentColumns_;
virtual ~csvTableReader()
Destructor.
Reads an interpolation table from a file - CSV-format.
streamFormat format() const
Return current stream format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 2-tuple for storing two objects of different types.
void size(const label)
Override size to be inconsistent with allocated storage.
bool good() const
Return true if next operation might succeed.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
void transfer(dictionary &)
Transfer the contents of the argument and annul the argument.
Base class to read table data for the interpolationTable.
dimensionedScalar pos(const dimensionedScalar &ds)
stressControl lookup("compactNormalStress") >> compactNormalStress
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
label readLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Database for solution data, solver performance and other reduced data.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
csvTableReader(const dictionary &dict)
Construct from dictionary.
Input from memory buffer stream.
virtual void write(Ostream &os) const
Write the remaining parameters.
virtual void write(Ostream &os) const
Write additional information.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
A class for handling character strings derived from std::string.
ISstream & getLine(string &)
Raw, low-level getline into a string function.