source: ThirdParty/JobMarket/src/unittests/stubs/FragmentJobStub.hpp@ 4fc0ea

Candidate_v1.6.1 ChemicalSpaceEvaluator TremoloParser_IncreasedPrecision
Last change on this file since 4fc0ea was 363f28, checked in by Frederik Heber <heber@…>, 8 years ago

Merge commit '404d2be35f6544290132fcbe8f79a4ff9c6584ad' as 'ThirdParty/JobMarket'

  • Property mode set to 100644
File size: 926 bytes
Line 
1/*
2 * FragmentJobStub.hpp
3 *
4 * Created on: Feb 06, 2012
5 * Author: heber
6 */
7
8#ifndef FRAGMENTJOBSTUB_HPP_
9#define FRAGMENTJOBSTUB_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include "boost/serialization/export.hpp"
17
18#include "JobMarket/Jobs/FragmentJob.hpp"
19
20struct FragmentJobStub : public FragmentJob
21{
22 FragmentJobStub(const JobId_t _JobId);
23
24 FragmentResult::ptr Work();
25
26private:
27 //!> private default cstor for serialization only
28 FragmentJobStub();
29
30 friend class boost::serialization::access;
31 // serialization
32 template <typename Archive>
33 void serialize(Archive& ar, const unsigned int version)
34 {
35 ar & boost::serialization::base_object<FragmentJob>(*this);
36 }
37};
38
39// we need to give this class a unique key for serialization
40// its is only serialized through its base class FragmentJob
41BOOST_CLASS_EXPORT_KEY(FragmentJobStub)
42
43#endif /* FRAGMENTJOBSTUB_HPP_ */
Note: See TracBrowser for help on using the repository browser.