jdl-api-cpp-3.4.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
convert.h
Go to the documentation of this file.
1 /*
2 Copyright (c) Members of the EGEE Collaboration. 2004.
3 See http://www.eu-egee.org/partners/ for details on the
4 copyright holders.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15 either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 */
19 
20 // File: convert.h
21 // Author: Francesco Giacomini <Francesco.Giacomini@cnaf.infn.it>
22 // Copyright (c) 2002 EU DataGrid.
23 
24 // $Id: convert.h,v 1.3.6.1 2010/04/07 09:50:34 mcecchi Exp $
25 
26 #ifndef GLITE_WMS_COMMON_REQUESTAD_CONVERT_H
27 #define GLITE_WMS_COMMON_REQUESTAD_CONVERT_H
28 
29 #include <iosfwd>
30 
31 namespace classad {
32 class ClassAd;
33 }
34 
35 namespace glite {
36 namespace jdl {
37 
38 class DAGAd;
39 
40 // convert a classad for a job to a condor submit file (stream in general)
41 std::ostream& to_submit_stream(std::ostream& os, classad::ClassAd const& ad);
42 
43 // convert a DAGAd to a condor DAG file (stream in general)
44 std::ostream& to_dag_stream(std::ostream& os, DAGAd const& dag_ad);
45 
46 bool to_dag_job(DAGAd const& dag_ad, classad::ClassAd& result);
47 
48 } // jdl namespace
49 } // glite namespace
50 
51 #endif // GLITE_WMS_COMMON_REQUESTAD_CONVERT_H
bool to_dag_job(DAGAd const &dag_ad, classad::ClassAd &result)
std::ostream & to_dag_stream(std::ostream &os, DAGAd const &dag_ad)
std::ostream & to_submit_stream(std::ostream &os, classad::ClassAd const &ad)