OpenMAMA C++ API
MamaSymbolListHandlerTypes.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_HANDLER_TYPES_CPP_H__
23 #define MAMA_SYMBOL_LIST_HANDLER_TYPES_CPP_H__
24 
25 #include <mama/mamacpp.h>
26 
27 namespace Wombat
28 {
29  class MamaSymbolList;
30 
31 
38  class MAMACPPExpDLL MamaSymbolListIteratorHandler
39  {
40  public:
42 
50  virtual void onMember (MamaSymbolList& symbolList,
51  MamaSymbolListMember& member,
52  void* iterateClosure) = 0;
53 
60  virtual void onComplete (MamaSymbolList& symbolList,
61  void* iterateClosure) {}
62  };
63 
64 
72  {
73  public:
75 
87  virtual void onMemberAdd (MamaSymbolList& symbolList,
88  MamaSymbolListMember& member) = 0;
89 
101  virtual void onMemberRemove (MamaSymbolList& symbolList,
102  MamaSymbolListMember& member) = 0;
103 
109  virtual void onOrderChange (MamaSymbolList& symbolList) = 0;
110  };
111 
112 
119  {
120  public:
122 
128  virtual void onResort (MamaSymbolList* symbolList) = 0;
129  };
130 
131 } // namespace Wombat
132 #endif // MAMA_SYMBOL_LIST_HANDLER_CPP_H__
The MamaSymbolListIteratorHandler interface.
Definition: MamaSymbolListHandlerTypes.h:38
virtual void onComplete(MamaSymbolList &symbolList, void *iterateClosure)
Method invoked after all symbol list members have been iterated over.
Definition: MamaSymbolListHandlerTypes.h:60
Definition: MamaConnection.h:29
The MamaSymbolListResortHandler interface.
Definition: MamaSymbolListHandlerTypes.h:118
The MamaSymbolListMember class represents the information about the symbol list member.
Definition: MamaSymbolListMember.h:39
virtual ~MamaSymbolListResortHandler()
Definition: MamaSymbolListHandlerTypes.h:121
MamaSymbolList manages a list of MAMA symbols and related attributes.
Definition: MamaSymbolList.h:41
virtual ~MamaSymbolListIteratorHandler()
Definition: MamaSymbolListHandlerTypes.h:41
virtual ~MamaSymbolListMembershipHandler()
Definition: MamaSymbolListHandlerTypes.h:74
The MamaSymbolListMembershipHandler interface.
Definition: MamaSymbolListHandlerTypes.h:71