Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 31, 2024
1 parent b483649 commit 2d55bd8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/podio/RNTupleReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ class RNTupleReader {
return m_fileVersion;
}

/// Get the (build) version of a datamodel that has been used to write the
/// current file
///
/// @param name The name of the datamodel
///
/// @returns The (build) version of the datamodel if available or an empty
/// optional
std::optional<podio::version::Version> currentFileVersion(const std::string& name) const {
return m_datamodelHolder.getDatamodelVersion(name);
}
Expand Down
7 changes: 7 additions & 0 deletions include/podio/ROOTReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ class ROOTReader {
return m_fileVersion;
}

/// Get the (build) version of a datamodel that has been used to write the
/// current file
///
/// @param name The name of the datamodel
///
/// @returns The (build) version of the datamodel if available or an empty
/// optional
std::optional<podio::version::Version> currentFileVersion(const std::string& name) const {
return m_datamodelHolder.getDatamodelVersion(name);
}
Expand Down
7 changes: 7 additions & 0 deletions include/podio/Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ class Reader {
return m_self->currentFileVersion();
}

/// Get the (build) version of a datamodel that has been used to write the
/// current file
///
/// @param name The name of the datamodel
///
/// @returns The (build) version of the datamodel if available or an empty
/// optional
std::optional<podio::version::Version> currentFileVersion(const std::string& name) const {
return m_self->currentFileVersion(name);
}
Expand Down
7 changes: 7 additions & 0 deletions include/podio/SIOReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ class SIOReader {
return m_fileVersion;
}

/// Get the (build) version of a datamodel that has been used to write the
/// current file
///
/// @param name The name of the datamodel
///
/// @returns The (build) version of the datamodel if available or an empty
/// optional
std::optional<podio::version::Version> currentFileVersion(const std::string& name) const {
return m_datamodelHolder.getDatamodelVersion(name);
}
Expand Down

0 comments on commit 2d55bd8

Please sign in to comment.