globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::StaticStringSource Class Reference

StaticStringSource is a StringSource using an std::string as source. More...

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

Inheritance diagram for globjects::StaticStringSource:
globjects::AbstractStringSource globjects::Instantiator< StaticStringSource > globjects::Changeable

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

Detailed Description

StaticStringSource is a StringSource using an std::string as source.

The string can be queried with string().

See also
StringSource

Constructor & Destructor Documentation

globjects::StaticStringSource::StaticStringSource ( const std::string &  string)
globjects::StaticStringSource::StaticStringSource ( const char *  data,
size_t  length 
)

Member Function Documentation

virtual std::string globjects::StaticStringSource::shortInfo ( ) const
overridevirtual

Reimplemented from globjects::AbstractStringSource.

virtual std::string globjects::StaticStringSource::string ( ) const
overridevirtual
void globjects::StaticStringSource::setString ( const std::string &  string)

Member Data Documentation

std::string globjects::StaticStringSource::m_string
protected

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