globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.

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

Inheritance diagram for globjects::StringTemplate:
globjects::AbstractStringSourceDecorator globjects::Instantiator< StringTemplate > globjects::AbstractStringSource globjects::ChangeListener globjects::Changeable

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::AbstractStringSourcem_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< StringTemplatecreate (Args &&...args)
 
static std::unique_ptr< StringTemplatefromId (gl::GLuint id, Args &&...args)
 

Constructor & Destructor Documentation

globjects::StringTemplate::StringTemplate ( AbstractStringSource source)
virtual globjects::StringTemplate::~StringTemplate ( )
virtual

Member Function Documentation

virtual std::string globjects::StringTemplate::string ( ) const
overridevirtual
virtual void globjects::StringTemplate::update ( )
overridevirtual
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 ( )
void globjects::StringTemplate::invalidate ( )
protected
std::string globjects::StringTemplate::modifiedSource ( ) const
protected

Member Data Documentation

std::string globjects::StringTemplate::m_modifiedSource
mutableprotected
bool globjects::StringTemplate::m_modifiedSourceValid
mutableprotected
std::map<std::string, std::string> globjects::StringTemplate::m_replacements
protected

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