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
|
pingerI.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks 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 #ifndef __pingerI_h__ 00011 #define __pingerI_h__ 00012 00013 // include defnition of Ice runtime 00014 #include <Ice/Ice.h> 00015 00016 // include provided interfaces 00017 #include <orca/pinger.h> 00018 #include <orcaice/context.h> 00019 00020 namespace hydroping { 00021 class Pinger; 00022 } 00023 00024 namespace pingserver { 00025 00026 class PingerI : public orca::Pinger 00027 { 00028 public: 00029 00030 PingerI( const std::string &ifaceTag, 00031 const orcaice::Context &context ); 00032 ~PingerI(); 00033 00034 // Remote calls, defined in orca::Pinger 00035 virtual double ping( const std::string &host, const Ice::Current& ); 00036 00037 // local calls 00038 void initInterface(); 00039 00040 private: 00041 00042 // Does the work 00043 hydroping::Pinger *pinger_; 00044 00045 std::string ifaceTag_; 00046 orcaice::Context context_; 00047 }; 00048 00049 typedef IceUtil::Handle<PingerI> PingerIPtr; 00050 00051 } 00052 00053 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)