////////////////////////////////////////////////////////////////////////// RulePointAlreadyDefined -- returns true if the given name was already used as a start or stop point //////////////////////////////////////////////////////////////////////////
| 111 | // as a start or stop point |
| 112 | /////////////////////////////////////////////////////////////////////////////// |
| 113 | bool cGenreParseInfo::RulePointAlreadyDefined(const cFCOName& fcoName) |
| 114 | { |
| 115 | bool fFound = false; |
| 116 | |
| 117 | // check start points |
| 118 | for (RuleListType::iterator i = mRuleList.begin(); i != mRuleList.end(); ++i) |
| 119 | { |
| 120 | if ((*i)->GetName() == fcoName) |
| 121 | fFound = true; |
| 122 | } |
| 123 | |
| 124 | // check stop points |
| 125 | if (!fFound) |
| 126 | { |
| 127 | for (StopListType::iterator j = mStopList.begin(); j != mStopList.end(); ++j) |
| 128 | { |
| 129 | if (*j == fcoName) |
| 130 | fFound = true; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | return (fFound); |
| 135 | } |
| 136 | |
| 137 | |
| 138 | /////////////////////////////////////////////////////////////////////////////// |
no test coverage detected