/*
 * SPDX-FileCopyrightText: 2004 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#include <tango/client/GroupReplyList.h>

namespace Tango
{

bool GroupReplyList::has_failed() const
{
    return has_failed_m;
}

void GroupReplyList::reset()
{
    clear();
    has_failed_m = false;
}

void GroupReplyList::push_back(const GroupReply &r)
{
    if(r.has_failed())
    {
        has_failed_m = true;
    }
    Inherited::push_back(r);
}

GroupReplyList::GroupReplyList() :
    std::vector<GroupReply>(0)

{
    //-noop impl
}

GroupReplyList::~GroupReplyList() = default;

GroupReplyList::GroupReplyList(const GroupReplyList &) = default;
GroupReplyList &GroupReplyList::operator=(const GroupReplyList &) = default;

GroupReplyList::GroupReplyList(GroupReplyList &&) = default;
GroupReplyList &GroupReplyList::operator=(GroupReplyList &&) = default;

} // namespace Tango
