- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Interfaces/Stub/Stub/TaskFactoryStub.cpp

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #include "TaskFactoryStub.h"
    00015 #include "TaskStub.h"
    00016
    00017 #include <Mers/Interfaces/ExecutionInterfaceBase.h>
    00018
    00019 using Mers::Interfaces::Stub::TaskFactoryStub;
    00020 using Mers::Interfaces::ExecutionInterfaceBase;
    00021
    00022 ExecutionInterfaceBase::t_TaskSharedPointer
    00023 TaskFactoryStub::createTask( const t_TaskName &taskName )
    00024 {
    00025         ExecutionInterfaceBase::t_TaskSharedPointer sharedPointer( new TaskStub( taskName ) );
    00026         return sharedPointer;
    00027 }
    00028
    00029
    00030
    00031 ExecutionInterfaceBase::t_TaskSharedPointer
    00032 TaskFactoryStub::createTask( const t_TaskName &taskName, ::std::vector<const t_TaskParameter *> const &parameters )
    00033 {
    00034         ExecutionInterfaceBase::t_TaskSharedPointer sharedPointer( new TaskStub( taskName, parameters ) );
    00035         return sharedPointer;
    00036 }