observe updates
Fork of mbedConnectorInterface by
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:
-
logger input 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:
-
key input the key for the new pointer instance input 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:
-
key input 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:
-
logger input the logger instance
Definition at line 101 of file InstancePointerTable.cpp.
Generated on Wed Jul 13 2022 02:11:49 by 1.7.2