Group.cpp
Go to the documentation of this file.
/****************************************************************************
** Copyright (c) 2001-2014
**
** This file is part of the QuickFIX FIX Engine
**
** This file may be distributed under the terms of the quickfixengine.org
** license as defined by quickfixengine.org and appearing in the file
** LICENSE included in the packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.quickfixengine.org/LICENSE for licensing information.
**
** Contact ask@quickfixengine.org if any conditions of this licensing are
** not clear to you.
**
****************************************************************************/
#ifdef _MSC_VER
#include "stdafx.h"
#else
#include "config.h"
#endif
#include "Group.h"
namespace FIX
{
void Group::addGroup( const Group& group )
{
FieldMap::addGroup( group.field(), group );
}
void Group::replaceGroup( unsigned num, const FIX::Group& group )
{
FieldMap::replaceGroup( num, group.field(), group );
}
Group& Group::getGroup( unsigned num, Group& group ) const throw( FieldNotFound )
{
return static_cast < Group& > ( FieldMap::getGroup( num, group.field(), group ) );
}
void Group::removeGroup( unsigned num, const Group& group )
{
FieldMap::removeGroup( num, group.field() );
}
void Group::removeGroup( const Group& group )
{
FieldMap::removeGroup( group.field() );
}
bool Group::hasGroup( unsigned num, const Group& group )
{
return FieldMap::hasGroup( num, group.field() );
}
bool Group::hasGroup( const Group& group )
{
return FieldMap::hasGroup( group.field() );
}
}
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