Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::anonymous_namespace{filenameoption.cpp}::FileTypeHandler Class Reference


Handles a single file type known to FileNameOptionStorage.

Methods in this class do not throw, except for a possible std::bad_alloc when constructing std::string return values.

Public Member Functions

 FileTypeHandler (int fileType)
 Returns a handler for a single file type. More...
int extensionCount () const
 Returns the number of acceptable extensions for this file type.
const char * extension (int i) const
 Returns the extension with the given index.
bool isValidType (int fileType) const
 Returns whether fileType (from filetypes.h) is accepted for this type.

The documentation for this class was generated from the following file: