mamaSource and mamaSourceManager


Mark Perkin <mark@...>
 

Hi,

Is there any documentation on the mamaSource and mamaSourceManager types. There is only scant mention of the former in the C and C++ guides and no mention of the latter. Also, the api documentation in either case isn't very informative.

thanks,

Mark


Glenn McClements <gmcclements@...>
 

Hi Mark, 

The auto-generated API documentation is in the Reference Manual below, but this doesn't give any more detail than is in the headers. 


http://www.openmama.org/sites/openmama.org/files/OpenMAMA%20C%20API%20Reference%20Manual_1.pdf


It looks like mamaSource section was missed in Dev Guide, the text is below and I've raised an issue for it but essentially it's a wrapper object for the transport and source name/namespace. The shipped examples show how to use it.


The mamaSourceManager is a simple factory/container class that may be useful to applications handling multiple sources. 


MAMA Source

A MAMA Source represents the information needed to find and use a set of data. Such information includes the MAMA Transport and Symbol Namespace and used by that source. Below shows how to create a MAMA Source, assuming that a Transport has already been createdn <>.


C:

mamaSource source = NULL; 

mamaSource_create (&source); 

mamaSource_setId (source, "SourceName"); 

mamaSource_setTransport (source, transport); 

mamaSource_setSymbolNamespace (source, "NAMESPACE"); 

/* Set other properties */


C++:

MamaSource* source = new MamaSource ("SourceName", transport, "NAMESPACE");

// Set other properties


Java/JNI:

MamaSource source = new MamaSource ("SourceName", transport,"NAMESPACE");

// Set other properties


C:

MamaSource source = new MamaSource ();

source.id = "SourceName"; 

source.transport = transport; 

source.symbolNamespace = "NAMESPACE";

// Set other properties



Regards,

Glenn 


From: Mark Perkin <mark@...>
Date: Thu, 7 Mar 2013 11:27:56 +0000
To: <openmama-users@...>
Subject: [Openmama-users] mamaSource and mamaSourceManager

Hi,

Is there any documentation on the mamaSource and mamaSourceManager types. There is only scant mention of the former in the C and C++ guides and no mention of the latter. Also, the api documentation in either case isn't very informative.

thanks,

Mark
_______________________________________________ Openmama-users mailing list Openmama-users@... https://lists.openmama.org/mailman/listinfo/openmama-users



Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.