Class CSource#

Class Documentation#

class CSource#

This class covers the source file reading.

Public Functions

CSource()#

Default constructor.

CSource(const std::filesystem::path &rpath)#

Constructor reading the source file.

Parameters:

rpath[in] Path to the source file.

CSource(const char *szCode)#

Construct using the code, bypassing the reading of the file.

Parameters:

szCode[in] Zero terminated string containing the code.

CSource(const CSource &rSource) = delete#

Copy constructor.

Parameters:

rSource[in] Reference to the source object.

CSource(CSource &&rSource) noexcept#

Move constructor.

Parameters:

rSource[in] Reference to the source object.

CSource &operator=(const CSource &rSource) = delete#

Assignment operator.

Parameters:

rSource[in] Reference to the source object.

Returns:

Reference to the source object.

CSource &operator=(CSource &&rSource) noexcept#

Move operator.

Parameters:

rSource[in] Reference to the source object.

Returns:

Reference to the source object.

const std::filesystem::path &GetPathRef() const#

Get the source file path (as reference).

Returns:

The source file path.

const std::string &GetCodeRef() const#

Get the source code (as reference).

Returns:

The source code.

void ReadFile(const std::filesystem::path &rpath)#

Read a source file.

Parameters:

rpath[in] Path to the source file.