MamaSymbolMapFile is a concrete implementation of a symbology map.
More...
#include <MamaSymbolMapFile.h>
MamaSymbolMapFile is a concrete implementation of a symbology map.
It can load a filename and expects the contents of that file to contain two columns of data, with the columns separated by white space. A matching symbol of the left column is mapped to the symbol in the right column. If the symbol does not match anything in the file (or the file cannot be found), then the original symbol is used (no mapping).
Wombat::MamaSymbolMapFile::MamaSymbolMapFile |
( |
| ) |
|
virtual Wombat::MamaSymbolMapFile::~MamaSymbolMapFile |
( |
| ) |
|
|
virtual |
virtual mama_status Wombat::MamaSymbolMapFile::load |
( |
const char * |
mapFileName | ) |
|
|
virtual |
virtual void Wombat::MamaSymbolMapFile::addMap |
( |
const char * |
fromSymbol, |
|
|
const char * |
toSymbol |
|
) |
| |
|
virtual |
virtual bool Wombat::MamaSymbolMapFile::map |
( |
char * |
result, |
|
|
const char * |
symbol, |
|
|
size_t |
maxLen |
|
) |
| const |
|
virtual |
Map a symbol.
The result is the feed side symbol used to actually subscribe to in the infrastructure. The return value indicates whether or not a symbology mapping existed for the given symbol (True = yes, False = No).
Implements Wombat::MamaSymbolMap.
virtual bool Wombat::MamaSymbolMapFile::revMap |
( |
char * |
result, |
|
|
const char * |
symbol, |
|
|
size_t |
maxLen |
|
) |
| const |
|
virtual |
Map a feed side symbol.
This is reverse of the natural mapping schema and the result in this case is the corresponding client side symbol. The return value indicates whether or not a symbology mapping existed for the given symbol (True = yes, False = No).
Implements Wombat::MamaSymbolMap.
The documentation for this class was generated from the following file: