globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.

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

Inheritance diagram for globjects::StringTemplate:
globjects::StringSourceDecorator globjects::AbstractStringSource globjects::ChangeListener globjects::Referenced globjects::Changeable globjects::HeapOnly

Public Member Functions

 StringTemplate (AbstractStringSource *source)
 
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::StringSourceDecorator
 StringSourceDecorator (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::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)
 

Protected Member Functions

virtual ~StringTemplate ()
 
void invalidate ()
 
std::string modifiedSource () const
 
- Protected Member Functions inherited from globjects::StringSourceDecorator
virtual ~StringSourceDecorator ()
 
virtual void notifyChanged (const Changeable *changeable) override
 
- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 
- Protected Member Functions inherited from globjects::ChangeListener
virtual ~ChangeListener ()
 

Protected Attributes

std::string m_modifiedSource
 
bool m_modifiedSourceValid
 
std::map< std::string, std::string > m_replacements
 
- Protected Attributes inherited from globjects::StringSourceDecorator
globjects::ref_ptr< globjects::AbstractStringSourcem_internal
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual std::string globjects::StringTemplate::string ( ) const
overridevirtual
virtual void globjects::StringTemplate::update ( )
overridevirtual

Reimplemented from globjects::StringSourceDecorator.

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: