User Manual, Developers Guide and API Documentation

dll::Layer2::ContextAgent Class Reference

ContextAgent concentrates context information from Members of the Layer2 or its internal FUN. More...

#include <Layer2.hpp>

Inheritance diagram for dll::Layer2::ContextAgent:

Inheritance graph
[legend]
Collaboration diagram for dll::Layer2::ContextAgent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool knows (const std::string &key)
void setContext (const std::string &key, int value)
void updateContext (const std::string &key, int value)

Private Types

typedef
wns::container::Registry
< std::string, int >
::const_iterator 
ContextIterator

Private Member Functions

virtual void doVisit (wns::probe::bus::IContext &) const
 Implementation of ContextProvider Interface.

Private Attributes

wns::container::Registry
< std::string, int
myContextInfo
 storage for context


Detailed Description

The said classes COULD theoretically register their own ContextProviders, but for the sake of simplicity I chose to gather context information here.

Definition at line 220 of file Layer2.hpp.


Member Typedef Documentation

typedef wns::container::Registry<std::string, int>::const_iterator dll::Layer2::ContextAgent::ContextIterator [private]

Definition at line 227 of file Layer2.hpp.


Member Function Documentation

void Layer2::ContextAgent::doVisit ( wns::probe::bus::IContext context  )  const [private, virtual]

Implements wns::probe::bus::ContextProvider.

Definition at line 197 of file Layer2.cpp.

bool dll::Layer2::ContextAgent::knows ( const std::string &  key  )  [inline]

Definition at line 241 of file Layer2.hpp.

void dll::Layer2::ContextAgent::setContext ( const std::string &  key,
int  value 
) [inline]

Definition at line 236 of file Layer2.hpp.

void dll::Layer2::ContextAgent::updateContext ( const std::string &  key,
int  value 
) [inline]

Definition at line 230 of file Layer2.hpp.


Member Data Documentation

Definition at line 226 of file Layer2.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:30 2012 for openWNS by  doxygen 1.5.5