/* * Project: JobMarket * Description: asynchronous Server/Controller/Client-approach to parallel computing, based on boost::asio * Copyright (C) 2012 Frederik Heber. All rights reserved. * */ /* * FragmentJobStub.cpp * * Created on: Feb 06, 2012 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" // include headers that implement a archive in simple text format // otherwise BOOST_CLASS_EXPORT_IMPLEMENT has no effect #include #include #include "FragmentJobStub.hpp" #include "JobMarket/Results/FragmentResult.hpp" #include "JobMarket/JobId.hpp" FragmentJobStub::FragmentJobStub(const JobId_t _JobId) : FragmentJob(_JobId) {} FragmentResult::ptr FragmentJobStub::Work() { return FragmentResult::ptr( new FragmentResult(getId()) ); } //!> private default cstor for serialization only FragmentJobStub::FragmentJobStub() : FragmentJob(JobId::IllegalJob) {} // we need to explicitly instantiate the serialization functions as // its is only serialized through its base class FragmentJob BOOST_CLASS_EXPORT_IMPLEMENT(FragmentJobStub)