gstreamer
Loading...
Searching...
No Matches
GSROImplementation Class Referenceabstract

#include <gSROImplementation.h>

Public Member Functions

 GSROImplementation (const std::shared_ptr< GOptions > &opts)
 ~GSROImplementation () override=default
void set_loggers (const std::shared_ptr< GOptions > &opts)
 GManager calls this after loading an implementation, following the standard GEMC plugin contract.
virtual GSROConfiguration configure_run (const GSRORunContext &run)=0
virtual GSROCrateResources create_crate (GSROCrateId crate, const GSRORunContext &run) const =0
Public Member Functions inherited from GBase< GSROImplementation >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
virtual ~GBase ()
GBase & operator= (const GBase &)=default

Static Public Member Functions

static GSROImplementation * instantiate (dlhandle handle, const std::shared_ptr< GOptions > &opts)

Protected Attributes

std::shared_ptr< GOptions > options
Protected Attributes inherited from GBase< GSROImplementation >
std::shared_ptr< GLogger > log

Detailed Description

Implementation plugin loaded by the sro factory, for example from clas12-systems. Export GSROImplementationFactory(const std::shared_ptr<GOptions>&) returning a new derived object. configure_run runs on the run owner before workers start. create_crate runs concurrently on crate threads and must return a sink and plugin owned by that thread. Use the run context to give each crate a distinct output file and each run invocation a distinct name. The framework supplies no frame size, binary layout, electronics model, or partial-frame policy. The factory retains this object's library until timing, payloads, plugins, and sinks are destroyed.

Definition at line 30 of file gSROImplementation.h.

Constructor & Destructor Documentation

◆ GSROImplementation()

GSROImplementation::GSROImplementation ( const std::shared_ptr< GOptions > & opts)
inlineexplicit

Definition at line 32 of file gSROImplementation.h.

◆ ~GSROImplementation()

GSROImplementation::~GSROImplementation ( )
overridedefault

Member Function Documentation

◆ configure_run()

virtual GSROConfiguration GSROImplementation::configure_run ( const GSRORunContext & run)
pure virtual

◆ create_crate()

virtual GSROCrateResources GSROImplementation::create_crate ( GSROCrateId crate,
const GSRORunContext & run ) const
pure virtual

◆ instantiate()

GSROImplementation * GSROImplementation::instantiate ( dlhandle handle,
const std::shared_ptr< GOptions > & opts )
inlinestatic

Definition at line 45 of file gSROImplementation.h.

◆ set_loggers()

void GSROImplementation::set_loggers ( const std::shared_ptr< GOptions > & opts)
inline

Definition at line 37 of file gSROImplementation.h.

Field Documentation

◆ options

std::shared_ptr<GOptions> GSROImplementation::options
protected

Definition at line 53 of file gSROImplementation.h.


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