globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
StaticStringSource is a StringSource using an std::string as source. More...
#include <globjects/include/globjects/base/StaticStringSource.h>
Public Member Functions | |
StaticStringSource (const std::string &string) | |
StaticStringSource (const char *data, size_t length) | |
virtual std::string | shortInfo () const override |
virtual std::string | string () const override |
void | setString (const std::string &string) |
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::Changeable | |
Changeable () | |
virtual | ~Changeable () |
void | changed () const |
void | registerListener (ChangeListener *listener) |
void | deregisterListener (ChangeListener *listener) |
Protected Attributes | |
std::string | m_string |
Protected Attributes inherited from globjects::Changeable | |
std::set< ChangeListener * > | m_listeners |
Additional Inherited Members | |
Static Public Member Functions inherited from globjects::Instantiator< StaticStringSource > | |
static std::unique_ptr< StaticStringSource > | create (Args &&...args) |
static std::unique_ptr< StaticStringSource > | fromId (gl::GLuint id, Args &&...args) |
StaticStringSource is a StringSource using an std::string as source.
The string can be queried with string().
globjects::StaticStringSource::StaticStringSource | ( | const std::string & | string | ) |
globjects::StaticStringSource::StaticStringSource | ( | const char * | data, |
size_t | length | ||
) |
|
overridevirtual |
Reimplemented from globjects::AbstractStringSource.
|
overridevirtual |
Implements globjects::AbstractStringSource.
void globjects::StaticStringSource::setString | ( | const std::string & | string | ) |
|
protected |