@brief Constructor for Internal Pimpl structure XmpKey::Impl::Impl
| 5151 | |
| 5152 | //! @brief Constructor for Internal Pimpl structure XmpKey::Impl::Impl |
| 5153 | XmpKey::Impl::Impl(const std::string& prefix, const std::string& property) { |
| 5154 | // Validate prefix |
| 5155 | if (XmpProperties::ns(prefix).empty()) |
| 5156 | throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix); |
| 5157 | |
| 5158 | property_ = property; |
| 5159 | prefix_ = prefix; |
| 5160 | } |
| 5161 | |
| 5162 | XmpKey::XmpKey(const std::string& key) : p_(std::make_unique<Impl>()) { |
| 5163 | p_->decomposeKey(key); |