Provides binding between C++ and the UI. More...
#include <Coherent/UI/Binding/Binder.h>
Public Member Functions | |
TypeDescription | RegisterType (const char *name, void *object) |
Register type in the binding. More... | |
TypeDescription | RegisterType (const char *name, const void *object) |
Register type in the binding. More... | |
virtual void | ArrayBegin (size_t size)=0 |
Start exporting an array. More... | |
virtual void | ArrayEnd ()=0 |
End exporting an array. | |
virtual void | MapBegin (size_t size)=0 |
Start exporting a map (object) More... | |
virtual void | MapEnd ()=0 |
End exporting a map. | |
virtual size_t | ReadArrayBegin ()=0 |
Start reading an array. More... | |
virtual void | ReadArrayElement (size_t index)=0 |
Read element from an array. More... | |
virtual void | ReadArrayEnd ()=0 |
End reading an array. | |
virtual size_t | ReadMapBegin ()=0 |
Start reading a map (object) More... | |
virtual void | ReadKeyValuePair ()=0 |
Read next key-value pair from a map. | |
virtual void | ReadMapEnd ()=0 |
End reading a map. | |
virtual ValueType | PeekValueType ()=0 |
Peek the type of the current value. More... | |
Provides binding between C++ and the UI.
|
pure virtual |
Start exporting an array.
size | size of the array |
|
pure virtual |
Start exporting a map (object)
size | size of the map |
|
pure virtual |
Peek the type of the current value.
|
pure virtual |
Start reading an array.
|
pure virtual |
Read element from an array.
index | the index of the element in the array |
|
pure virtual |
Start reading a map (object)
TypeDescription Coherent::UI::Binder::RegisterType | ( | const char * | name, |
void * | object | ||
) |
Register type in the binding.
name | name for the type |
object | instance of this type |
TypeDescription Coherent::UI::Binder::RegisterType | ( | const char * | name, |
const void * | object | ||
) |
Register type in the binding.
name | name for the type |
object | instance of this type |