42#ifndef Foam_UOPstream_H
43#define Foam_UOPstream_H
68 inline void prepareBuffer(
const size_t count,
const size_t align);
72 inline void writeToBuffer(
const T& val);
76 inline void writeToBuffer
84 inline void putChar(
const char c);
88 inline void putString(
const std::string& str);
118 const bool sendAtDestruct =
true,
137 virtual ios_base::fmtflags
flags()
const
139 return ios_base::fmtflags(0);
166 const std::string& str,
167 const bool quoted=
true
216 virtual char fill()
const
222 virtual char fill(
const char)
228 virtual int width()
const
235 virtual int width(
const int)
263 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags)
265 return ios_base::fmtflags(0);
289 bool bufferIPCsend();
306 const bool sendAtDestruct =
true,
333 const std::streamsize bufSize,
355 bool bufferIPCsend();
372 const bool sendAtDestruct =
true,
394 const int rootProcNo,
396 const std::streamsize bufSize,
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
streamFormat
Data format (ascii | binary)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual ~UOPBstream()
Destructor, usually sends buffer on destruct.
Base class for output inter-processor communications stream (ie, parallel streams)....
DynamicList< char > & sendBuf_
virtual ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
virtual ~UOPstreamBase()
Destructor.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
virtual char fill() const
Get the current padding character.
virtual void indent()
Add indentation characters.
virtual char fill(const char)
Set padding character for formatted field up to field width.
virtual void endl()
Add newline and flush stream.
const bool sendAtDestruct_
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
void print(Ostream &os) const
Print stream description to Ostream.
virtual int width() const
Get width of output field.
virtual void rewind()
Rewind the send buffer for overwriting.
virtual void flush()
Flush stream.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
virtual bool endRawWrite()
End marker for low-level raw binary output.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual int precision() const
Get precision of output field.
virtual ~UOPstream()
Destructor, usually sends buffer on destruct.
Inter-processor communications stream.
commsTypes
Types of communications.
static int & msgType() noexcept
Message tag of standard messages.
commsTypes commsType() const noexcept
Get the communications type of the stream.
static label worldComm
Default communicator (all processors)
Database for solution data, solver performance and other reduced data.
virtual bool write()
Write the output fields.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
double doubleScalar
A typedef for double.
float floatScalar
A typedef for float.