Mercurial > hg > vamp-live-host
annotate host/Rule.cpp @ 17:3cbd40805795 tip
Remove obsolete stuff from README
author | Chris Cannam |
---|---|
date | Tue, 03 Dec 2013 16:33:08 +0000 |
parents | df33703ace3b |
children |
rev | line source |
---|---|
cannam@7 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
cannam@7 | 2 |
cannam@7 | 3 #include "Rule.h" |
cannam@7 | 4 |
Chris@15 | 5 #include <iostream> |
Chris@15 | 6 using std::cerr; |
Chris@15 | 7 using std::endl; |
Chris@15 | 8 |
cannam@7 | 9 Rule::~Rule() |
cannam@7 | 10 { |
Chris@15 | 11 for (ActionList::const_iterator i = m_actions.begin(); i != m_actions.end(); ++i) { |
Chris@15 | 12 delete *i; |
cannam@9 | 13 } |
cannam@7 | 14 } |
cannam@7 | 15 |
cannam@7 | 16 void |
cannam@7 | 17 Rule::addCondition(Condition condition) |
cannam@7 | 18 { |
cannam@7 | 19 m_conditions.push_back(condition); |
cannam@7 | 20 } |
cannam@7 | 21 |
cannam@7 | 22 void |
cannam@9 | 23 Rule::addAction(Action *action) |
cannam@7 | 24 { |
cannam@9 | 25 m_actions.push_back(action); |
cannam@7 | 26 } |
cannam@7 | 27 |