#include <MamaSymbolMapFile.h>
Inherits from Wombat::MamaSymbolMap
Name | |
---|---|
MamaSymbolMapFile() | |
virtual | ~MamaSymbolMapFile() |
virtual mama_status | load(const char * mapFileName) |
virtual void | addMap(const char * fromSymbol, const char * toSymbol) |
virtual bool | map(char * result, const char * symbol, size_t maxLen) const |
virtual bool | revMap(char * result, const char * symbol, size_t maxLen) const |
Public Functions inherited from Wombat::MamaSymbolMap
Name | |
---|---|
virtual | ~MamaSymbolMap(void ) |
class Wombat::MamaSymbolMapFile;
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).
MamaSymbolMapFile()
virtual ~MamaSymbolMapFile()
virtual mama_status load(
const char * mapFileName
)
virtual void addMap(
const char * fromSymbol,
const char * toSymbol
)
virtual bool map(
char * result,
const char * symbol,
size_t maxLen
) const
Reimplements: Wombat::MamaSymbolMap::map
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).
virtual bool revMap(
char * result,
const char * symbol,
size_t maxLen
) const
Reimplements: Wombat::MamaSymbolMap::revMap
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).
Updated on 2023-03-31 at 15:29:26 +0100