OpenMAMA C++ API
Wombat::MamaTransportMap Class Reference

#include <MamaTransportMap.h>

Static Public Member Functions

static MamaTransportfindOrCreate (const char *transportName, const mamaBridge bridge)
 Find the transport by name. More...
 
static MamaTransportfind (const char *transportName, const mamaBridge bridge)
 Find the transport by name. More...
 

Member Function Documentation

§ findOrCreate()

static MamaTransport* Wombat::MamaTransportMap::findOrCreate ( const char *  transportName,
const mamaBridge  bridge 
)
static

Find the transport by name.

If no transport by the given name has been requested before, a new instance of a MamaTransport is created using the bridge specified. This method will create exactly one MamaTransport object instance for each name passed.

§ find()

static MamaTransport* Wombat::MamaTransportMap::find ( const char *  transportName,
const mamaBridge  bridge 
)
static

Find the transport by name.

If no transport by the given name exists, the default transport is returned.