SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2009 Hartmut Kaiser 00002 // 00003 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00005 00006 #ifndef SAGA_SAGA_ADAPTORS_JOB_CPI_INSTANCE_DATA_HPP 00007 #define SAGA_SAGA_ADAPTORS_JOB_CPI_INSTANCE_DATA_HPP 00008 00009 #include <saga/saga/packages/job/job.hpp> 00010 #include <saga/saga/adaptors/config.hpp> 00011 #include <saga/saga/types.hpp> 00012 #include <saga/saga/url.hpp> 00013 #include <saga/saga/adaptors/instance_data_base.hpp> 00014 00016 namespace saga { namespace adaptors { namespace v1_0 00017 { 00019 // Instance data held by the SAGA engine/package 00020 struct job_cpi_instance_data 00021 : public adaptors::instance_data_base 00022 { 00023 job_cpi_instance_data(saga::url rm, saga::job::description jd) 00024 : init_from_jobid_(false), jd_is_valid_(true), rm_(rm), jd_(jd.clone()) 00025 {} 00026 job_cpi_instance_data(saga::url rm, std::string jobid) 00027 : init_from_jobid_(true), jd_is_valid_(false), rm_(rm), jobid_(jobid) 00028 {} 00029 00030 bool init_from_jobid_; // job+description must be initialized from jobid 00031 bool jd_is_valid_; // this is true if jd has been initialized 00032 saga::url rm_; // resource manager to use 00033 std::string jobid_; // jobid from which the job is to be initialized from 00034 saga::job::description jd_; // job description 00035 }; 00036 00038 }}} // namespace saga::adaptors::v1_0 00039 00040 #endif // SAGA_SAGA_ADAPTORS_JOB_CPI_INSTANCE_DATA_HPP 00041