ENH: Added CSV table DataEntry

This commit is contained in:
andy
2011-11-21 17:12:59 +00:00
parent 83600bc148
commit 5763b7e404
12 changed files with 591 additions and 13 deletions

View File

@ -28,11 +28,16 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
Foam::Table<Type>::Table(const word& entryName, Istream& is)
Foam::Table<Type>::Table(const word& entryName, const dictionary& dict)
:
DataEntry<Type>(entryName),
table_(is)
table_()
{
Istream& is(dict.lookup(entryName));
word entryType(is);
is >> table_;
if (!table_.size())
{
FatalErrorIn("Foam::Table<Type>::Table(const Istream&)")

View File

@ -93,7 +93,7 @@ public:
// Constructors
//- Construct from entry name and Istream
Table(const word& entryName, Istream& is);
Table(const word& entryName, const dictionary& dict);
//- Copy constructor
Table(const Table<Type>& tbl);