summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-06 20:43:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-06 20:43:46 +0300
commit463d5c603ea95f478dff4b12fbca3c7dd05cc8b9 (patch)
tree00412a9d4a91de61ee62b3c8b9c03c928db5d809 /src/resources/beingcommon.h
parent286e2b7edc988f93e347b6ccfd51da2a56d18d73 (diff)
downloadmv-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.gz
mv-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.bz2
mv-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.tar.xz
mv-463d5c603ea95f478dff4b12fbca3c7dd05cc8b9.zip
add ability to inlude config parts from subdirs for most dbs.
Diffstat (limited to 'src/resources/beingcommon.h')
-rw-r--r--src/resources/beingcommon.h7
1 files changed, 7 insertions, 0 deletions
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,