The OpenD Programming Language

ReflectableProperties

Undocumented in source.

Members

Enums

SetPropertyResult
enum SetPropertyResult

setPropertyFromString possible return values

Functions

getPropertiesList
void getPropertiesList(void delegate(string name) sink)

Iterates the event's properties as strings. Note that keys may be repeated and a get property request may call your sink with null. It it does, it means the key either doesn't request or cannot be represented by json in the current implementation.

getPropertyAsString
void getPropertyAsString(string name, void delegate(string name, scope const(char)[] value, bool valueIsJson) sink)

Requests a property to be delivered to you as a string, through your sink delegate.

setPropertyFromString
SetPropertyResult setPropertyFromString(string name, const(char)[] str, bool strIsJson)

Sets the given property, if it exists, to the given value, if possible. If strIsJson is true, it will json decode (if the implementation wants to) then apply the value, otherwise it will treat it as a plain string.

Mixin templates

RegisterGetters
mixintemplate RegisterGetters()

You can mix this in to get an implementation in child classes. This does getPropertyAsString and getPropertiesList.

RegisterSetters
mixintemplate RegisterSetters()

You can mix this in to get an implementation in child classes. This does setPropertyFromString.

Meta