Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
ChannelSet.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
10http://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 "ChannelIndexDataObject.h"
22
23namespace WITSML2_1_NS
24{
29 class ChannelSet : public ChannelIndexDataObject<gsoap_eml2_3::witsml21__ChannelSet>
30 {
31 public:
32
38 DLL_IMPORT_OR_EXPORT ChannelSet(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : ChannelIndexDataObject<gsoap_eml2_3::witsml21__ChannelSet>(partialObject) {}
39
48 ChannelSet(COMMON_NS::DataObjectRepository* repo, const std::string & guid, const std::string & title, bool isActive);
49
55 ChannelSet(gsoap_eml2_3::witsml21__ChannelSet* fromGsoap) : ChannelIndexDataObject<gsoap_eml2_3::witsml21__ChannelSet>(fromGsoap) {}
56
58 ~ChannelSet() = default;
59
69 DLL_IMPORT_OR_EXPORT void pushBackChannelIndex(gsoap_eml2_3::eml23__DataIndexKind indexKind, gsoap_eml2_3::eml23__UnitOfMeasure uom, const std::string & mnemonic, bool isIncreasing = true) final;
70
76 DLL_IMPORT_OR_EXPORT void pushBackChannel(class Channel * channel);
77
83 DLL_IMPORT_OR_EXPORT void setDataAsJsonArray(const std::string & jsonArray);
84
90 DLL_IMPORT_OR_EXPORT void setDataAsFileUri(const std::string & fileUri);
91
97 DLL_IMPORT_OR_EXPORT bool hasDataAsJsonArray() const;
98
104 DLL_IMPORT_OR_EXPORT bool hasDataAsFileUri() const;
105
111 DLL_IMPORT_OR_EXPORT const std::string & getDataAsJsonArray() const;
112
118 DLL_IMPORT_OR_EXPORT const std::string & getDataAsFileUri() const;
119
125 DLL_IMPORT_OR_EXPORT std::vector<class Log*> getLogs() const;
126
132 DLL_IMPORT_OR_EXPORT std::vector<class Channel*> getChannels() const;
133
140#define SETTER_GENERIC_OPTIONAL_ATTRIBUTE(attributeDatatype, attributeName)\
141 DLL_IMPORT_OR_EXPORT void set##attributeName(const attributeDatatype & attributeName);
142
143 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, RunNumber)
144 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, PassNumber)
145 SETTER_GENERIC_OPTIONAL_ATTRIBUTE(std::string, LoggingToolClassLongName)
146
147
152 DLL_IMPORT_OR_EXPORT static const char* XML_TAG;
153
159 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const { return XML_TAG; }
160
163
167 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "witsml21";
168
172 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
173 };
174}
Definition Channel.h:29
Definition ChannelIndexDataObject.h:36
Definition ChannelSet.h:30
ChannelSet(gsoap_eml2_3::witsml21__ChannelSet *fromGsoap)
Definition ChannelSet.h:55
void pushBackChannelIndex(gsoap_eml2_3::eml23__DataIndexKind indexKind, gsoap_eml2_3::eml23__UnitOfMeasure uom, const std::string &mnemonic, bool isIncreasing=true) final
ChannelSet(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition ChannelSet.h:38
ChannelSet(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, bool isActive)
void loadTargetRelationships() final
Definition Log.h:27