OpenMAMA C++ API
MamaSymbolList.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MAMA_SYMBOL_LIST_CPP_H__
23 #define MAMA_SYMBOL_LIST_CPP_H__
24 
25 #include <mama/mamacpp.h>
28 
29 namespace Wombat
30 {
31 
41  class MAMACPPExpDLL MamaSymbolList
42  {
43  public:
44 
45  MamaSymbolList ();
46  virtual ~MamaSymbolList ();
47 
55  void addMembershipHandler (MamaSymbolListMembershipHandler* handler);
56 
63  void addMember (MamaSymbolListMember* member);
64 
74  MamaSymbolListMember* findMember (const char* symbol,
75  const char * source,
76  mamaTransport transport);
77 
88  MamaSymbolListMember* removeMember (const char* symbol,
89  const char* source,
90  mamaTransport transport);
91 
98  void removeMember (MamaSymbolListMember& member);
99 
105  void removeMemberAll (void);
106 
110  void clear ();
111 
115  void dump ();
116 
120  bool empty () const;
121 
125  mama_size_t size () const;
126 
132  void setClosure (void* closure);
133 
139  void* getClosure () const;
140 
148  void iterate (MamaSymbolListIteratorHandler& handler,
149  void* iterateClosure = NULL);
150 
151 
156  mamaSymbolList getCValue ();
157 
162  const mamaSymbolList getCValue () const;
163 
164  struct MamaSymbolListImpl;
165  MamaSymbolListImpl* myPimpl;
166 
167  protected:
168  mamaSymbolList myList;
169  };
170 
171 } // namespace Wombat
172 
173 #endif // MAMA_SYMBOL_LIST_CPP_H__
mamaSymbolList myList
Definition: MamaSymbolList.h:168
MamaSymbolListImpl * myPimpl
Definition: MamaSymbolList.h:164
The MamaSymbolListIteratorHandler interface.
Definition: MamaSymbolListHandlerTypes.h:38
Definition: MamaConnection.h:29
The MamaSymbolListMember class represents the information about the symbol list member.
Definition: MamaSymbolListMember.h:39
MamaSymbolList manages a list of MAMA symbols and related attributes.
Definition: MamaSymbolList.h:41
The MamaSymbolListMembershipHandler interface.
Definition: MamaSymbolListHandlerTypes.h:71