Add input file options that accept missing files
[alexxy/gromacs.git] / src / gromacs / options / filenameoptionstorage.h
index 7628a379d1a0f90e7baa7afa74f38cbc8699c04d..8e799687dd4e2de2157a5032fa8af7c7f96c6016 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015, 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.
@@ -83,6 +83,8 @@ class FileNameOptionStorage : public OptionStorageTemplate<std::string>
         bool isInputOutputFile() const { return bRead_ && bWrite_; }
         //! \copydoc FileNameOptionInfo::isLibraryFile()
         bool isLibraryFile() const { return bLibrary_; }
+        //! \copydoc FileNameOptionInfo::allowMissing()
+        bool allowMissing() const { return bAllowMissing_; }
 
         //! \copydoc FileNameOptionInfo::isDirectoryOption()
         bool isDirectoryOption() const;
@@ -108,6 +110,7 @@ class FileNameOptionStorage : public OptionStorageTemplate<std::string>
         bool                    bRead_;
         bool                    bWrite_;
         bool                    bLibrary_;
+        bool                    bAllowMissing_;
 };
 
 } // namespace gmx