/* * MPQCJob.h * * Created on: Jul 10, 2012 * Author: heber */ #ifndef MPQCJOB_H_ #define MPQCJOB_H_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "boost/serialization/export.hpp" #include "JobMarket/Jobs/FragmentJob.hpp" #include "Jobs/Grid/SamplingGridProperties.hpp" #include /** This class encapsulates a MPQC Job. * */ class MPQCJob : public FragmentJob { public: MPQCJob( const JobId_t _JobId, const std::string &_inputfile, const double _begin[3], const double _size, const int _level) : FragmentJob(_JobId), inputfile(_inputfile) {} virtual ~MPQCJob() {} FragmentResult::ptr Work(); private: //!> contents of the input file const std::string inputfile; //!> information for how to sample the density const SamplingGridProperties grid; private: /** private default cstor for serialization only */ MPQCJob() : FragmentJob(JobId::IllegalJob), {} friend class boost::serialization::access; // serialization template void serialize(Archive& ar, const unsigned int version) { ar & boost::serialization::base_object(*this); ar & const_cast(inputfile); ar & const_cast