observe updates

Fork of mbedConnectorInterface by Doug Anson

Embed: (wiki syntax)

« Back to documentation index

InstancePointerTable Class Reference

InstancePointerTable Class Reference

InstancePointerTable class. More...

#include <InstancePointerTable.h>

Public Member Functions

 InstancePointerTable (const Logger *logger=NULL)
 Default constructor.
virtual ~InstancePointerTable ()
 Destructor.
void add (string key, void *instance)
 Add pointer to the instance table.
void * get (string key)
 Get a instance pointer index by the name of the key.
void setLogger (const Logger *logger)
 Set the Logger instance.

Detailed Description

InstancePointerTable class.

Definition at line 43 of file InstancePointerTable.h.


Constructor & Destructor Documentation

InstancePointerTable ( const Logger logger = NULL )

Default constructor.

Parameters:
loggerinput the logger instance

Definition at line 26 of file InstancePointerTable.cpp.

~InstancePointerTable (  ) [virtual]

Destructor.

Definition at line 32 of file InstancePointerTable.cpp.


Member Function Documentation

void add ( string  key,
void *  instance 
)

Add pointer to the instance table.

Parameters:
keyinput the key for the new pointer
instanceinput the instance pointer to save

Definition at line 37 of file InstancePointerTable.cpp.

void * get ( string  key )

Get a instance pointer index by the name of the key.

Parameters:
keyinput the key to use for the lookup
Returns:
the instance pointer if found or NULL if not found

Definition at line 59 of file InstancePointerTable.cpp.

void setLogger ( const Logger logger )

Set the Logger instance.

Parameters:
loggerinput the logger instance

Definition at line 101 of file InstancePointerTable.cpp.