opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
storage_schema.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <utility>
6#include <vector>
7
8namespace OpenSim { class Storage; }
9
10namespace opyn
11{
12 // Stores the higher-level schema associated with an `OpenSim::Storage`.
13 class StorageSchema final {
14 public:
15
16 // Returns a `StorageSchema` by parsing (the column labels of) the
17 // provided `OpenSim::Storage`.
18 static StorageSchema parse(const OpenSim::Storage&);
19
20 const std::vector<DataSeriesAnnotation>& annotations() const { return m_Annotations; }
21 private:
22 explicit StorageSchema(std::vector<DataSeriesAnnotation> annotations) :
23 m_Annotations{std::move(annotations)}
24 {}
25
26 std::vector<DataSeriesAnnotation> m_Annotations;
27 };
28}
Definition storage_schema.h:13
const std::vector< DataSeriesAnnotation > & annotations() const
Definition storage_schema.h:20
static StorageSchema parse(const OpenSim::Storage &)
Definition static_component_registries.h:3
Definition component_registry.h:14