Class TextResourceFile

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class TextResourceFile : public ResourceFile

Representation of a text file.

Subclassed by LuaTextResourceFile

Public Functions

TextResourceFile(TextResourceFile&)
TextResourceFile(TextResourceFile&&)
virtual ~TextResourceFile()
void putString(const String &newData)

Replace old data string with new data string.

void popBack()

Remove 1 character from the end of the data buffer.

void append(const String &add)
String getString() const

Get the resource data buffer as a readable String.

size_t getSize() const
void reimport()

Reload the file buffer from disk.

bool save()

Protected Functions

TextResourceFile(const FilePath &path)

Protected Attributes

String m_FileString

Friends

friend TextResourceFile::ResourceLoader