Go to the documentation of this file.
58 if (!std::isspace(c) && std::isprint(c))
92 append(
token(str, lineNumber(),quoted));
168 const char* binaryData,
169 std::streamsize
count
185 tokenList_.push_back(tok);
#define notImplementedFunction
Report that a function is yet not implemented.
Token class based on OpenFOAM stream, with some modifications/simplifications to be tailored to our n...
punctuationToken
Standard punctuation tokens (a character)
bool good() const
True if token is not UNDEFINED or ERROR.
virtual void append(const token &tok)
append token to the stream
void seek(size_t pos) override
void reset()
Reset the output buffer and rewind the stream.
const tokenList & tokens() const
bool validTokenForStream(const token tok)
Is tok a valid token for this stream?
oTstream(const word &nm)
emtpy stream with a name
auto count(const Vector< T, Allocator > &vec, const T &val)
virtual void rewind()
Rewind the output stream.
virtual iOstream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
unsigned long long int uint64
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
Interface class for any output stream.
tokenList tokenList_
tokenList