Visual Computing Library
Loading...
Searching...
No Matches
vcl::FileType Struct Reference

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>

Public Member Functions

 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.
 

Public Attributes

bool isBinary = true
 
std::endian endian = std::endian::little
 

Detailed Description

Class that defines whether a file is binary or text, and (if binary) the endianness of the file.

Constructor & Destructor Documentation

◆ 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
binaryflag 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
endendianness of the file

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