Go to the documentation of this file.
21 template<
template<
class,
class>
class VectorField,
class T,
class PropType>
37 "expected integer value to specify field length \n";
51 VectorType::assign(flen, bF);
60 template<
template<
class,
class>
class VectorField,
class T,
class PropType>
74 " expected integer value to specify field length \n";
78 if( len!=0 && flen != len )
81 " expected "<< len <<
" as the field length but found "<< flen <<
" \n";
85 VectorType::readVector(is, flen);
87 if( this->size() != flen )
90 " expected " << flen <<
" elements, but supplied "<<
91 this->size() <<
" elements in file "<< is.
name() <<
endl;
100 template<
template<
class,
class>
class VectorField,
class T,
class PropType>
119 " error in searching for filedkey " << fieldKey_<<
endl;
130 " error in reading keyword from file.";
137 return readUniform(is, len, readLength);
143 return readNonUniform(is, len);
149 "unknown keyword, expected uniform/nonUniform, but found " <<
158 template<
template<
class,
class>
class VectorField,
class T,
class PropType>
165 return readField(is, 0, resume ,
true);
169 template<
template<
class,
class>
class VectorField,
class T,
class PropType>
174 os<< this->size()<<
endl;
176 VectorType::write(os);
bool eof() const
Return true if end of input seen.
char readEndStatement(const char *funcName)
iOstream & endl(iOstream &os)
Add newline and flush stream.
const char * nonUniform__
virtual bool findTokenResume(const word &w)
search for all tokesn after the current file position and find the first word token tbat matchs w
bool readNonUniform(iIstream &is, size_t len)
bool bad() const
Return true if stream is corrupted.
bool readField(iIstream &is, const size_t len, bool resume, bool readLength=true)
virtual iOstream & endEntry()
Write end entry (';') followed by newline.
virtual const word & name() const
Return the name of the stream.
bool readUniform(iIstream &is, size_t len, bool readLength=true)
#define ioErrorInFile(fileName, lineNumber)
int32 lineNumber() const
Const access to the current stream line number.
virtual bool findToken(const word &w)
bool writeField(iOstream &os) const
virtual iOstream & writeWordKeyword(const word &kw)
Write the keyword followed by an appropriate indentation.