AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ TaskPtrAs()

template<typename T >
std::shared_ptr< T > drama::Task::TaskPtrAs ( )
inlineinherited

Returns a shared pointer to the task, dynamically cast to the template type.

It is often required to downcast from drama::Task to one of its subclasses before accessing methods. This method uses std::dynamic_pointer_cast to do that safely.

Template Parameters
TA sub-class of drama::Task.
Returns
A std::shared_ptr<T> to the task.