summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-03 14:20:31 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-03 14:20:31 (GMT)
commit2938652cbde24466f37f466136804a48b6b1ed78 (patch)
treec051f28f4ee2056dba4bb23ce0105d90344d2081 /Source/kwsys/SystemTools.hxx.in
parentf3e58aeb7d6d63c6c0a21a8f0ba58226bdfb602a (diff)
downloadCMake-2938652cbde24466f37f466136804a48b6b1ed78.zip
CMake-2938652cbde24466f37f466136804a48b6b1ed78.tar.gz
CMake-2938652cbde24466f37f466136804a48b6b1ed78.tar.bz2
ENH: create a server that does not use vtkPVApplication or tcl wrapping. Move several classes from GUI/Client to Servers/Filters. Remove use of PARAVIEW_NEW_SOURCE_ORGANIZATION define.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 1676ff2..7c6e2ce 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -188,6 +188,26 @@ public:
kwsys_stl::string& file,
bool errorReport = true);
+ /**
+ * Given argv[0] for a unix program find the full path to a running
+ * executable. argv0 can be null for windows WinMain programs
+ * in this case GetModuleFileName will be used to find the path
+ * to the running executable. If argv0 is not a full path,
+ * then this will try to find the full path. If the path is not
+ * found false is returned, if found true is returned. An error
+ * message of the attempted paths is stored in errorMsg.
+ * exeName is the name of the executable.
+ * buildDir is a possibly null path to the build directory.
+ * installPrefix is a possibly null pointer to the install directory.
+
+ */
+ static bool FindProgramPath(const char* argv0,
+ kwsys_stl::string& pathOut,
+ kwsys_stl::string& errorMsg,
+ const char* exeName = 0,
+ const char* buildDir = 0,
+ const char* installPrefix = 0);
+
/**
* Given a path to a file or directory, convert it to a full path.
* This collapses away relative paths relative to the cwd argument