48 #ifndef CsvTableReader_H
49 #define CsvTableReader_H
58 namespace TableReaders
73 template<
class Type,
typename =
void>
97 for (
direction i = 0; i < pTraits<Type>::nComponents; ++ i)
110 template<
class Coordinate,
class Value>
128 const label nHeaderLine_;
134 const char separator_;
137 bool mergeSeparators_;
A 1D vector of objects of type <T> with a fixed size <Size>.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class to read table data for tables.
Reads an interpolation table from a file in CSV-format. Entries govern the layout of the CSV file....
virtual autoPtr< TableReader< Coordinate, Value > > clone() const
Construct and return a copy.
virtual ~Csv()
Destructor.
virtual void write(Ostream &os, const Function1s::unitSets &units, const List< Tuple2< Coordinate, Value >> &table, const word &valuesKeyword=word::null) const
Write settings and values.
Csv(const word &name, const Function1s::unitSets &units, const dictionary &dict)
Construct from name and dictionary.
TypeName("csv")
Runtime type information.
A 2-tuple for storing two objects of different types.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Traits class for primitives.
A class for handling words, derived from string.
static const word null
An empty word.
const HashTable< dimensionSet > table
Table of dimensions.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label & setComponent(label &l, const direction)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Struct containing two unitSets for use in converting both the argument and the value of a Function1.
pTraits< Type >::labelType type
FixedList< label, 1 > oldType
type operator()(const oldType &ot)