COVISE Core
coSpawnProgram.h
Go to the documentation of this file.
1#ifndef VRB_REMOTE_LAUCHER_SPAWN_PROGRAMM_H
2#define VRB_REMOTE_LAUCHER_SPAWN_PROGRAMM_H
3
4#include "coExport.h"
5
6#include <vector>
7#include <string>
8namespace covise
9{
10 //execPath: executable path, args: first arg must be executable name, last arg must be nullptr;
11 UTILEXPORT void spawnProgram(const char* execPath, const std::vector<const char *> &args, const std::vector<const char *> &env = {});
12
13 //execPath: executable path, args: command line args
14 UTILEXPORT void spawnProgram(const std::string & execPath, const std::vector<std::string> &args, const std::vector<std::string> &env = {});
15
16 //execPath: executable path, debugCommands: coCoviseConfig::getEntry("System.CRB.DebugCommand"), args: first arg must be executable name, last arg must be nullptr;
17 UTILEXPORT void spawnProgramWithDebugger(const std::string& execPath, const std::string &debugCommands,const std::vector<std::string>& args);
18 //execPath: executable path, debugCommands: coCoviseConfig::getEntry("System.CRB.MemcheckCommand"), args: first arg must be executable name, last arg must be nullptr;
19 UTILEXPORT void spawnProgramWithMemCheck(const std::string&, const std::string &debugCommands,const std::vector<std::string>& args);
20
21 //returns the " " separated tokens from the commandLine string as a vector
22 UTILEXPORT std::vector<std::string> parseCmdArgString(const std::string &commandLine);
23 UTILEXPORT std::vector<const char*> cmdArgsToCharVec(const std::vector<std::string>& args);
24
25
26} //namespace covise
27
28#endif
#define UTILEXPORT
Definition: coExport.h:206
GLsizei const GLchar *const * string
Definition: khronos-glext.h:6750
list of all chemical elements
Definition: coConfig.h:27
UTILEXPORT std::vector< std::string > parseCmdArgString(const std::string &commandLine)
Definition: coSpawnProgram.cpp:417
UTILEXPORT void spawnProgramWithMemCheck(const std::string &, const std::string &debugCommands, const std::vector< std::string > &args)
Definition: coSpawnProgram.cpp:377
UTILEXPORT std::vector< const char * > cmdArgsToCharVec(const std::vector< std::string > &args)
Definition: coSpawnProgram.cpp:422
UTILEXPORT void spawnProgramWithDebugger(const std::string &execPath, const std::string &debugCommands, const std::vector< std::string > &args)
Definition: coSpawnProgram.cpp:267
UTILEXPORT void spawnProgram(const char *execPath, const std::vector< const char * > &args, const std::vector< const char * > &env={})
Definition: coSpawnProgram.cpp:69