A file is a basic text file that contains a basic text file.
More...
#include <File.h>
Inherits Fling::Resource.
A file is a basic text file that contains a basic text file.
◆ File()
Fling::File::File |
( |
Guid |
t_ID | ) |
|
|
explicit |
Construct a new File object.
- Parameters
-
t_ID | The GUID that represents the file path to this file. |
◆ GetData()
const char* Fling::File::GetData |
( |
| ) |
const |
|
inline |
Get char* that represents the text in this file.
- Returns
- const char*
◆ GetFileLength()
size_t Fling::File::GetFileLength |
( |
| ) |
const |
|
inline |
Get the File Length object.
- Returns
- size_t Length of the file in characters
◆ IsLoaded()
bool Fling::File::IsLoaded |
( |
| ) |
const |
|
inline |
Returns true if this file resource is loaded or not (i.e.
has any characters in the file)
◆ LoadFile()
void Fling::File::LoadFile |
( |
| ) |
|
|
private |
Loads the file based on Guid path.
- Note
- All Guid paths are relative to the assets directory.
◆ m_Characters
std::vector<char> Fling::File::m_Characters |
|
private |
Array of characters that represents this file.
The documentation for this class was generated from the following files: