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
28namespace FIX
29{
30void Group::addGroup( const Group& group )
31{
32 FieldMap::addGroup( group.field(), group );
33}
34
35void Group::replaceGroup( unsigned num, const FIX::Group& group )
36{
37 FieldMap::replaceGroup( num, group.field(), group );
38}
39
40Group& Group::getGroup( unsigned num, Group& group ) const throw( FieldNotFound )
41{
42 return static_cast < Group& > ( FieldMap::getGroup( num, group.field(), group ) );
43}
44
45void Group::removeGroup( unsigned num, const Group& group )
46{
47 FieldMap::removeGroup( num, group.field() );
48}
49
50void Group::removeGroup( const Group& group )
51{
53}
54
55bool Group::hasGroup( unsigned num, const Group& group )
56{
57 return FieldMap::hasGroup( num, group.field() );
58}
59
60bool Group::hasGroup( const Group& group )
61{
62 return FieldMap::hasGroup( group.field() );
63}
64}
void replaceGroup(int num, int tag, const FieldMap &group)
Replace a specific instance of a group.
Definition FieldMap.cpp:102
bool hasGroup(int tag) const
Check to see any instance of a group exists.
Definition FieldMap.cpp:168
void addGroup(int tag, const FieldMap &group, bool setCount=true)
Add a group.
Definition FieldMap.cpp:83
void removeGroup(int num, int tag)
Remove a specific instance of a group.
Definition FieldMap.cpp:111
FieldMap & getGroup(int num, int tag, FieldMap &group) const
Get a specific instance of a group.
Definition FieldMap.h:207
Base class for all FIX repeating groups.
Definition Group.h:41
void replaceGroup(unsigned num, const Group &group)
Definition Group.cpp:35
void addGroup(const Group &group)
Definition Group.cpp:30
void removeGroup(unsigned num, const Group &group)
Definition Group.cpp:45
Group & getGroup(unsigned num, Group &group) const
Definition Group.cpp:40
bool hasGroup(const Group &group)
Definition Group.cpp:60
int field() const
Definition Group.h:56
Field not found inside a message.
Definition Exceptions.h:58

Generated on Mon Oct 14 2024 06:04:44 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001