orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
tracermon/networkthread.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 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 NETWORK_HANDLER_H 00012 #define NETWORK_HANDLER_H 00013 00014 #include <orca/tracer.h> 00015 #include <gbxsickacfr/gbxiceutilacfr/safethread.h> 00016 #include <orcaice/context.h> 00017 #include <hydroiceutil/eventqueue.h> 00018 #include "user.h" 00019 #include "network.h" 00020 00021 namespace tracermon 00022 { 00023 00024 // class MainThread : public Network 00025 class MainThread : public gbxsickacfr::gbxiceutilacfr::SafeThread, public Network //, virtual public orca::TracerConsumer 00026 { 00027 public: 00028 00029 MainThread( User* user, 00030 const orcaice::Context & context ); 00031 virtual ~MainThread(); 00032 00033 // from SafeThread 00034 virtual void walk(); 00035 00036 // from Network 00037 virtual void setVerbosityLevel( int error, int warn, int info, int debug ); 00038 00039 // from consumer 00040 // virtual void setData(const orca::TracerData& data, const Ice::Current&); 00041 00042 private: 00043 00044 User* user_; 00045 hydroiceutil::EventQueuePtr events_; 00046 00047 orcaice::Context context_; 00048 00049 orca::TracerPrx tracerPrx_; 00050 00051 void setRemoteVerbosity( int error, int warn, int info, int debug ); 00052 00053 }; 00054 00055 } // namespace 00056 00057 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)