Go to the source code of this file.
◆ mamaSymbolMapFile
◆ mamaSymbolMapFile_addMap()
MAMAExpDLL void mamaSymbolMapFile_addMap |
( |
mamaSymbolMapFile |
fileMap, |
|
|
const char * |
fromSymbol, |
|
|
const char * |
toSymbol |
|
) |
| |
Add additional individual symbology mapping.
- Parameters
-
fileMap | Handle to the file-map to destroy. |
fromSymbol | The from symbol. |
toSymbol | The to symbol. |
◆ mamaSymbolMapFile_create()
Create a file-based symbol mapper.
Use mamaSymbolMapFile_load() to open the file. If the file exists, its contents should be a 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. when performing the mapping, if the symbol does not match anything in the file (or the file cannot be found), then the original symbol is used (i.e., no mapping).
- Parameters
-
fileMap | The initialized file-map handle. |
- Returns
- mama_status return value can be one of MAMA_STATUS_NOMEM MAMA_STATUS_OK
◆ mamaSymbolMapFile_destroy()
Destroy the file-based symbol mapper.
- Parameters
-
fileMap | Handle to the file-map to destroy. |
- Returns
- mama_status return value can be one of MAMA_STATUS_INVALID_ARG MAMA_STATUS_OK
◆ mamaSymbolMapFile_load()
(Re)Load the map for the file-based symbol mapper.
- Parameters
-
fileMap | Handle to the file-map to destroy. |
fileName | The name of the file containing symbols to map. |
- Returns
- mama_status return value can be one of MAMA_STATUS_INVALID_ARG MAMA_STATUS_OK
◆ mamaSymbolMapFile_map()
MAMAExpDLL int mamaSymbolMapFile_map |
( |
mamaSymbolMapFile |
fileMap, |
|
|
char * |
result, |
|
|
const char * |
symbol, |
|
|
size_t |
maxLen |
|
) |
| |
Perform a mapping from the file-based symbol mapper.
- Parameters
-
fileMap | Handle to the file-map. |
result | Returned "toSymbol" (feed side). |
symbol | "fromSymbol" (client side). |
maxLen | Max buffer length of result. |
- Returns
- 1 if a symbol could be mapped else 0.
◆ mamaSymbolMapFile_revMap()
MAMAExpDLL int mamaSymbolMapFile_revMap |
( |
mamaSymbolMapFile |
fileMap, |
|
|
char * |
result, |
|
|
const char * |
symbol, |
|
|
size_t |
maxLen |
|
) |
| |
Perform a reverse mapping from the file-based symbol mapper.
- Parameters
-
fileMap | Handle to the file-map. |
result | Returned "fromSymbol" (client side). |
symbol | "toSymbol" (feed side). |
maxLen | Max buffer length of result. |