Class that defines whether a file is binary or text, and (if binary) the endianness of the file.
More...
#include <vclib/io/file_type.h>
|
| FileType ()=default |
| Default constructor, the file type is set to little endian binary.
|
|
| FileType (bool binary) |
| Constructor that creates a FileType object with the specified binary flag.
|
|
| FileType (std::endian end) |
| Constructor that creates a FileType object with the specified endianness.
|
|
|
bool | isBinary = true |
|
std::endian | endian = std::endian::little |
|
Class that defines whether a file is binary or text, and (if binary) the endianness of the file.
◆ FileType() [1/2]
vcl::FileType::FileType |
( |
bool |
binary | ) |
|
|
inline |
Constructor that creates a FileType object with the specified binary flag.
If the file is binary, the endianness is set to little endian.
- Parameters
-
binary | flag that specifies if the file is binary |
◆ FileType() [2/2]
vcl::FileType::FileType |
( |
std::endian |
end | ) |
|
|
inline |
Constructor that creates a FileType object with the specified endianness.
The binary flag is set to true.
- Parameters
-
end | endianness of the file |
The documentation for this struct was generated from the following file: