12class __declspec(dllexport) MetadataCampaign
15 MetadataCampaign() =
default;
16 MetadataCampaign(
const MetadataCampaign& _other) =
default;
17 MetadataCampaign& operator=(
const MetadataCampaign& _other) =
delete;
18 MetadataCampaign(MetadataCampaign&& other)
noexcept =
default;
19 MetadataCampaign& operator=(MetadataCampaign&& other)
noexcept =
default;
20 ~MetadataCampaign() {};
22 void addMetaInformation(
const std::string& key, std::shared_ptr<MetadataEntry> _metadata) { m_metaData[key] = _metadata; }
23 const std::map <std::string, std::shared_ptr<MetadataEntry>>& getMetaData()
const {
return m_metaData; }
25 void addSeriesMetadata(MetadataSeries&& seriesMetadata) { m_seriesMetadata.push_back(seriesMetadata); }
26 const std::list<MetadataSeries>& getSeriesMetadata()
const {
return m_seriesMetadata; };
28 void setCampaignName(
const std::string _name) { m_campaignName = _name; }
29 const std::string& getCampaignName()
const {
return m_campaignName; }
31 const std::map <std::string, MetadataQuantity*>& getMetadataQuantitiesByLabel()
const {
return m_quantityOverviewByLabel; }
32 const std::map <std::string, MetadataParameter*>& getMetadataParameterByLabel()
const {
return m_parameterOverviewByLabel; }
33 const std::map <ot::UID, MetadataParameter>& getMetadataParameterByUID()
const {
return m_parameterOverviewByUID; }
34 const std::map <ot::UID, MetadataQuantity>& getMetadataQuantitiesByUID()
const {
return m_quantityOverviewByUID; }
36 void updateMetadataOverview();
37 void updateMetadataOverviewFromLastAddedSeries();
41 std::list<MetadataSeries> m_seriesMetadata;
43 std::map<ot::UID,MetadataQuantity> m_quantityOverviewByUID;
44 std::map<ot::UID, MetadataParameter> m_parameterOverviewByUID;
45 std::map<std::string, MetadataQuantity*> m_quantityOverviewByLabel;
46 std::map<std::string, MetadataParameter*> m_parameterOverviewByLabel;
48 std::string m_campaignName;
50 std::map <std::string, std::shared_ptr<MetadataEntry>> m_metaData;
52 void updateMetadataOverview(MetadataSeries& _series);