Go to the documentation of this file.
20 #ifndef __oTstream_hpp__
21 #define __oTstream_hpp__
135 void seek(
size_t pos)
override;
139 const char* binaryData,
140 std::streamsize
count)
override;
218 virtual ios_base::fmtflags
flags()
const
220 return ios_base::fmtflags(0);
224 ios_base::fmtflags
flags(
const ios_base::fmtflags)
226 return ios_base::fmtflags(0);
ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
bool isBeginToken(const token &tok)
Is tok a begin token?
Token class based on OpenFOAM stream, with some modifications/simplifications to be tailored to our n...
virtual void endl()
Add newline and flush stream.
virtual void startOfBinaryStreaming()
Add a new line and flush stream.
virtual void endOfBinaryStreaming()
Reach end of file add a new line and flush stream.
bool isEndToken(const token &tok)
Is tok an end token?
virtual void append(const token &tok)
append token to the stream
virtual int width(const int)
Set width of output field.
virtual void indent()
Add indentation characters.
virtual int precision() const
Get precision of output field.
void seek(size_t pos) override
virtual void flush()
Flush stream.
void reset()
Reset the output buffer and rewind the stream.
virtual char fill(const char)
Set padding character for formatted field up to field width.
virtual char fill() const
Get the current padding character.
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
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual int width() const
Get width of output field.
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.
virtual int precision(const int)
Set precision of output field.
unsigned long long int uint64
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
virtual ~oTstream()=default
destructor
Interface class for any output stream.
tokenList tokenList_
tokenList