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)
124 const label nHeaderLine_;
130 const char separator_;
133 bool mergeSeparators_;
A 1D vector of objects of type <T> with a fixed size <Size>.
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....
Csv(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
virtual ~Csv()
Destructor.
virtual autoPtr< TableReader< Type > > clone() const
Construct and return a copy.
virtual void write(Ostream &os, const Function1s::unitConversions &units, const List< Tuple2< scalar, Type >> &table) const
Write settings and values.
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 keyword definitions, which are a keyword followed by any number of values (e....
Traits class for primitives.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
label & setComponent(label &l, const direction)
const HashTable< unitConversion > & units()
Get the table of unit conversions.
pTraits< Type >::labelType type
FixedList< label, 1 > oldType
type operator()(const oldType &ot)