/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#include <string>
-#include "common.h"
+#include "gromacs/utility/common.h"
namespace gmx
{
*/
void close();
+ /*! \brief
+ * Returns whether the file is an interactive terminal.
+ *
+ * Only works on Unix, otherwise always returns true.
+ * It only makes sense to call this for File::standardInput() and
+ * friends.
+ *
+ * Thie file must be open.
+ * Does not throw.
+ */
+ bool isInteractive() const;
/*! \brief
* Returns a file handle for interfacing with C functions.
*