view host/Rule.cpp @ 7:b30fcffc5000

* Better organisation of action classes; support for AND-type rules
author cannam
date Mon, 27 Nov 2006 11:03:52 +0000
parents
children 10715d2b3069
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */

#include "Rule.h"

Rule::~Rule()
{
    delete m_action;
}

void
Rule::addCondition(Condition condition)
{
    m_conditions.push_back(condition);
}

void
Rule::setAction(Action *action)
{
    delete m_action;
    m_action = action;
}