|
Visual Computing Library
devel
|
The FileFormat class represents a file format. More...
#include <vclib/io/file_format.h>
Public Member Functions | |
| const std::string & | description () const |
| const std::vector< std::string > & | extensions () const |
| constexpr | FileFormat (const char *extension, std::string description="") |
| constexpr | FileFormat (const std::string &extension, std::string description="") |
| constexpr | FileFormat (Range auto extensions, std::string description="") |
| bool | matchExtension (std::string extension) const |
| auto | operator<=> (const FileFormat &other) const |
| A FileFormat is equal to another if at least one extension is equal. The description is not considered. | |
| bool | operator== (const FileFormat &other) const |
Static Private Member Functions | |
| static constexpr void | clearExtension (std::string &extension) |
Private Attributes | |
| std::string | mDescription |
| std::vector< std::string > | mExtensions |
The FileFormat class represents a file format.
A format is defined by a list of extensions and a description.
|
inline |
A FileFormat is equal to another if at least one extension is equal. The description is not considered.
Otherwise, the comparison is based on the first extension.
| other |