Example #1
0
File: Tag.cpp Project: G-Node/nix
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();
}
Example #2
0
File: Tag.cpp Project: G-Node/nix
bool Tag::removeReference(const DataArray &reference) {
    if (!util::checkEntityInput(reference, false)) {
        return false;
    }
    return backend()->removeReference(reference.name());
}
Example #3
0
File: Tag.cpp Project: G-Node/nix
void Tag::addReference(const DataArray &reference) {
    if (!util::checkEntityInput(reference, false)) {
        throw UninitializedEntity();
    }
    backend()->addReference(reference.name());
}