INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
componentmonitor.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef COMPONENT_MONITOR 00012 #define COMPONENT_MONITOR 00013 00014 #include <hydroiceutil/jobqueue.h> 00015 00016 #include <orca/systemstatus.h> 00017 #include "statusconsumerImpl.h" 00018 00019 using namespace std; 00020 00021 namespace systemstatus { 00022 00023 // 00024 // Monitors individual component's status interface 00025 // Wraps up the StatusConsumer interface 00026 // 00027 // Author: Tobias Kaupp 00028 // 00029 class ComponentMonitor 00030 { 00031 public: 00032 ComponentMonitor( const orca::FQComponentName& compName, 00033 hydroiceutil::JobQueuePtr jobQueue, 00034 const orcaice::Context &context ); 00035 00036 // Get the current component status 00037 orca::EstimatedComponentStatus getComponentStatus(); 00038 00039 private: 00040 StatusConsumerImplPtr statusConsumer_; 00041 00042 orca::FQComponentName compName_; 00043 hydroiceutil::JobQueuePtr jobQueue_; 00044 orcaice::Context context_; 00045 }; 00046 00047 } 00048 00049 #endif 00050 |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)