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
|
application.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 ORCAICE_APPLICATION_H 00012 #define ORCAICE_APPLICATION_H 00013 00014 #include <Ice/Ice.h> 00015 00016 #include <orcaice/iceapplication.h> 00017 00018 namespace orcaice 00019 { 00020 00021 class Component; 00022 00039 class Application : public orcaice::IceApplication 00040 { 00041 public: 00042 00057 Application( orcaice::Component &component, bool installCtrlCHandler=true ); 00058 ~Application(); 00059 00063 virtual int main(int, char*[]); 00064 00065 // 00066 // Implements the run function from Ice::Application 00067 // Not part of OrcaIce public API. 00068 // 00069 virtual int run(int, char*[]); 00070 00071 private: 00072 00073 // By convention there is exactly one adapter per component and, therefore, per application 00074 // Keep the pointer to it here, so it does not get destroyed too soon. 00075 Ice::ObjectAdapterPtr adapter_; 00076 00077 // An application contains only one Component. 00078 orcaice::Component &component_; 00079 }; 00080 00081 } // namespace 00082 00083 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)