Improve FileNameOption error handling
[alexxy/gromacs.git] / src / gromacs / options / filenameoption.h
index e3ab252f7a615465cd97bbf6fdf37a3ffaa87e4a..453f4cd5f1dafcb7b190d6206bd13cb96fd27aea 100644 (file)
@@ -214,10 +214,16 @@ class FileNameOptionInfo : public OptionInfo
 
         //! Whether the option specifies directories.
         bool isDirectoryOption() const;
+        //! Whether the option specifies a generic trajectory file.
+        bool isTrajectoryOption() const;
         //! Returns the default extension for this option.
         const char *defaultExtension() const;
         //! Returns the list of extensions this option accepts.
         ExtensionList extensions() const;
+        //! Returns whether \p fileType (from filenm.h) is accepted for this option.
+        bool isValidType(int fileType) const;
+        //! Returns the list of file types this option accepts.
+        ConstArrayRef<int> fileTypes() const;
 
     private:
         const FileNameOptionStorage &option() const;