1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 * Batch_Constants.hxx :
25 * Auteur : Renaud BARATE - EDF R&D
35 #include "Batch_Defines.hxx"
37 // These macros simplify the creation of new string constants for keys and
38 // values in parameters map.
39 // TODO: replace those static declarations by an external description file (XML for instance)
40 #define decl_extern_Constant(constant) extern BATCH_EXPORT const std::string constant
41 #define def_Constant(constant) const std::string constant = #constant
45 // Declaration of the keys for the parameter map
46 decl_extern_Constant(ACCOUNT);
47 decl_extern_Constant(ARGUMENTS);
48 decl_extern_Constant(CHECKPOINT);
49 decl_extern_Constant(CKPTINTERVAL);
50 decl_extern_Constant(CREATIONTIME);
51 decl_extern_Constant(EGROUP);
52 decl_extern_Constant(ELIGIBLETIME);
53 decl_extern_Constant(ENDTIME);
54 decl_extern_Constant(EUSER);
55 decl_extern_Constant(EXECUTABLE);
56 decl_extern_Constant(EXECUTIONHOST);
57 decl_extern_Constant(EXITCODE);
58 decl_extern_Constant(HOLD);
59 decl_extern_Constant(ID);
60 decl_extern_Constant(INFILE);
61 decl_extern_Constant(MAIL);
62 decl_extern_Constant(MAXCPUTIME);
63 decl_extern_Constant(MAXDISKSIZE);
64 decl_extern_Constant(MAXRAMSIZE);
65 decl_extern_Constant(MAXWALLTIME);
66 decl_extern_Constant(MODIFICATIONTIME);
67 decl_extern_Constant(NAME);
68 decl_extern_Constant(NBPROC);
69 decl_extern_Constant(OUTFILE);
70 decl_extern_Constant(PID);
71 decl_extern_Constant(QUEUE);
72 decl_extern_Constant(QUEUEDTIME);
73 decl_extern_Constant(SERVER);
74 decl_extern_Constant(STARTTIME);
75 decl_extern_Constant(STATE);
76 decl_extern_Constant(TEXT);
77 decl_extern_Constant(TMPDIR);
78 decl_extern_Constant(USEDCPUTIME);
79 decl_extern_Constant(USEDDISKSIZE);
80 decl_extern_Constant(USEDRAMSIZE);
81 decl_extern_Constant(USEDWALLTIME);
82 decl_extern_Constant(USER);
83 decl_extern_Constant(WORKDIR);
84 decl_extern_Constant(HOMEDIR);
86 // These constants define the status of a job (parameter STATE)
87 decl_extern_Constant(CREATED);
88 decl_extern_Constant(IN_PROCESS);
89 decl_extern_Constant(QUEUED);
90 decl_extern_Constant(RUNNING);
91 decl_extern_Constant(PAUSED);
92 decl_extern_Constant(FINISHED);
93 decl_extern_Constant(FAILED);