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