Name | |
---|---|
enum | mamaSourceState_ { MAMA_SOURCE_STATE_OFF = 0, MAMA_SOURCE_STATE_OK = 1, MAMA_SOURCE_STATE_UNKNOWN = 99} |
typedef enum mamaSourceState_ | mamaSourceState |
Name | |
---|---|
MAMAExpDLL mama_status | mamaSource_create(mamaSource * source) |
MAMAExpDLL mama_status | mamaSource_destroy(mamaSource source) |
MAMAExpDLL mama_status | mamaSource_clear(mamaSource source) |
MAMAExpDLL mama_status | mamaSource_setId(mamaSource source, const char * id) |
MAMAExpDLL mama_status | mamaSource_setMappedId(mamaSource source, const char * id) |
MAMAExpDLL mama_status | mamaSource_setDisplayId(mamaSource source, const char * id) |
MAMAExpDLL mama_status | mamaSource_setQuality(mamaSource source, mamaQuality quality) |
MAMAExpDLL mama_status | mamaSource_setState(mamaSource source, mamaSourceState quality) |
MAMAExpDLL mama_status | mamaSource_setParent(mamaSource source, mamaSource parent) |
MAMAExpDLL mama_status | mamaSource_setSymbolNamespace(mamaSource source, const char * symbolNamespace) |
MAMAExpDLL mama_status | mamaSource_setTransportName(mamaSource source, const char * transportName) |
MAMAExpDLL mama_status | mamaSource_setTransport(mamaSource source, mamaTransport transport) |
MAMAExpDLL mama_status | mamaSource_setSymbology(mamaSource source, mamaSymbology symbology) |
MAMAExpDLL mama_status | mamaSource_getId(const mamaSource source, const char ** id) |
MAMAExpDLL mama_status | mamaSource_getMappedId(const mamaSource source, const char ** id) |
MAMAExpDLL mama_status | mamaSource_getDisplayId(const mamaSource source, const char ** id) |
MAMAExpDLL mama_status | mamaSource_getQuality(const mamaSource source, mamaQuality * quality) |
MAMAExpDLL mama_status | mamaSource_getState(const mamaSource source, mamaSourceState * state) |
MAMAExpDLL const char * | mamaSource_getStateAsString(const mamaSource source) |
MAMAExpDLL mama_status | mamaSource_getParent(const mamaSource source, mamaSource * parent) |
MAMAExpDLL mama_status | mamaSource_getSymbolNamespace(const mamaSource source, const char ** symbolNamespace) |
MAMAExpDLL mama_status | mamaSource_getTransportName(const mamaSource source, const char ** transportName) |
MAMAExpDLL mama_status | mamaSource_getTransport(const mamaSource source, mamaTransport * transport) |
MAMAExpDLL mama_status | mamaSource_getSymbology(const mamaSource source, mamaSymbology * symbology) |
MAMAExpDLL mama_status | mamaSource_getSubSourceManager(const mamaSource source, mamaSourceManager * subSourceManager) |
Enumerator | Value | Description |
---|---|---|
MAMA_SOURCE_STATE_OFF | 0 | |
MAMA_SOURCE_STATE_OK | 1 | |
MAMA_SOURCE_STATE_UNKNOWN | 99 |
typedef enum mamaSourceState_ mamaSourceState;
MAMAExpDLL mama_status mamaSource_create(
mamaSource * source
)
Parameters:
Create a mamaSource object.
MAMAExpDLL mama_status mamaSource_destroy(
mamaSource source
)
Parameters:
Destroy a mamaSource object.
MAMAExpDLL mama_status mamaSource_clear(
mamaSource source
)
Parameters:
Clear a mamaSource object.
MAMAExpDLL mama_status mamaSource_setId(
mamaSource source,
const char * id
)
Parameters:
Set the ID of a mamaSource object.
MAMAExpDLL mama_status mamaSource_setMappedId(
mamaSource source,
const char * id
)
Parameters:
Set the mapped ID of a mamaSource object. The mapped ID is the ID that the parent source manager has mapped this source as.
MAMAExpDLL mama_status mamaSource_setDisplayId(
mamaSource source,
const char * id
)
Parameters:
Set the display ID of a mamaSource object.
MAMAExpDLL mama_status mamaSource_setQuality(
mamaSource source,
mamaQuality quality
)
Parameters:
Set the quality of a mamaSource object.
MAMAExpDLL mama_status mamaSource_setState(
mamaSource source,
mamaSourceState quality
)
Parameters:
Set the state of a mamaSource object.
MAMAExpDLL mama_status mamaSource_setParent(
mamaSource source,
mamaSource parent
)
Parameters:
See: mamaSource_getSubSourceManager()
Set the parent for a mamaSource object. The current mamaSource is added to the parents sub source manager.
MAMAExpDLL mama_status mamaSource_setSymbolNamespace(
mamaSource source,
const char * symbolNamespace
)
Parameters:
Set the publisher specific source name for this source. e.g. This could be “NASDAQ” for a UTP PAPA publisher.
MAMAExpDLL mama_status mamaSource_setTransportName(
mamaSource source,
const char * transportName
)
Parameters:
Set the name of the mamaTransport on which this describes a valid source of data.
MAMAExpDLL mama_status mamaSource_setTransport(
mamaSource source,
mamaTransport transport
)
Parameters:
Associate a mamaTransport object with the source.
MAMAExpDLL mama_status mamaSource_setSymbology(
mamaSource source,
mamaSymbology symbology
)
Parameters:
Associate a mamaSymbology object with the source.
MAMAExpDLL mama_status mamaSource_getId(
const mamaSource source,
const char ** id
)
Parameters:
Get the ID of a mamaSource object.
MAMAExpDLL mama_status mamaSource_getMappedId(
const mamaSource source,
const char ** id
)
Parameters:
Get the mapped ID of a mamaSource object.
MAMAExpDLL mama_status mamaSource_getDisplayId(
const mamaSource source,
const char ** id
)
Parameters:
Get the display ID of a mamaSource object.
MAMAExpDLL mama_status mamaSource_getQuality(
const mamaSource source,
mamaQuality * quality
)
Parameters:
Get the quality of a mamaSource object.
MAMAExpDLL mama_status mamaSource_getState(
const mamaSource source,
mamaSourceState * state
)
Parameters:
Get the state of a mamaSource object.
MAMAExpDLL const char * mamaSource_getStateAsString(
const mamaSource source
)
MAMAExpDLL mama_status mamaSource_getParent(
const mamaSource source,
mamaSource * parent
)
Parameters:
Get the parent source for a mamaSource object.
MAMAExpDLL mama_status mamaSource_getSymbolNamespace(
const mamaSource source,
const char ** symbolNamespace
)
Parameters:
Get the source name for the publisher which this mamaSource represents.
MAMAExpDLL mama_status mamaSource_getTransportName(
const mamaSource source,
const char ** transportName
)
Parameters:
Get the name of the mamaTransport on which this source is valid.
MAMAExpDLL mama_status mamaSource_getTransport(
const mamaSource source,
mamaTransport * transport
)
Parameters:
Get the mamaTransport associated with this source.
MAMAExpDLL mama_status mamaSource_getSymbology(
const mamaSource source,
mamaSymbology * symbology
)
Parameters:
Get the mamaSymbology associated with this source.
MAMAExpDLL mama_status mamaSource_getSubSourceManager(
const mamaSource source,
mamaSourceManager * subSourceManager
)
Parameters:
A mamaSource can have sub-sources. These sub sources are maintained by a mamaSourceManager within the mamaSource.
/* $Id$
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef MamaSourceH__
#define MamaSourceH__
#include "mama/config.h"
#include "mama/status.h"
#include "mama/sourceman.h"
#include "mama/types.h"
#include "mama/quality.h"
#if defined(__cplusplus)
extern "C" {
#endif
typedef enum mamaSourceState_
{
MAMA_SOURCE_STATE_OFF = 0,
MAMA_SOURCE_STATE_OK = 1,
MAMA_SOURCE_STATE_UNKNOWN = 99
} mamaSourceState;
MAMAExpDLL
extern mama_status
mamaSource_create (mamaSource* source);
MAMAExpDLL
extern mama_status
mamaSource_destroy (mamaSource source);
MAMAExpDLL
extern mama_status
mamaSource_clear (mamaSource source);
MAMAExpDLL
extern mama_status
mamaSource_setId (mamaSource source,
const char* id);
MAMAExpDLL
extern mama_status
mamaSource_setMappedId (mamaSource source,
const char* id);
MAMAExpDLL
extern mama_status
mamaSource_setDisplayId (mamaSource source,
const char* id);
MAMAExpDLL
extern mama_status
mamaSource_setQuality (mamaSource source,
mamaQuality quality);
MAMAExpDLL
extern mama_status
mamaSource_setState (mamaSource source,
mamaSourceState quality);
MAMAExpDLL
extern mama_status
mamaSource_setParent (mamaSource source,
mamaSource parent);
MAMAExpDLL
extern mama_status
mamaSource_setSymbolNamespace (mamaSource source,
const char* symbolNamespace);
MAMAExpDLL
extern mama_status
mamaSource_setTransportName (mamaSource source,
const char* transportName);
MAMAExpDLL
extern mama_status
mamaSource_setTransport (mamaSource source,
mamaTransport transport);
MAMAExpDLL
extern mama_status
mamaSource_setSymbology (mamaSource source,
mamaSymbology symbology);
MAMAExpDLL
extern mama_status
mamaSource_getId (const mamaSource source,
const char** id);
MAMAExpDLL
extern mama_status
mamaSource_getMappedId (const mamaSource source,
const char** id);
MAMAExpDLL
extern mama_status
mamaSource_getDisplayId (const mamaSource source,
const char** id);
MAMAExpDLL
extern mama_status
mamaSource_getQuality (const mamaSource source,
mamaQuality* quality);
MAMAExpDLL
extern mama_status
mamaSource_getState (const mamaSource source,
mamaSourceState* state);
/*
Get the stringified representation of the source state.
*/
MAMAExpDLL
extern const char*
mamaSource_getStateAsString (const mamaSource source);
MAMAExpDLL
extern mama_status
mamaSource_getParent (const mamaSource source,
mamaSource* parent);
MAMAExpDLL
extern mama_status
mamaSource_getSymbolNamespace (const mamaSource source,
const char** symbolNamespace);
MAMAExpDLL
extern mama_status
mamaSource_getTransportName (const mamaSource source,
const char** transportName);
MAMAExpDLL
extern mama_status
mamaSource_getTransport (const mamaSource source,
mamaTransport* transport);
MAMAExpDLL
extern mama_status
mamaSource_getSymbology (const mamaSource source,
mamaSymbology* symbology);
MAMAExpDLL
extern mama_status
mamaSource_getSubSourceManager (const mamaSource source,
mamaSourceManager* subSourceManager);
#if defined(__cplusplus)
}
#endif
#endif
Updated on 2023-03-31 at 15:29:16 +0100