コード例 #1
0
ファイル: FeatureHDF5.cpp プロジェクト: neurodebian/nix
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");
    }
}