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

# /Users/fpy/titan-1-5-MBARI/Mers/Interfaces/Stub/Stub/TaskStub.h

    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 #ifndef MERS_INTERFACES_STUB_TASK_STUB_HEADERFILE
    00015 #define MERS_INTERFACES_STUB_TASK_STUB_HEADERFILE
    00016
    00017 #ifdef _MSC_VER
    00018 #pragma warning(disable:4786)
    00019 #endif
    00020
    00021 #include <Mers/Interfaces/Task.h>
    00022
    00023 namespace log4cplus {
    00024         class Logger;
    00025 }
    00026
    00027 namespace Mers {
    00028
    00029         namespace Utils {
    00030                 namespace Lang {
    00031                         class String;
    00032                 }
    00033         }
    00034
    00035   namespace Interfaces {
    00036                 namespace Stub {
    00037
    00038                         class TaskStub : public Mers::Interfaces::Task
    00039                         {
    00040                         public:
    00041
    00043
    00044                                 // Constructors
    00045                                 TaskStub( const Mers::Utils::Lang::String &taskName );
    00046                                 TaskStub( const Mers::Utils::Lang::String &taskName, std::vector< const Mers::Utils::Lang::String * > const &parameters );
    00047
    00048                                 // Start the task
    00049                                 virtual bool Start( void );
    00050
    00051                                 // Stop the task
    00052                                 virtual bool Stop( void );
    00053
    00054                                 // Test if the task is done
    00055                                 virtual bool Completed( void );
    00056
    00057                                 // Test if the task has failed
    00058                                 virtual bool Failed( void );
    00059
    00060                         private:
    00061                                 static log4cplus::Logger logger;
    00062                                 bool complete;
    00063                         };
    00064
    00065                 } // Stub
    00066   } // Interfaces
    00067 } // Mers
    00068
    00069 #endif  // MERS_INTERFACES_STUB_TASK_STUB_HEADERFILE