Back to index

salome-smesh  6.5.0
Defines | Functions
MeshJobManager_i.cxx File Reference
#include <sys/time.h>
#include "MeshJobManager_i.hxx"
#include <SALOMEconfig.h>
#include "Basics_Utils.hxx"
#include "SALOME_KernelServices.hxx"
#include <fstream>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define LOG   STDLOG

Functions

static long timetag ()
 This function must be used to associate a datetime tag to a job.
static bool myStartsWith (const std::string &text, const std::string &token)
 This function returns true if the string text starts with the string token.
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)

Define Documentation

#define LOG   STDLOG

Definition at line 39 of file MeshJobManager_i.cxx.


Function Documentation

static std::string DATAFILE ( "data.txt"  ) [static]

Here is the caller graph for this function:

static std::string LOCAL_INPUTDIR ( "/tmp/spadder.local.inputdir."+  USER) [static]

Here is the caller graph for this function:

static std::string LOCAL_RESULTDIR ( "/tmp/spadder.local.resultdir."+  USER) [static]

Here is the caller graph for this function:

PortableServer::ObjectId* MeshJobManagerEngine_factory ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)

Definition at line 621 of file MeshJobManager_i.cxx.

  {
    LOG("PortableServer::ObjectId * MeshJobManagerEngine_factory()");
    MeshJobManager_i * myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName);
    return myEngine->getId() ;
  }
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.

Definition at line 64 of file MeshJobManager_i.cxx.

                                                                      {     
  if(text.length() < token.length())
    return false;
  return (text.compare(0, token.length(), token) == 0);
}

Here is the caller graph for this function:

static std::string OUTPUTFILE ( "output.med"  ) [static]

Here is the caller graph for this function:

static std::string REMOTE_WORKDIR ( "/tmp/spadder.remote.workdir."+  USER) [static]

Here is the caller graph for this function:

static std::string SCRIPTFILE ( "padder.sh"  ) [static]

Here is the caller graph for this function:

static std::string SEPARATOR ( " "  ) [static]

Here is the caller graph for this function:

static long timetag ( ) [static]

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

Definition at line 52 of file MeshJobManager_i.cxx.

                      {
  timeval tv;
  gettimeofday(&tv,0);
  long tag = tv.tv_usec + tv.tv_sec*1000000;
  return tag;
}

Here is the caller graph for this function:

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