stable
        v1.7.0
      
      
      
| 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 |  | 
|---|
| 20 | struct FragmentJobStub : public FragmentJob | 
|---|
| 21 | { | 
|---|
| 22 | FragmentJobStub(const JobId_t _JobId); | 
|---|
| 23 |  | 
|---|
| 24 | FragmentResult::ptr Work(); | 
|---|
| 25 |  | 
|---|
| 26 | private: | 
|---|
| 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 | 
|---|
| 41 | BOOST_CLASS_EXPORT_KEY(FragmentJobStub) | 
|---|
| 42 |  | 
|---|
| 43 | #endif /* FRAGMENTJOBSTUB_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.