]> SALOME platform Git repositories - tools/libbatch.git/blobdiff - src/Core/Constants.cxx
Salome HOME
Merge from BR_LIBBATCH_2_0
[tools/libbatch.git] / src / Core / Constants.cxx
diff --git a/src/Core/Constants.cxx b/src/Core/Constants.cxx
new file mode 100644 (file)
index 0000000..c6df750
--- /dev/null
@@ -0,0 +1,61 @@
+//  Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+/*
+ * Constants.cxx :
+ *
+ * Auteur : Renaud BARATE - EDF R&D
+ * Date   : January 2010
+ *
+ */
+
+#include "Constants.hxx"
+
+namespace Batch {
+
+  // Definition of the string constants (keys for the parameter map)
+  def_Constant(ARGUMENTS);
+  def_Constant(EXECUTABLE);
+  def_Constant(ID);
+  def_Constant(INFILE);
+  def_Constant(MAXCPUTIME);
+  def_Constant(MAXDISKSIZE);
+  def_Constant(MAXRAMSIZE);
+  def_Constant(MAXWALLTIME);
+  def_Constant(NAME);
+  def_Constant(NBPROC);
+  def_Constant(NBPROCPERNODE);
+  def_Constant(OUTFILE);
+  def_Constant(QUEUE);
+  def_Constant(STATE);
+  def_Constant(WORKDIR);
+  def_Constant(EXCLUSIVE);
+
+  // These constants define the status of a job (parameter STATE);
+  def_Constant(CREATED);
+  def_Constant(IN_PROCESS);
+  def_Constant(QUEUED);
+  def_Constant(RUNNING);
+  def_Constant(PAUSED);
+  def_Constant(FINISHED);
+  def_Constant(FAILED);
+
+}