WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver::ViewCmdExecutorFactory Class Reference

#include <webdriver_view_executor.h>

Public Types

typedef std::vector< std::string > SupportedViewTypesList
 

Public Member Functions

ViewCmdExecutorCreateExecutor (Session *session, ViewId viewId) const
 
template<class C >
C * CreateExecutor (Session *session, ViewId viewId) const
 
ViewCmdExecutorCreateExecutor (Session *session) const
 
bool CanHandleView (Session *session, ViewId viewId, ViewType *viewType) const
 
void AddViewCmdExecutorCreator (ViewCmdExecutorCreator *creator)
 
const SupportedViewTypesListgetSupportedViewTypesList () const
 

Static Public Member Functions

static ViewCmdExecutorFactoryGetInstance ()
 

Detailed Description

This class used for managing commands related to view.

Member Typedef Documentation

Member Function Documentation

void webdriver::ViewCmdExecutorFactory::AddViewCmdExecutorCreator ( ViewCmdExecutorCreator creator)

add new view's eexcutor creator

Parameters
creatorpointer to custom creator. No need to delete object
bool webdriver::ViewCmdExecutorFactory::CanHandleView ( Session session,
ViewId  viewId,
ViewType viewType 
) const

check if view suppported

Parameters
sessionpointer to session
viewIdview to operate on
[out]viewTypereturned type of view
Returns
true - if there is executor for such view
ViewCmdExecutor* webdriver::ViewCmdExecutorFactory::CreateExecutor ( Session session,
ViewId  viewId 
) const

creates executor for specified view

Parameters
sessionpointer to session
viewIdview to operate on
Returns
new executor, NULL - if cant create.
template<class C >
C* webdriver::ViewCmdExecutorFactory::CreateExecutor ( Session session,
ViewId  viewId 
) const
inline
ViewCmdExecutor* webdriver::ViewCmdExecutorFactory::CreateExecutor ( Session session) const

creates executor for current view in session

Parameters
sessionpointer to session
Returns
new ViewCmdExecutor object, NULL - if cant handle
static ViewCmdExecutorFactory* webdriver::ViewCmdExecutorFactory::GetInstance ( )
static

Returns the singleton instance.

const SupportedViewTypesList& webdriver::ViewCmdExecutorFactory::getSupportedViewTypesList ( ) const
Returns
pointer to vector supported view types

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