Swarm-NG  1.1
swarm::log::writer Class Referenceabstract

Abstract output writer interface. More...

#include <writer.h>

Inheritance diagram for swarm::log::writer:
swarm::log::bdb_writer swarm::log::binary_writer swarm::log::host_array_writer swarm::log::null_writer

Public Member Functions

virtual void process (const char *log_data, size_t length)=0
 Produce appropriate output based on log_data input.
 

Static Public Member Functions

static shared_ptr< writercreate (const config &cfg)
 Integrator factory functions (and supporting typedefs) More...
 

Detailed Description

Abstract output writer interface.

The method process() is called whenever the GPU output buffers are filled, and should proces/store the accumulated output data and logs (usually by writing them out to a file).

Definition at line 39 of file writer.h.

Member Function Documentation

Pwriter swarm::log::writer::create ( const config cfg)
static

Integrator factory functions (and supporting typedefs)

Writer instantiation support.

Parameters
[in]cfgconfiguration class
Returns
writer

Definition at line 44 of file writer.cpp.

References swarm::plugin::instance(), and swarm::config::optional().

Referenced by swarm::log::manager::init().


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