Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback Class Reference

helper class to store data along with the automation callback. More...

Inheritance diagram for Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback:
Collaboration graph
[legend]

Public Types

enum  CommandId { UNKNOWN_COMMAND, SET_PROPERTY, DUMP_SCENE }
 instead of using templates, or having different callback classes for each callback we use a command id that decides which static function to call on the Automation class. More...
 

Public Member Functions

 AutomationCallback (unsigned int clientId, ClientSendDataInterface &sendDataInterface)
 
void AssignSetPropertyCommand (std::string setPropertyCommand)
 
void AssignDumpSceneCommand ()
 
void RunCallback ()
 
- Public Member Functions inherited from Dali::CallbackBase
 CallbackBase ()
 Default constructor .0. More...
 
 ~CallbackBase ()
 Destructor .0. More...
 
void Reset ()
 Resets the object pointer so that we know not to call methods of this object any more. More...
 

Static Public Member Functions

static void Dispatcher (CallbackBase &base)
 
- Static Public Member Functions inherited from Dali::CallbackBase
static void Execute (CallbackBase &callback)
 Function to call the function or member function dispatcher. More...
 
template<typename R >
static R ExecuteReturn (CallbackBase &callback)
 Function to call the function or member function dispatcher. More...
 
template<typename P1 >
static void Execute (CallbackBase &callback, P1 param1)
 Function to call the function or member function dispatcher. More...
 
template<typename R , typename P1 >
static R ExecuteReturn (CallbackBase &callback, P1 param1)
 Function to call the function or member function dispatcher. More...
 
template<typename P1 , typename P2 >
static void Execute (CallbackBase &callback, P1 param1, P2 param2)
 Function to call the function or member function dispatcher. More...
 
template<typename R , typename P1 , typename P2 >
static R ExecuteReturn (CallbackBase &callback, P1 param1, P2 param2)
 Function to call the function or member function dispatcher. More...
 
template<typename P1 , typename P2 , typename P3 >
static void Execute (CallbackBase &callback, P1 param1, P2 param2, P3 param3)
 Function to call the function or member function dispatcher. More...
 
template<typename R , typename P1 , typename P2 , typename P3 >
static R ExecuteReturn (CallbackBase &callback, P1 param1, P2 param2, P3 param3)
 Function to call the function or member function dispatcher. More...
 

Private Attributes

std::string mPropertyCommand
 property command More...
 
ClientSendDataInterfacemSendDataInterface
 Abstract client send data interface. More...
 
CommandId mCommandId
 command id More...
 
const unsigned int mClientId
 client id More...
 

Additional Inherited Members

- Public Attributes inherited from Dali::CallbackBase
ImplmImpl
 Implementation pointer. More...
 
union {
   MemberFunction   mMemberFunction
 Pointer to member function. More...
 
   Function   mFunction
 Static function. More...
 
}; 
 
- Protected Types inherited from Dali::CallbackBase
typedef void(* Function )(void)
 Function with static linkage .0. More...
 
typedef void(CallbackBase::* MemberFunction )(void)
 Member function .0. More...
 
typedef void(* Dispatcher )(CallbackBase &base)
 Used to call the correct member function .0. More...
 
typedef void(* Destructor )(void *object)
 Used to destroy mObjectPointer (NULL if not mObjectPointer is not owned) .0. More...
 
- Protected Member Functions inherited from Dali::CallbackBase
 CallbackBase (const CallbackBase &rhs)
 Copy constructor operator not declared. More...
 
const CallbackBaseoperator= (const CallbackBase &rhs)
 assignment operator not declared. More...
 
 CallbackBase (Function function)
 Constructor for function with static linkage. More...
 
 CallbackBase (void *object, MemberFunction function, Dispatcher dispatcher)
 Constructor for member function. More...
 
 CallbackBase (void *object, MemberFunction function, Dispatcher dispatcher, Destructor destructor)
 Constructor for member function. More...
 

Detailed Description

helper class to store data along with the automation callback.

Definition at line 49 of file network-performance-client.cpp.

Member Enumeration Documentation

enum Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::CommandId

instead of using templates, or having different callback classes for each callback we use a command id that decides which static function to call on the Automation class.

Enumerator
UNKNOWN_COMMAND 
SET_PROPERTY 
DUMP_SCENE 

Definition at line 57 of file network-performance-client.cpp.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::AutomationCallback ( unsigned int  clientId,
ClientSendDataInterface sendDataInterface 
)
inline

Definition at line 64 of file network-performance-client.cpp.

Member Function Documentation

void Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::AssignDumpSceneCommand ( )
inline

Definition at line 78 of file network-performance-client.cpp.

void Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::AssignSetPropertyCommand ( std::string  setPropertyCommand)
inline

Definition at line 73 of file network-performance-client.cpp.

static void Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::Dispatcher ( CallbackBase base)
inlinestatic

Definition at line 104 of file network-performance-client.cpp.

References RunCallback().

Here is the call graph for this function:

void Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::RunCallback ( )
inline

Definition at line 83 of file network-performance-client.cpp.

References DALI_ASSERT_DEBUG, Dali::Internal::Adaptor::Automation::DumpScene(), and Dali::Internal::Adaptor::Automation::SetProperty().

Referenced by Dispatcher().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const unsigned int Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::mClientId
private

client id

Definition at line 115 of file network-performance-client.cpp.

CommandId Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::mCommandId
private

command id

Definition at line 114 of file network-performance-client.cpp.

std::string Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::mPropertyCommand
private

property command

Definition at line 112 of file network-performance-client.cpp.

ClientSendDataInterface& Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::mSendDataInterface
private

Abstract client send data interface.

Definition at line 113 of file network-performance-client.cpp.


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali