Example #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");
    }
}
Example #2
0
std::string PropertyFS::name() const {
    std::string name;
    if (hasAttr("name")) {
        getAttr("name", name);
        return name;
    } else {
        throw MissingAttr("name");
    }
}
Example #3
0
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");
    }
}
Example #4
0
vector<double> RangeDimensionHDF5::ticks() const {
    vector<double> ticks;

    if (group.hasData("ticks")) {
        group.getData("ticks", ticks);
        return ticks;
    } else {
        throw MissingAttr("ticks");
    }
}
Example #5
0
double SampledDimensionHDF5::samplingInterval() const {
    double sampling_interval;

    if (group.hasAttr("sampling_interval")) {
        group.getAttr("sampling_interval", sampling_interval);
        return sampling_interval;
    } else {
        throw MissingAttr("sampling_interval");
    }
}