NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_mpi_recordprocessor.h
Go to the documentation of this file.
1
10#ifndef _BE_MPI_RECORDPROCESSOR_H
11#define _BE_MPI_RECORDPROCESSOR_H
12
15
16namespace BiometricEvaluation {
17 namespace MPI {
28 public:
55 const std::string &propertiesFileName);
56
58
76 //XXX the thrown exception should be refined into
77 //XXX particular classes
78 virtual void processRecord(const std::string &key) = 0;
79
96 virtual void processRecord(
97 const std::string &key,
98 const Memory::uint8Array &value) = 0;
99
100 /* Implement WorkPackageProcessor interface */
101 virtual std::shared_ptr<WorkPackageProcessor>
103 std::shared_ptr<IO::Logsheet> &logsheet) = 0;
104
106 std::shared_ptr<IO::Logsheet> &logsheet) = 0;
107
109 MPI::WorkPackage &workPackage);
110
111 protected:
112 std::shared_ptr<MPI::RecordStoreResources>
114 private:
115 std::shared_ptr<MPI::RecordStoreResources>
116 _resources;
117 };
118 }
119}
120
121#endif /* _BE_MPI_RECORDPROCESSOR_H */
122
An implementation of a work package processor that will extract record store keys,...
virtual void processRecord(const std::string &key)=0
Method implemented by child classes to perform an action using each record from the Record Store.
virtual void processRecord(const std::string &key, const Memory::uint8Array &value)=0
Method implemented by child classes to perform an action using each record from the Record Store.
void processWorkPackage(MPI::WorkPackage &workPackage)
Process the data contents of the work package.
RecordProcessor(const std::string &propertiesFileName)
Construct a work package processor with the given properties.
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< MPI::RecordStoreResources > getResources()
virtual std::shared_ptr< WorkPackageProcessor > newProcessor(std::shared_ptr< IO::Logsheet > &logsheet)=0
Obtain an object that will process work packages.
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.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...