38 #define __attribute__(x)
44 #include "boost/regex.hpp"
53 LOG_LOGGER _log =
LOG_GET(
"daf.persistence.LogicalLocation");
63 boost::regex expr(
"(%.*?)\\((\\w+?)\\)");
64 boost::sregex_iterator i = make_regex_iterator(
locString, expr);
65 boost::sregex_iterator last;
67 while (i != boost::sregex_iterator()) {
69 if ((*i).prefix().matched) {
70 _locString += (*i).prefix().str();
75 if (_map && _map->exists(key)) {
76 if (_map->typeOf(key) ==
typeid(
int)) {
77 int value = _map->getAsInt(key);
80 _locString += (boost::format(
"%1%") % value).str();
82 _locString += (boost::format(fmt) % value).str();
89 }
else if (additionalData && additionalData->
exists(key)) {
90 if (additionalData->
typeOf(key) ==
typeid(
int)) {
91 int value = additionalData->
getAsInt(key);
94 _locString += (boost::format(
"%1%") % value).str();
96 _locString += (boost::format(fmt) % value).str();
108 if (last == boost::sregex_iterator()) {
112 _locString += (*last).suffix().str();