Classes | Public Member Functions | List of all members
OFstreamCollator Class Reference

Threaded file writer. More...

Public Member Functions

 TypeName ("OFstreamCollator")
 
 OFstreamCollator (const off_t maxBufferSize)
 
 OFstreamCollator (const off_t maxBufferSize, const label comm)
 
virtual ~OFstreamCollator ()
 
bool write (const word &objectType, const fileName &, const string &data, IOstreamOption streamOpt, const bool append, const bool useThread=true, const dictionary &headerEntries=dictionary::null)
 
void waitAll ()
 

Detailed Description

Threaded file writer.

Collects all data from all processors and writes as single 'decomposedBlockData' file. The operation is determined by the buffer size (maxThreadFileBufferSize setting):

Source files

Definition at line 66 of file OFstreamCollator.H.

Constructor & Destructor Documentation

◆ OFstreamCollator() [1/2]

OFstreamCollator ( const off_t  maxBufferSize)
explicit

Definition at line 279 of file OFstreamCollator.C.

◆ OFstreamCollator() [2/2]

OFstreamCollator ( const off_t  maxBufferSize,
const label  comm 
)

Definition at line 296 of file OFstreamCollator.C.

◆ ~OFstreamCollator()

~OFstreamCollator ( )
virtual

Definition at line 317 of file OFstreamCollator.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), UPstream::freeCommunicator(), and Foam::Pout.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "OFstreamCollator"  )

◆ write()

bool write ( const word objectType,
const fileName fName,
const string data,
IOstreamOption  streamOpt,
const bool  append,
const bool  useThread = true,
const dictionary headerEntries = dictionary::null 
)

◆ waitAll()

void waitAll ( )

Definition at line 578 of file OFstreamCollator.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), UPstream::master(), and Foam::Pout.

Here is the call graph for this function:

The documentation for this class was generated from the following files: