#include <string>
#include <vector>
-#include "../utility/common.h"
-#include "../utility/programcontext.h"
-#include "../utility/uniqueptr.h"
+#include <boost/shared_ptr.hpp>
+
+#include "gromacs/utility/common.h"
+#include "gromacs/utility/programcontext.h"
namespace gmx
{
};
//! Shorthand for a smart pointer to ExecutableEnvironmentInterface.
-typedef gmx_unique_ptr<ExecutableEnvironmentInterface>::type
+typedef boost::shared_ptr<ExecutableEnvironmentInterface>
ExecutableEnvironmentPointer;
/*! \libinternal \brief
*/
virtual const char *displayName() const;
/*! \brief
- * Returns the full command line used to invoke the binary.
+ * Returns the full path of the running binary.
*
- * Does not throw.
+ * \throws std::bad_alloc if out of memory.
+ * \throws tMPI::system_error on thread synchronization errors.
+ *
+ * Returns argv[0] if there was an error in finding the absolute path.
*/
- virtual const char *commandLine() const;
-
+ virtual const char *fullBinaryPath() const;
/*! \brief
- * Returns the full path of the invoked binary.
+ * Returns the default path for \Gromacs data files.
*
* \throws std::bad_alloc if out of memory.
* \throws tMPI::system_error on thread synchronization errors.
*
- * Returns argv[0] if there was an error in finding the absolute path.
+ * Returns a hardcoded path set during configuration time if there is
+ * an error in finding the library data files.
*/
- virtual const char *fullBinaryPath() const;
+ virtual const char *defaultLibraryDataPath() const;
+ /*! \brief
+ * Returns the full command line used to invoke the binary.
+ *
+ * Does not throw.
+ */
+ virtual const char *commandLine() const;
private:
class Impl;