globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.

String source associated to a file. More...

#include <globjects/include/globjects/base/File.h>

Inheritance diagram for globjects::File:
globjects::AbstractStringSource globjects::Referenced globjects::Changeable globjects::HeapOnly

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
 

Detailed Description

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().

See also
StringSource

Constructor & Destructor Documentation

globjects::File::File ( const std::string &  filePath,
bool  binary = true 
)
virtual globjects::File::~File ( )
protectedvirtual

Member Function Documentation

virtual std::string globjects::File::string ( ) const
overridevirtual
virtual std::string globjects::File::shortInfo ( ) const
overridevirtual

Reimplemented from globjects::AbstractStringSource.

const std::string& globjects::File::filePath ( ) const
void globjects::File::reload ( )
static void globjects::File::reloadAll ( )
static
void globjects::File::loadFileContent ( ) const
protected

Member Data Documentation

std::string globjects::File::m_filePath
protected
bool globjects::File::m_binary
protected
std::string globjects::File::m_source
mutableprotected
bool globjects::File::m_valid
mutableprotected

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