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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

termiostreamdisplay.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2006-2007 Alexei Makarenko
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 IOSTREAM_DISPLAY_DRIVER_H
00012 #define IOSTREAM_DISPLAY_DRIVER_H
00013 
00014 #include <vector>
00015 #include <gbxsickacfr/gbxiceutilacfr/buffer.h>
00016 #include <gbxsickacfr/gbxiceutilacfr/store.h>
00017 #include <hydroiceutil/eventqueue.h>
00018 #include <orcaprobe/factory.h>
00019 
00020 #include <orcaprobe/abstractdisplay.h>
00021 #include <orcaprobe/ibrowser.h>
00022 
00023 namespace probe
00024 {
00025 
00026 class TermIostreamDisplay : public orcaprobe::AbstractDisplay
00027 {
00028 
00029 public:
00030     // probe factories here are simply queried for support
00031     TermIostreamDisplay( const std::vector<std::string> & supportedInterfaces );
00032     virtual ~TermIostreamDisplay();
00033 
00034     // from orcaprobe::AbstractDisplay
00035     // for consistency with the Qt driver, this function will hug the thread
00036     virtual void enable( orcaprobe::IBrowser* browser );
00037     virtual void showNetworkActivity( bool isActive );
00038     virtual void setRegistryData( const orcacm::RegistryHierarchicalData1 & data );
00039     virtual void setPlatformData( const orcacm::RegistryHierarchicalData2 & data );
00040     virtual void setComponentData( const orcacm::ComponentData & data );
00041     virtual void setInterfaceData( const orcacm::InterfaceData & data );
00042     virtual void setOperationData( const orcacm::OperationData & data );
00043     virtual void setFocus( orcaprobe::AbstractDisplay::FocusType focus );
00044 
00045 private:
00046 
00047     std::vector<std::string>    supportedInterfaces_;
00048     orcaprobe::IBrowser    *browser_;
00049 
00050     hydroiceutil::EventQueuePtr events_;
00051 
00052     // local data model
00053     orcacm::RegistryHierarchicalData1 registryData_;
00054     orcacm::RegistryHierarchicalData2 platformData_;
00055     orcacm::ComponentData componentData_;
00056     orcacm::InterfaceData interfaceData_;
00057     orcacm::OperationData operationData_;
00058     std::string filter_;
00059 
00060     // display functions
00061     void printNetworkActivity( bool isActive );
00062     void printRegistryData( const orcacm::RegistryHierarchicalData1& );
00063     void printPlatformData( const orcacm::RegistryHierarchicalData2& );
00064     void printComponentData( const orcacm::ComponentData& );
00065     void printInterfaceData( const orcacm::InterfaceData& );
00066     void printOperationData( const orcacm::OperationData& );
00067 
00068     // utilities
00069     void getUserInput( unsigned int optionCount );
00070 
00071 };
00072 
00073 } // namespace
00074 
00075 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5