Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
TimeSeries.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include "../eml2/TimeSeries.h"
22
23namespace EML2_3_NS
24{
26 class TimeSeries final : public EML2_NS::TimeSeries
27 {
28 public:
29
37 DLL_IMPORT_OR_EXPORT TimeSeries(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject):
38 EML2_NS::TimeSeries(partialObject) {}
39
48 TimeSeries(COMMON_NS::DataObjectRepository* repo, const std::string & guid, const std::string & title);
49
55 TimeSeries(gsoap_eml2_3::_eml23__TimeSeries* fromGsoap) : EML2_NS::TimeSeries(fromGsoap) {}
56
58 ~TimeSeries() = default;
59
67 DLL_IMPORT_OR_EXPORT void pushBackTimestamp(const tm & timestamp) final;
68
80 DLL_IMPORT_OR_EXPORT uint64_t getTimestampIndex(time_t timestamp, LONG64 yearOffset = 0) const final;
81
93 DLL_IMPORT_OR_EXPORT uint64_t getTimestampIndex(const tm & timestamp, LONG64 yearOffset = 0) const final;
94
102 DLL_IMPORT_OR_EXPORT uint64_t getTimestampCount() const final;
103
115 DLL_IMPORT_OR_EXPORT tm getTimestampAsTimeStructure(uint64_t index) const final;
116
120 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml23";
121
125 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
126 };
127}
Definition TimeSeries.h:27
uint64_t getTimestampIndex(time_t timestamp, LONG64 yearOffset=0) const final
TimeSeries(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition TimeSeries.h:37
TimeSeries(common ::DataObjectRepository *repo, const std::string &guid, const std::string &title)
~TimeSeries()=default
TimeSeries(gsoap_eml2_3::_eml23__TimeSeries *fromGsoap)
Definition TimeSeries.h:55
void pushBackTimestamp(const tm &timestamp) final