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

 

         

interfacetypecounter.h

00001 #ifndef LOGPLAYER_INTERFACETYPECOUNTER_H
00002 #define LOGPLAYER_INTERFACETYPECOUNTER_H
00003 
00004 #include <map>
00005 #include <string>
00006 
00007 namespace logplayer {
00008 
00009 //
00010 // @brief Counts the number of instances of interfaces of a particular type.
00011 //
00012 // @author Alex Brooks
00013 //
00014 class InterfaceTypeCounter
00015 {
00016 
00017 public: 
00018 
00019     // Hands out an ID that's unique for the specified interface type
00020     // (and remembers that it's been handed out)
00021     int nextAvailableId( std::string interfaceType );
00022 
00023 private: 
00024 
00025     std::map< std::string, int > lastHandedOut_;
00026 
00027 };
00028 
00029 }
00030 
00031 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5