Group.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (c) 2001-2014
3 **
4 ** This file is part of the QuickFIX FIX Engine
5 **
6 ** This file may be distributed under the terms of the quickfixengine.org
7 ** license as defined by quickfixengine.org and appearing in the file
8 ** LICENSE included in the packaging of this file.
9 **
10 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12 **
13 ** See http://www.quickfixengine.org/LICENSE for licensing information.
14 **
15 ** Contact ask@quickfixengine.org if any conditions of this licensing are
16 ** not clear to you.
17 **
18 ****************************************************************************/
19 
20 #ifdef _MSC_VER
21 #include "stdafx.h"
22 #else
23 #include "config.h"
24 #endif
25 
26 #include "Group.h"
27 
28 namespace FIX
29 {
30 void Group::addGroup( const Group& group )
31 {
32  FieldMap::addGroup( group.field(), group );
33 }
34 
35 void Group::replaceGroup( unsigned num, const FIX::Group& group )
36 {
37  FieldMap::replaceGroup( num, group.field(), group );
38 }
39 
40 Group& Group::getGroup( unsigned num, Group& group ) const throw( FieldNotFound )
41 {
42  return static_cast < Group& > ( FieldMap::getGroup( num, group.field(), group ) );
43 }
44 
45 void Group::removeGroup( unsigned num, const Group& group )
46 {
47  FieldMap::removeGroup( num, group.field() );
48 }
49 
50 void Group::removeGroup( const Group& group )
51 {
53 }
54 
55 bool Group::hasGroup( unsigned num, const Group& group )
56 {
57  return FieldMap::hasGroup( num, group.field() );
58 }
59 
60 bool Group::hasGroup( const Group& group )
61 {
62  return FieldMap::hasGroup( group.field() );
63 }
64 }
FIX::FieldMap::hasGroup
bool hasGroup(int tag) const
Check to see any instance of a group exists.
Definition: FieldMap.cpp:185
FIX::Group::replaceGroup
void replaceGroup(unsigned num, const Group &group)
Definition: Group.cpp:52
FIX::Group::field
int field() const
Definition: Group.h:90
FIX::FieldMap::getGroup
FieldMap & getGroup(int num, int tag, FieldMap &group) const
Get a specific instance of a group.
Definition: FieldMap.h:241
FIX::Group::addGroup
void addGroup(const Group &group)
Definition: Group.cpp:47
FIX::FieldMap::replaceGroup
void replaceGroup(int num, int tag, const FieldMap &group)
Replace a specific instance of a group.
Definition: FieldMap.cpp:119
FIX
Definition: Acceptor.cpp:34
FIX::Group::hasGroup
bool hasGroup(const Group &group)
Definition: Group.cpp:77
FIX::Group::removeGroup
void removeGroup(unsigned num, const Group &group)
Definition: Group.cpp:62
FIX::Group
Base class for all FIX repeating groups.
Definition: Group.h:57
FIX::FieldMap::addGroup
void addGroup(int tag, const FieldMap &group, bool setCount=true)
Add a group.
Definition: FieldMap.cpp:100
FIX::FieldMap::removeGroup
void removeGroup(int num, int tag)
Remove a specific instance of a group.
Definition: FieldMap.cpp:128
FIX::Group::getGroup
Group & getGroup(unsigned num, Group &group) const
Definition: Group.cpp:57
Group.h

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001