38 #define __attribute__(x)
55 LOG_LOGGER _log =
LOG_GET(
"daf.persistence.LogicalLocation");
71 if ((*i).prefix().matched) {
72 _locString += (*i).prefix().str();
77 if (_map && _map->exists(key)) {
78 if (_map->typeOf(key) ==
typeid(
int)) {
79 int value = _map->getAsInt(key);
82 _locString += (boost::format(
"%1%") % value).str();
84 _locString += (boost::format(fmt) % value).str();
91 }
else if (additionalData && additionalData->exists(key)) {
92 if (additionalData->typeOf(key) ==
typeid(
int)) {
93 int value = additionalData->getAsInt(key);
96 _locString += (boost::format(
"%1%") % value).str();
98 _locString += (boost::format(fmt) % value).str();
101 std::string value = additionalData->getAsString(key);
114 _locString += (*last).suffix().str();
127 _map = map->deepCopy();
#define LSST_EXCEPT(type,...)
#define LOGLS_DEBUG(logger, message)
Interface for LogicalLocation class.
std::shared_ptr< PropertySet > Ptr
static void setLocationMap(std::shared_ptr< dafBase::PropertySet > map)
Set the logical-to-less-logical map.
LogicalLocation(std::string const &locString, std::shared_ptr< dafBase::PropertySet const > additionalData=std::shared_ptr< dafBase::PropertySet const >())
Constructor from string and additional data.
std::string const & locString(void) const
Accessor.