Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlineprogramcontext.h
index ab0d91d58f2dc534bf336663c934e861a60c1bdd..bfcc17322c5b6e7f192d5b4b61961d402a273aac 100644 (file)
 #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
 {
@@ -90,7 +91,7 @@ class ExecutableEnvironmentInterface
 };
 
 //! Shorthand for a smart pointer to ExecutableEnvironmentInterface.
-typedef gmx_unique_ptr<ExecutableEnvironmentInterface>::type
+typedef boost::shared_ptr<ExecutableEnvironmentInterface>
     ExecutableEnvironmentPointer;
 
 /*! \libinternal \brief
@@ -186,21 +187,30 @@ class CommandLineProgramContext : public ProgramContextInterface
          */
         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;