8class __declspec(dllexport) MetadataSeries
11 MetadataSeries(
const std::string& name):m_name(name){};
13 void addParameter(MetadataParameter& parameter) { m_parameter.push_back(parameter); }
14 void addParameter(MetadataParameter&& parameter) { m_parameter.push_back(std::move(parameter)); }
15 void addParameterReference(
ot::UID _parameterUID) { m_parameterReferences.push_back(_parameterUID); m_parameterReferences.unique(); };
17 void addQuantity(MetadataQuantity& quantity) { m_quantity.push_back(quantity); }
18 void addQuantityReference(
ot::UID _quantityUID) { m_quantityReferences.push_back(_quantityUID); m_quantityReferences.unique(); };
20 void addMetadata(std::shared_ptr<MetadataEntry> metadata) { m_metaData[metadata->getEntryName()] = metadata; }
21 const std::list<MetadataParameter>& getParameter()
const {
return m_parameter; }
22 const std::list<MetadataQuantity>& getQuantities()
const {
return m_quantity; }
23 const std::map <std::string, std::shared_ptr<MetadataEntry>> getMetadata()
const {
return m_metaData; }
25 const std::string getName()
const {
return m_name; }
26 const std::string getLabel()
const {
return m_label; }
27 const uint64_t getSeriesIndex()
const {
return m_index; }
31 void setIndex(uint64_t _index) { m_index = _index; };
32 static const std::string getFieldName() {
return "Series"; }
34 void setLabel(
const std::string& _label)
40 const std::string m_name;
44 std::list<MetadataParameter> m_parameter;
46 std::list<MetadataQuantity> m_quantity;
49 std::map <std::string, std::shared_ptr<MetadataEntry>> m_metaData;