Exemple #1
0
bool Tag::hasReference(const DataArray &reference) const {
    if (!util::checkEntityInput(reference, false)) {
        return false;
    }
    DataArray da = backend()->getReference(reference.name());
    return da && da.id() == reference.id();
}
Exemple #2
0
bool Tag::removeReference(const DataArray &reference) {
    if (!util::checkEntityInput(reference, false)) {
        return false;
    }
    return backend()->removeReference(reference.name());
}
Exemple #3
0
void Tag::addReference(const DataArray &reference) {
    if (!util::checkEntityInput(reference, false)) {
        throw UninitializedEntity();
    }
    backend()->addReference(reference.name());
}