HDK
|
#include <Syntax.h>
Public Member Functions | |
virtual | ~TypeSyntax () |
const string & | getName () const |
Returns the type name. More... | |
const string & | getTypeAlias () const |
Returns a type alias if needed to define the type in the target language. More... | |
const string & | getTypeDefinition () const |
Returns a type definition if needed to define the type in the target language. More... | |
const string & | getDefaultValue (bool uniform) const |
Returns the default value for this type. More... | |
const StringVec & | getMembers () const |
virtual string | getValue (const ShaderPort *port, bool uniform) const |
virtual string | getValue (const Value &value, bool uniform) const =0 |
virtual string | getValue (const StringVec &values, bool uniform) const =0 |
Protected Member Functions | |
TypeSyntax (const string &name, const string &defaultValue, const string &uniformDefaultValue, const string &typeAlias, const string &typeDefinition, const StringVec &members) | |
Protected constructor. More... | |
Protected Attributes | |
string | _name |
string | _defaultValue |
string | _uniformDefaultValue |
string | _typeAlias |
string | _typeDefinition |
StringVec | _members |
Static Protected Attributes | |
static const StringVec | EMPTY_MEMBERS |
|
protected |
Protected constructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Returns a value formatted according to this type syntax. The value is constructed from the given shader port object.
Returns a value formatted according to this type syntax. The value is constructed from the given value object.
Implemented in AggregateTypeSyntax, StringTypeSyntax, and ScalarTypeSyntax.
Returns a value formatted according to this type syntax. The value is constructed from the given list of value entries with one entry for each member of the type.
Implemented in AggregateTypeSyntax, and ScalarTypeSyntax.