* Loads the contents of all the rule files in the given directory. * @param dirname The name of an existing directory containing rule files. */
| 501 | * @param dirname The name of an existing directory containing rule files. |
| 502 | */ |
| 503 | void Ruleset::loadFiles(const std::string &dirname) |
| 504 | { |
| 505 | std::vector<std::string> names = CrossPlatform::getFolderContents(dirname, "rul"); |
| 506 | |
| 507 | for (std::vector<std::string>::iterator i = names.begin(); i != names.end(); ++i) |
| 508 | { |
| 509 | loadFile(dirname + *i); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | /** |
| 514 | * Loads a rule element, adding/removing from vectors as necessary. |
nothing calls this directly
no test coverage detected