From 463d5c603ea95f478dff4b12fbca3c7dd05cc8b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Jan 2014 20:43:46 +0300 Subject: add ability to inlude config parts from subdirs for most dbs. --- src/resources/beingcommon.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/beingcommon.h') diff --git a/src/resources/beingcommon.h b/src/resources/beingcommon.h index 6bf481db4..15bab1a34 100644 --- a/src/resources/beingcommon.h +++ b/src/resources/beingcommon.h @@ -29,6 +29,13 @@ class BeingInfo; +#define loadXmlDir(name, function) \ + StringVect list; \ + BeingCommon::getIncludeFiles(paths.getStringValue( \ + name), list); \ + FOR_EACH (StringVectCIter, it, list) \ + function(*it); + namespace BeingCommon { void readBasicAttributes(BeingInfo *const info, XmlNodePtr node, -- cgit v1.2.3-60-g2f50