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();
114 _locString += (*last).suffix().str();
#define LSST_EXCEPT(type,...)
#define LOGLS_DEBUG(logger, message)
Interface for LogicalLocation class.
std::string getAsString(std::string const &name) const
virtual Ptr deepCopy() const
int getAsInt(std::string const &name) const
std::shared_ptr< PropertySet > Ptr
bool exists(std::string const &name) const
std::type_info const & typeOf(std::string const &name) const
LogicalLocation(std::string const &locString, boost::shared_ptr< dafBase::PropertySet const > additionalData=boost::shared_ptr< dafBase::PropertySet const >())
Constructor from string and additional data.
std::string const & locString(void) const
Accessor.
static void setLocationMap(boost::shared_ptr< dafBase::PropertySet > map)
Set the logical-to-less-logical map.