Version: 8.3.0
MeshJobManager_i.cxx File Reference
#include <sys/time.h>
#include "MeshJobManager_i.hxx"
#include <SALOMEconfig.h>
#include <CORBA_SERVER_HEADER(SALOME_Exception)>
#include "Basics_Utils.hxx"
#include "SALOME_KernelServices.hxx"
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <libgen.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>
Include dependency graph for MeshJobManager_i.cxx:

Macros

#define LOG   STDLOG
 

Functions

static long timetag ()
 This function must be used to associate a datetime tag to a job. More...
 
static bool myStartsWith (const std::string &text, const std::string &token)
 This function returns true if the string text starts with the string token. More...
 
static bool fexists (const char *filename)
 This function returns true if the file exists on the local file system. More...
 
static std::string OUTPUTFILE ("output.med")
 
static std::string DATAFILE ("data.txt")
 
static std::string SCRIPTFILE ("padder.sh")
 
static std::string SEPARATOR (" ")
 
static std::string USER (getenv("USER"))
 
static std::string LOCAL_INPUTDIR ("/tmp/spadder.local.inputdir."+USER)
 
static std::string LOCAL_RESULTDIR ("/tmp/spadder.local.resultdir."+USER)
 
static std::string REMOTE_WORKDIR ("/tmp/spadder.remote.workdir."+USER)
 
PortableServer::ObjectId * MeshJobManagerEngine_factory (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName)
 

Macro Definition Documentation

Function Documentation

static std::string DATAFILE ( "data.txt"  )
static
static bool fexists ( const char *  filename)
static

This function returns true if the file exists on the local file system.

Referenced by MeshJobManager_i::finalize(), and MeshJobManager_i::initialize().

static std::string LOCAL_INPUTDIR ( "/tmp/spadder.local.inputdir."+  USER)
static
static std::string LOCAL_RESULTDIR ( "/tmp/spadder.local.resultdir."+  USER)
static
PortableServer::ObjectId* MeshJobManagerEngine_factory ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)

References LOG.

static bool myStartsWith ( const std::string &  text,
const std::string &  token 
)
static

This function returns true if the string text starts with the string token.

Referenced by MeshJobManager_i::clean().

static std::string OUTPUTFILE ( "output.med"  )
static
static std::string REMOTE_WORKDIR ( "/tmp/spadder.remote.workdir."+  USER)
static
static std::string SCRIPTFILE ( "padder.sh"  )
static
static std::string SEPARATOR ( " "  )
static
static long timetag ( )
static

This function must be used to associate a datetime tag to a job.

Referenced by MeshJobManager_i::initialize().

static std::string USER ( getenv("USER")  )
static