XII Release 0.1.0
Loading...
Searching...
No Matches
xiiLongOpProxy Class Referenceabstract

Proxy long ops represent a long operation on the editor side. More...

#include <LongOps.h>

Inheritance diagram for xiiLongOpProxy:
[legend]

Public Member Functions

virtual void InitializeRegistered (const xiiUuid &documentGuid, const xiiUuid &componentGuid)
 Called once by xiiLongOpControllerManager::RegisterLongOp() to inform the proxy to which xiiDocument and component (xiiDocumentObject) it is linked.
 
virtual xiiStringView GetDisplayName () const =0
 Called by the xiiQtLongOpsPanel to determine the display string to be shown in the UI.
 
virtual void GetReplicationInfo (xiiStringBuilder &out_sReplicationOpType, xiiStreamWriter &inout_config)=0
 Called every time the long op shall be executed.
 
virtual void Finalize (xiiResult result, const xiiDataBuffer &resultData)
 Called once the corresponding xiiLongOpWorker has finished.
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Detailed Description

Proxy long ops represent a long operation on the editor side.

Proxy long ops have little functionality other than naming which xiiLongOpWorker to execute in the engine process and to feed it with the necessary parameters. Since the proxy long op runs in the editor process, it may access xiiDocumentObject's and extract data from them.

Member Function Documentation

◆ Finalize()

virtual void xiiLongOpProxy::Finalize ( xiiResult result,
const xiiDataBuffer & resultData )
inlinevirtual

Called once the corresponding xiiLongOpWorker has finished.

Parameters
resultWhether the operation succeeded or failed (e.g. via user cancellation).
resultDataOptional data written by xiiLongOpWorker::Execute().

Reimplemented in xiiLongOpProxy_BakeScene.

◆ GetDisplayName()

virtual xiiStringView xiiLongOpProxy::GetDisplayName ( ) const
pure virtual

Called by the xiiQtLongOpsPanel to determine the display string to be shown in the UI.

Implemented in xiiLongOpProxy_BakeScene.

◆ GetReplicationInfo()

virtual void xiiLongOpProxy::GetReplicationInfo ( xiiStringBuilder & out_sReplicationOpType,
xiiStreamWriter & inout_config )
pure virtual

Called every time the long op shall be executed.

Parameters
out_sReplicationOpTypemust name the xiiLongOpWorker that shall be executed in the engine process.
configcan be optionally written to. The data is transmitted to the xiiLongOpWorker on the other side and fed to it in xiiLongOpWorker::InitializeExecution().

Implemented in xiiLongOpProxy_BakeScene.

◆ InitializeRegistered()

virtual void xiiLongOpProxy::InitializeRegistered ( const xiiUuid & documentGuid,
const xiiUuid & componentGuid )
inlinevirtual

Called once by xiiLongOpControllerManager::RegisterLongOp() to inform the proxy to which xiiDocument and component (xiiDocumentObject) it is linked.

Reimplemented in xiiLongOpProxy_BakeScene.


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