OpenMAMA C++ API
Wombat::MamaSymbolMap Class Referenceabstract

The MamaSymbolMap class provides the ability for MAMA to do client side symbology mapping. More...

#include <MamaSymbolMap.h>

Inheritance diagram for Wombat::MamaSymbolMap:
Wombat::MamaSymbolMapFile

Public Member Functions

virtual ~MamaSymbolMap (void)
 
virtual bool map (char *result, const char *symbol, size_t maxLen) const =0
 Map a symbol. More...
 
virtual bool revMap (char *result, const char *symbol, size_t maxLen) const =0
 Map a feed side symbol. More...
 

Detailed Description

The MamaSymbolMap class provides the ability for MAMA to do client side symbology mapping.

Subclasses of this class can provide custom symbology mapping. A MamaSymbolMap can be assigned to each MamaTransport.

Constructor & Destructor Documentation

§ ~MamaSymbolMap()

virtual Wombat::MamaSymbolMap::~MamaSymbolMap ( void  )
inlinevirtual

Member Function Documentation

§ map()

virtual bool Wombat::MamaSymbolMap::map ( char *  result,
const char *  symbol,
size_t  maxLen 
) const
pure 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).

Implemented in Wombat::MamaSymbolMapFile.

§ revMap()

virtual bool Wombat::MamaSymbolMap::revMap ( char *  result,
const char *  symbol,
size_t  maxLen 
) const
pure 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).

Implemented in Wombat::MamaSymbolMapFile.