/* @(#)dtkDistributedCommunicatorStatus.cpp ---
 *
 * Author: <NAME>
 * Copyright (C) 2013 - <NAME>, Inria.
 * Created: 2013/04/30 09:25:26
 */

/* Commentary:
 *
 */

/* Change log:
 *
 */

#include "dtkDistributedCommunicatorStatus.h"

class dtkDistributedCommunicatorStatusPrivate
{

public:
    int       tag;
    qlonglong  count;
    qint32 source;
    int     error;

};

dtkDistributedCommunicatorStatus::dtkDistributedCommunicatorStatus(void) : d(new dtkDistributedCommunicatorStatusPrivate)
{
    d->tag    = 0;
    d->count  = -1;
    d->source = -1;
    d->error  = 0;

}

dtkDistributedCommunicatorStatus::~dtkDistributedCommunicatorStatus(void)
{
    delete d;

    d = NULL;
}

dtkDistributedCommunicatorStatus::dtkDistributedCommunicatorStatus(const dtkDistributedCommunicatorStatus& other)
{
    d->tag    = other.tag();
    d->count  = other.count();
    d->source = other.source();
    d->error  = other.error();
}

dtkDistributedCommunicatorStatus& dtkDistributedCommunicatorStatus::operator = (const dtkDistributedCommunicatorStatus& other)
{
    return *this;
}


qlonglong dtkDistributedCommunicatorStatus::count(void) const
{
    return d->count;
}

qint32 dtkDistributedCommunicatorStatus::source(void) const
{
    return d->source;
}

int dtkDistributedCommunicatorStatus::error(void) const
{
    return d->error;
}

int dtkDistributedCommunicatorStatus::tag(void) const
{
    return d->tag;
}

void dtkDistributedCommunicatorStatus::setTag(int tag)
{
    d->tag = tag;
}

void dtkDistributedCommunicatorStatus::setCount(qlonglong count)
{
    d->count = count;
}

void dtkDistributedCommunicatorStatus::setSource(qint32 source)
{
    d->source = source;
}

void dtkDistributedCommunicatorStatus::setError(qint32 error)
{
    d->error = error;
}

