![]() |
globjects
2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
|
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code. More...
#include <globjects/include/globjects/base/AbstractStringSource.h>
Public Member Functions | |
AbstractStringSource () | |
virtual | ~AbstractStringSource () |
virtual std::string | string () const =0 |
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 |
void | changed () const |
void | registerListener (AbstractStringSource *listener) |
void | deregisterListener (AbstractStringSource *listener) |
void | registerListener (Shader *listener) |
void | deregisterListener (Shader *listener) |
void | registerListener (NamedString *listener) |
void | deregisterListener (NamedString *listener) |
void | addSubject (AbstractStringSource *subject) |
void | removeSubject (AbstractStringSource *subject) |
Protected Member Functions | |
virtual void | notifyChanged (const AbstractStringSource *sender) |
Protected Attributes | |
std::set< AbstractStringSource * > | m_sourceListener |
std::set< Shader * > | m_shaderListener |
std::set< NamedString * > | m_namedStringListener |
std::set< AbstractStringSource * > | m_subjects |
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
The current string can be queried using string().
globjects::AbstractStringSource::AbstractStringSource | ( | ) |
|
virtual |
|
pure virtual |
Implemented in globjects::CompositeStringSource, globjects::File, globjects::StaticStringSource, and globjects::StringTemplate.
|
virtual |
Reimplemented in globjects::CompositeStringSource.
std::vector< const AbstractStringSource * > globjects::AbstractStringSource::flatten | ( | ) | const |
|
virtual |
Reimplemented in globjects::CompositeStringSource.
|
virtual |
Reimplemented in globjects::CompositeStringSource, globjects::File, and globjects::StaticStringSource.
void globjects::AbstractStringSource::changed | ( | ) | const |
void globjects::AbstractStringSource::registerListener | ( | AbstractStringSource * | listener | ) |
void globjects::AbstractStringSource::deregisterListener | ( | AbstractStringSource * | listener | ) |
void globjects::AbstractStringSource::registerListener | ( | Shader * | listener | ) |
void globjects::AbstractStringSource::deregisterListener | ( | Shader * | listener | ) |
void globjects::AbstractStringSource::registerListener | ( | NamedString * | listener | ) |
void globjects::AbstractStringSource::deregisterListener | ( | NamedString * | listener | ) |
void globjects::AbstractStringSource::addSubject | ( | AbstractStringSource * | subject | ) |
void globjects::AbstractStringSource::removeSubject | ( | AbstractStringSource * | subject | ) |
|
protectedvirtual |
Reimplemented in globjects::CompositeStringSource, and globjects::StringTemplate.
|
protected |
|
protected |
|
protected |
|
protected |