My Project
DiscreteProperty.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2017)
3 
4 philippe.verney@f2i-consulting.com
5 
6 This software is a computer program whose purpose is to access to data formatted using Energistics standards.
7 
8 This software is governed by the CeCILL-B license under French law and
9 abiding by the rules of distribution of free software. You can use,
10 modify and/ or redistribute the software under the terms of the CeCILL-B
11 license as circulated by CEA, CNRS and INRIA at the following URL
12 "http://www.cecill.info".
13 
14 As a counterpart to the access to the source code and rights to copy,
15 modify and redistribute granted by the license, users are provided only
16 with a limited warranty and the software's author, the holder of the
17 economic rights, and the successive licensors have only limited
18 liability.
19 
20 In this respect, the user's attention is drawn to the risks associated
21 with loading, using, modifying and/or developing or reproducing the
22 software by the user in light of its specific status of free software,
23 that may mean that it is complicated to manipulate, and that also
24 therefore means that it is reserved for developers and experienced
25 professionals having in-depth computer knowledge. Users are therefore
26 encouraged to load and test the software's suitability as regards their
27 requirements in conditions enabling the security of their systems and/or
28 data to be ensured and, more generally, to use and operate it in the
29 same conditions as regards security.
30 
31 The fact that you are presently reading this means that you have had
32 knowledge of the CeCILL-B license and that you accept its terms.
33 -----------------------------------------------------------------------*/
34 #pragma once
35 
36 #include "resqml2/AbstractValuesProperty.h"
37 
38 namespace resqml2_0_1
39 {
44  class DLL_IMPORT_OR_EXPORT DiscreteProperty : public resqml2::AbstractValuesProperty
45  {
46  public:
47 
51  DiscreteProperty(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : resqml2::AbstractValuesProperty(partialObject) {}
52 
53  DiscreteProperty() {}
54 
64  DiscreteProperty(resqml2::AbstractRepresentation * rep, const std::string & guid, const std::string & title,
65  const unsigned int & dimension, const gsoap_resqml2_0_1::resqml2__IndexableElements & attachmentKind, const gsoap_resqml2_0_1::resqml2__ResqmlPropertyKind & energisticsPropertyKind);
66 
76  DiscreteProperty(resqml2::AbstractRepresentation * rep, const std::string & guid, const std::string & title,
77  const unsigned int & dimension, const gsoap_resqml2_0_1::resqml2__IndexableElements & attachmentKind, resqml2::PropertyKind * localPropKind);
78 
82  DiscreteProperty(gsoap_resqml2_0_1::_resqml2__DiscreteProperty* fromGsoap): AbstractValuesProperty(fromGsoap) {}
83 
87  virtual ~DiscreteProperty() {}
88 
89  static const char* XML_TAG;
90  virtual std::string getXmlTag() const {return XML_TAG;}
91 
100  void pushBackLongHdf5Array1dOfValues(long * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const long & nullValue, const long & minimumValue, const long & maximumValue);
101  void pushBackLongHdf5Array1dOfValues(long * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const long & nullValue);
102  void pushBackIntHdf5Array1dOfValues(int * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const int & nullValue, const int & minimumValue, const int & maximumValue);
103  void pushBackIntHdf5Array1dOfValues(int * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const int & nullValue);
104  void pushBackShortHdf5Array1dOfValues(short * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const short & nullValue, const short & minimumValue, const short & maximumValue);
105  void pushBackShortHdf5Array1dOfValues(short * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const short & nullValue);
106  void pushBackCharHdf5Array1dOfValues(char * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const char & nullValue, const char & minimumValue, const char & maximumValue);
107  void pushBackCharHdf5Array1dOfValues(char * values, const ULONG64 & valueCount, common::AbstractHdfProxy* proxy, const char & nullValue);
108 
118  void pushBackLongHdf5Array2dOfValues(long * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const long & nullValue, const long & minimumValue, const long & maximumValue);
119  void pushBackLongHdf5Array2dOfValues(long * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const long & nullValue);
120  void pushBackIntHdf5Array2dOfValues(int * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const int & nullValue, const int & minimumValue, const int & maximumValue);
121  void pushBackIntHdf5Array2dOfValues(int * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const int & nullValue);
122  void pushBackShortHdf5Array2dOfValues(short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const short & nullValue, const short & minimumValue, const short & maximumValue);
123  void pushBackShortHdf5Array2dOfValues(short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const short & nullValue);
124  void pushBackUShortHdf5Array2dOfValues(unsigned short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const unsigned short & nullValue, const unsigned short & minimumValue, const unsigned short & maximumValue);
125  void pushBackUShortHdf5Array2dOfValues(unsigned short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const unsigned short & nullValue);
126  void pushBackCharHdf5Array2dOfValues(char * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const char & nullValue, const char & minimumValue, const char & maximumValue);
127  void pushBackCharHdf5Array2dOfValues(char * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const char & nullValue);
128 
139  void pushBackLongHdf5Array3dOfValues(long * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const long & nullValue, const long & minimumValue, const long & maximumValue);
140  void pushBackLongHdf5Array3dOfValues(long * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const long & nullValue);
141  void pushBackIntHdf5Array3dOfValues(int * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const int & nullValue, const int & minimumValue, const int & maximumValue);
142  void pushBackIntHdf5Array3dOfValues(int * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const int & nullValue);
143  void pushBackShortHdf5Array3dOfValues(short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const short & nullValue, const short & minimumValue, const short & maximumValue);
144  void pushBackShortHdf5Array3dOfValues(short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const short & nullValue);
145  void pushBackUShortHdf5Array3dOfValues(unsigned short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const unsigned short & nullValue, const unsigned short & minimumValue, const unsigned short & maximumValue);
146  void pushBackUShortHdf5Array3dOfValues(unsigned short * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const unsigned short & nullValue);
147  void pushBackCharHdf5Array3dOfValues(char * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const char & nullValue, const char & minimumValue, const char & maximumValue);
148  void pushBackCharHdf5Array3dOfValues(char * values, const ULONG64 & valueCountInFastestDim, const ULONG64 & valueCountInMiddleDim, const ULONG64 & valueCountInSlowestDim, common::AbstractHdfProxy* proxy, const char & nullValue);
149 
159  void pushBackLongHdf5ArrayOfValues(long * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const long & nullValue, const long & minimumValue, const long & maximumValue);
160  void pushBackLongHdf5ArrayOfValues(long * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const long & nullValue);
161  void pushBackIntHdf5ArrayOfValues(int * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const int & nullValue, const int & minimumValue, const int & maximumValue);
162  void pushBackIntHdf5ArrayOfValues(int * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const int & nullValue);
163  void pushBackShortHdf5ArrayOfValues(short * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const short & nullValue, const short & minimumValue, const short & maximumValue);
164  void pushBackShortHdf5ArrayOfValues(short * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const short & nullValue);
165  void pushBackUShortHdf5ArrayOfValues(unsigned short * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const unsigned short & nullValue, const unsigned short & minimumValue, const unsigned short & maximumValue);
166  void pushBackUShortHdf5ArrayOfValues(unsigned short * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const unsigned short & nullValue);
167  void pushBackCharHdf5ArrayOfValues(char * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const char & nullValue, const char & minimumValue, const char & maximumValue);
168  void pushBackCharHdf5ArrayOfValues(char * values, unsigned long long * numValues, const unsigned int & numDimensionsInArray, common::AbstractHdfProxy* proxy, const char & nullValue);
169 
180  std::string pushBackRefToExistingDataset(common::AbstractHdfProxy* proxy, const std::string & datasetName, const long & nullValue, const long & minimumValue, const long & maximumValue);
181  std::string pushBackRefToExistingDataset(common::AbstractHdfProxy* hdfProxy, const std::string & dataset = "", const long & nullValue = (std::numeric_limits<long>::max)());
182 
186  bool validatePropertyKindAssociation(resqml2::PropertyKind* pk);
187 
191  bool validatePropertyKindAssociation(const gsoap_resqml2_0_1::resqml2__ResqmlPropertyKind & pk);
192  };
193 }
virtual std::string getXmlTag() const
Definition: DiscreteProperty.h:90
DiscreteProperty(gsoap_resqml2_0_1::_resqml2__DiscreteProperty *fromGsoap)
Definition: DiscreteProperty.h:82
Definition: AbstractValuesProperty.h:41
Definition: PropertyKind.h:40
virtual ~DiscreteProperty()
Definition: DiscreteProperty.h:87
Definition: EpcDocument.h:78
Definition: AbstractRepresentation.h:44
Definition: EpcDocument.h:62
DiscreteProperty(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: DiscreteProperty.h:51
Definition: AbstractHdfProxy.h:45
Definition: DiscreteProperty.h:44