| 51 | } |
| 52 | |
| 53 | StringBox AssetKey::toString() const { |
| 54 | if (isURL()) { |
| 55 | return getUrl(); |
| 56 | } else { |
| 57 | return STRING_FORMAT("{}/{}", getBundle()->getName(), getPath()); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | std::ostream& operator<<(std::ostream& os, const Valdi::AssetKey& k) noexcept { |
| 62 | os << k.toString(); |