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

◆ Path() [3/4]

drama::Path::Path ( std::weak_ptr< Task theTask,
DitsPathType  path 
)

Construct from existing DITS path.

Constructs an drama::Path object from an existing DITS path.

If the path is valid, then the state is set to ACTIVE, otherwise it is set to died and you would to set the task name before trying to get a path to the task.

Parameters
theTaskThe DRAMA Task we are part of. This is passed by pointer, but Path is not taking ownership of the subject object, which must continue to exist until the Path object is destroyed.
pathThe valid DITS path to be used.