예제 #1
0
LinkType FeatureHDF5::linkType() const {
    if (group().hasAttr("link_type")) {
        string link_type;
        group().getAttr("link_type", link_type);
        return linkTypeFromString(link_type);
    } else {
        throw MissingAttr("data");
    }
}
예제 #2
0
파일: FeatureFS.cpp 프로젝트: G-Node/nix
LinkType FeatureFS::linkType() const {
    if (hasAttr("link_type")) {
        std::string link_type;
        getAttr("link_type", link_type);
        return linkTypeFromString(link_type);
    } else {
        throw MissingAttr("data");
    }
}