globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
#include <globjects/include/globjects/base/StringTemplate.h>
Public Member Functions | |
StringTemplate (AbstractStringSource *source) | |
virtual | ~StringTemplate () |
virtual std::string | string () const override |
virtual void | update () override |
void | replace (const std::string &original, const std::string &str) |
void | replace (const std::string &original, int i) |
void | clearReplacements () |
Public Member Functions inherited from globjects::AbstractStringSourceDecorator | |
AbstractStringSourceDecorator (globjects::AbstractStringSource *source) | |
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 |
virtual std::string | shortInfo () const |
Public Member Functions inherited from globjects::Changeable | |
Changeable () | |
virtual | ~Changeable () |
void | changed () const |
void | registerListener (ChangeListener *listener) |
void | deregisterListener (ChangeListener *listener) |
Protected Member Functions | |
void | invalidate () |
std::string | modifiedSource () const |
Protected Member Functions inherited from globjects::AbstractStringSourceDecorator | |
virtual | ~AbstractStringSourceDecorator () |
virtual void | notifyChanged (const Changeable *changeable) override |
Protected Member Functions inherited from globjects::ChangeListener | |
void | addSubject (Changeable *subject) |
virtual void | removeSubject (Changeable *subject) |
virtual | ~ChangeListener () |
Protected Attributes | |
std::string | m_modifiedSource |
bool | m_modifiedSourceValid |
std::map< std::string, std::string > | m_replacements |
Protected Attributes inherited from globjects::AbstractStringSourceDecorator | |
globjects::AbstractStringSource * | m_internal |
Protected Attributes inherited from globjects::Changeable | |
std::set< ChangeListener * > | m_listeners |
Protected Attributes inherited from globjects::ChangeListener | |
std::set< Changeable * > | m_subjects |
Additional Inherited Members | |
Static Public Member Functions inherited from globjects::Instantiator< StringTemplate > | |
static std::unique_ptr< StringTemplate > | create (Args &&...args) |
static std::unique_ptr< StringTemplate > | fromId (gl::GLuint id, Args &&...args) |
globjects::StringTemplate::StringTemplate | ( | AbstractStringSource * | source | ) |
|
virtual |
|
overridevirtual |
Implements globjects::AbstractStringSource.
|
overridevirtual |
Reimplemented from globjects::AbstractStringSourceDecorator.
void globjects::StringTemplate::replace | ( | const std::string & | original, |
const std::string & | str | ||
) |
void globjects::StringTemplate::replace | ( | const std::string & | original, |
int | i | ||
) |
void globjects::StringTemplate::clearReplacements | ( | ) |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |