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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

application.h

00001 /*
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 
00059     //
00060     // Reimplements one of the main functions from Ice::Application
00061     //
00062     virtual int main(int, char*[]);
00063 
00064     //
00065     // Implements the run function from Ice::Application
00066     // Not part of OrcaIce public API.
00067     //
00068     virtual int run(int, char*[]);
00069 
00070 private:
00071 
00072     // By convention there is exactly one adapter per component and, therefore, per application
00073     // Keep the pointer to it here, so it does not get destroyed too soon.
00074     Ice::ObjectAdapterPtr   adapter_;
00075 
00076     // An application contains only one Component.
00077     orcaice::Component &component_;
00078 };
00079 
00080 } // namespace
00081 
00082 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5