![]() |
globjects
1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
|
String source associated to a file. More...
#include <globjects/include/globjects/base/File.h>
Public Member Functions | |
| File (const std::string &filePath, bool binary=true) | |
| virtual std::string | string () const override |
| virtual std::string | shortInfo () const override |
| const std::string & | filePath () const |
| void | reload () |
Public Member Functions inherited from globjects::AbstractStringSource | |
| virtual std::vector< std::string > | strings () const |
| std::vector< const AbstractStringSource * > | flatten () const |
| virtual void | flattenInto (std::vector< const AbstractStringSource * > &vector) const |
Public Member Functions inherited from globjects::Referenced | |
| Referenced () | |
| void | ref () const |
| void | unref () const |
| int | refCounter () const |
Public Member Functions inherited from globjects::HeapOnly | |
| HeapOnly () | |
| void | destroy () const |
Public Member Functions inherited from globjects::Changeable | |
| void | changed () const |
| void | registerListener (ChangeListener *listener) |
| void | deregisterListener (ChangeListener *listener) |
Static Public Member Functions | |
| static void | reloadAll () |
Protected Member Functions | |
| virtual | ~File () |
| void | loadFileContent () const |
Protected Member Functions inherited from globjects::Referenced | |
| virtual | ~Referenced () |
Protected Member Functions inherited from globjects::HeapOnly | |
| virtual | ~HeapOnly () |
Protected Attributes | |
| std::string | m_filePath |
| bool | m_binary |
| std::string | m_source |
| bool | m_valid |
String source associated to a file.
The file path of a File can be queried using filePath(); To reload the contents from a file, use reload().
| globjects::File::File | ( | const std::string & | filePath, |
| bool | binary = true |
||
| ) |
|
protectedvirtual |
|
overridevirtual |
Implements globjects::AbstractStringSource.
|
overridevirtual |
Reimplemented from globjects::AbstractStringSource.
| const std::string& globjects::File::filePath | ( | ) | const |
| void globjects::File::reload | ( | ) |
|
static |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
1.8.11