Classes Files

Wombat::MamaSymbolListFile

More…

#include <MamaSymbolListFile.h>

Inherits from Wombat::MamaSymbolList

Public Functions

  Name
  MamaSymbolListFile()
  ~MamaSymbolListFile()
void setFileName(const char * fileName)
void setBridge(const mamaBridge bridge)
void readFile()
void writeFile()
void setFileMonitor(double checkSeconds, MamaQueue * queue)

Additional inherited members

Public Functions inherited from Wombat::MamaSymbolList

  Name
  MamaSymbolList()
virtual ~MamaSymbolList()
void addMembershipHandler(MamaSymbolListMembershipHandler * handler)
void addMember(MamaSymbolListMember * member)
MamaSymbolListMember * findMember(const char * symbol, const char * source, mamaTransport transport)
MamaSymbolListMember * removeMember(const char * symbol, const char * source, mamaTransport transport)
void removeMember(MamaSymbolListMember & member)
void removeMemberAll(void )
void clear()
void dump()
bool empty() const
mama_size_t size() const
void setClosure(void * closure)
void * getClosure() const
void iterate(MamaSymbolListIteratorHandler & handler, void * iterateClosure =NULL)
mamaSymbolList getCValue()
const mamaSymbolList getCValue() const

Protected Attributes inherited from Wombat::MamaSymbolList

  Name
mamaSymbolList myList

Detailed Description

class Wombat::MamaSymbolListFile;

MamaSymbolListFile is a file based symbol list with the ability to detect external changes to the file. The file’s structure is as follows:

  • One symbol per line.
  • Whitespace-separated columns for the symbol, the source and the MAMA transport name.
  • The source and transport names are optional; if the transport name is present then so must be the source name. For example: IBM CTA default DIS CTA default MSFT NASDAQ default

Public Functions Documentation

function MamaSymbolListFile

MamaSymbolListFile()

function ~MamaSymbolListFile

~MamaSymbolListFile()

function setFileName

void setFileName(
    const char * fileName
)

Set the file name.

function setBridge

void setBridge(
    const mamaBridge bridge
)

Set the bridge to use for creating transports

function readFile

void readFile()

Read the contents of the file into the symbol list.

function writeFile

void writeFile()

Write the symbol list to the file.

function setFileMonitor

void setFileMonitor(
    double checkSeconds,
    MamaQueue * queue
)

Set a timer to check whether the file has changed its contents. If the contents have changed, various add/remove membership events may be applied to the MamaSymbolList.


Updated on 2023-03-31 at 15:29:25 +0100