User Manual, Developers Guide and API Documentation

wns::probe::bus::Context Class Reference

#include <probe/bus/Context.hpp>

Inheritance diagram for wns::probe::bus::Context:

Inheritance graph
[legend]
Collaboration diagram for wns::probe::bus::Context:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Context ()
virtual int getInt (const std::string &key) const
 get integer value stored under 'key'
virtual std::string getString (const std::string &key) const
 get string value stored under 'key'
virtual void insert (const std::string &key, const std::string &)
virtual void insert (const std::string &key, int value)
virtual void insertInt (const std::string &key, int value)
 inserts an integer value under the given key (thereby checking that no duplicates exist)
virtual void insertString (const std::string &key, const std::string &value)
 inserts a string value under the given key (thereby checking that no duplicates exist)
virtual bool isInt (const std::string &key) const
 Test if value stored under 'key' is of type integer.
virtual bool isString (const std::string &key) const
 Test if value stored under 'key' is of type integer.
virtual bool knows (const std::string &key) const
 returns whether an element with the given key exists in the Context
 ~Context ()

Private Member Functions

virtual std::string doToString () const
 Overload to customize the representation of your class.

Private Attributes

wns::pyconfig::Object pyDict_

Friends

class PythonProbeBus


Detailed Description

Definition at line 141 of file Context.hpp.


Constructor & Destructor Documentation

Context::Context (  ) 

Definition at line 37 of file Context.cpp.

Context::~Context (  ) 

Definition at line 45 of file Context.cpp.


Member Function Documentation

std::string Context::doToString (  )  const [private, virtual]

Implements wns::IOutputStreamable.

Definition at line 224 of file Context.cpp.

int Context::getInt ( const std::string &  key  )  const [virtual]

Implements wns::probe::bus::IContext.

Definition at line 147 of file Context.cpp.

std::string Context::getString ( const std::string &  key  )  const [virtual]

Implements wns::probe::bus::IContext.

Definition at line 195 of file Context.cpp.

void Context::insert ( const std::string &  key,
const std::string &  value 
) [virtual]

Implements wns::probe::bus::IContext.

Definition at line 60 of file Context.cpp.

void Context::insert ( const std::string &  key,
int  value 
) [virtual]

Implements wns::probe::bus::IContext.

Definition at line 54 of file Context.cpp.

void Context::insertInt ( const std::string &  key,
int  value 
) [virtual]

Implements wns::probe::bus::IContext.

Definition at line 66 of file Context.cpp.

void Context::insertString ( const std::string &  key,
const std::string &  value 
) [virtual]

Implements wns::probe::bus::IContext.

Definition at line 89 of file Context.cpp.

bool Context::isInt ( const std::string &  key  )  const [virtual]

Implements wns::probe::bus::IContext.

Definition at line 128 of file Context.cpp.

bool Context::isString ( const std::string &  key  )  const [virtual]

Implements wns::probe::bus::IContext.

Definition at line 176 of file Context.cpp.

bool Context::knows ( const std::string &  key  )  const [virtual]

Implements wns::probe::bus::IContext.

Definition at line 112 of file Context.cpp.


Friends And Related Function Documentation

friend class PythonProbeBus [friend]

Definition at line 145 of file Context.hpp.


Member Data Documentation

Definition at line 182 of file Context.hpp.


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

Generated on Sun May 27 03:33:01 2012 for openWNS by  doxygen 1.5.5