Public Member Functions |
| | DtEnvObjectSync () |
| virtual | ~DtEnvObjectSync () |
| virtual void | generateObject (DtEnvironment &, const DtString &name) |
| | Create a new object in the environment and bind to it Calls unbind, if currently bound to an object.
|
| virtual void | bind (DtEnvValueSP value, bool createMissingAttributes) |
| | Bind to existing object, all attributes will also bind, if an attribute is missing, a new value will be created if the createMissingAttributes is set to true, else the attribute is unbounded.
|
| virtual void | unbind () |
| | Unbind from object in environment Note environment object still exists.
|
| virtual DtEnvValueSP | binding () const |
| | Returns object sync is bound to If unbound returns null.
|
| virtual void | addAttributeSync (const DtString &, DtEnvObjectSync *) |
| | Add attribute sync, note DtEnvObjectSync*, must not outlive, parent If currently bound, attribute sync will bind.
|
| virtual void | removeAttributeSync (const DtString &) |
| | Remove attribute sync If currently bound, attribute sync will unbind.
|
| virtual void | removeAllAttributeSyncs () |
| | Remove all the attributes.
|
| virtual DtEnvObjectSync * | attributeSync (const DtString &) |
| | Will return sync object for attribute (or null)
|
| virtual void | syncInCB (const DtEnvObject &)=0 |
| | Update native object using environment Called when environment has changed Not this will not be called when changed from syncOutCB.
|
| virtual void | syncOutCB (DtEnvObject &) const =0 |
| | Update environment using native object Called when environment needs to be updated.
|
| virtual DtString | syncType () const =0 |
| | Provide environment type for encoding.
|
| virtual void | unboundAttributeSyncInCB (DtEnvValue *) |
| | Unbound attribute in environment changed.
|
| virtual void | attributeAddedCB (DtEnvValueSP) |
| | Called when attribute is added to environment object.
|
| virtual void | attributeRemovedCB (DtEnvValueSP) |
| | Called when attribute is removed from environment object.
|
Synchronizes an environment object to a C++ object.