NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_mpi_workpackageprocessor.h
Go to the documentation of this file.
1
10#ifndef _BE_MPI_WORKPACKAGEPROCESSOR_H
11#define _BE_MPI_WORKPACKAGEPROCESSOR_H
12
13#include <memory>
14#include <be_io_logsheet.h>
15#include <be_mpi_workpackage.h>
16
21namespace BiometricEvaluation {
22 namespace MPI {
23
45 public:
61 virtual std::shared_ptr<WorkPackageProcessor>
63 std::shared_ptr<IO::Logsheet> &logsheet) = 0;
64
86 std::shared_ptr<IO::Logsheet> &logsheet) = 0;
87
99 virtual void processWorkPackage(
100 MPI::WorkPackage &workPackage) = 0;
101
120 virtual void performShutdown();
121
129 void
130 setLogsheet(std::shared_ptr<IO::Logsheet> &logsheet);
131
139 std::shared_ptr<IO::Logsheet> getLogsheet();
140
142
143 protected:
144 private:
145 std::shared_ptr<IO::Logsheet> _logsheet;
146 };
147 }
148}
149
150#endif /* _BE_MPI_WORKPACKAGEPROCESSOR_H */
151
A class to represent a piece of work to be acted upon by a processor.
Represents an object that processes the contents of a work package.
virtual void processWorkPackage(MPI::WorkPackage &workPackage)=0
Process the data contents of the work package.
virtual void performInitialization(std::shared_ptr< IO::Logsheet > &logsheet)=0
Initialization function to be called before work is distributed to the work package processor.
std::shared_ptr< IO::Logsheet > getLogsheet()
Obtain the IO::Logsheet object that can be used to save message for objects of this class.
virtual std::shared_ptr< WorkPackageProcessor > newProcessor(std::shared_ptr< IO::Logsheet > &logsheet)=0
Obtain an object that will process work packages.
void setLogsheet(std::shared_ptr< IO::Logsheet > &logsheet)
Set the IO::Logsheet object that can be used to save message for objects of this class.
virtual void performShutdown()
Terminiation function to be called during shut down after all work package processing is done.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...