Static Public Member Functions | List of all members
Files Struct Referencefinal

File utilities. More...

#include <Files.hpp>

Static Public Member Functions

static void copy (const Resource::File &src, const Resource::File &dst)
 Copy the contents of the source file into the destination file. More...
 
static std::string readToString (const Resource::File &file)
 Read the specified file into a string. More...
 
static std::vector< char > readToVector (const Resource::File &file)
 Read the specified file into a character vector. More...
 
static std::vector< std::string > toLines (const Resource::File &file)
 Read all lines of text of the specified file into a string vector. More...
 

Detailed Description

File utilities.

Member Function Documentation

◆ copy()

static void copy ( const Resource::File src,
const Resource::File dst 
)
inlinestatic

Copy the contents of the source file into the destination file.

◆ readToString()

static std::string readToString ( const Resource::File file)
inlinestatic

Read the specified file into a string.

Exceptions
FileNotFoundExceptionif the file does not exist or is not a regular file

◆ readToVector()

static std::vector<char> readToVector ( const Resource::File file)
inlinestatic

Read the specified file into a character vector.

Exceptions
FileNotFoundExceptionif the file does not exist or is not a regular file

◆ toLines()

static std::vector<std::string> toLines ( const Resource::File file)
inlinestatic

Read all lines of text of the specified file into a string vector.

Exceptions
FileNotFoundExceptionif the file does not exist or is not a regular file

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