My Project
AbstractProperty.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2016)
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 -----------------------------------------------------------------------*/
35 #pragma once
36 
37 #include "resqml2/AbstractObject.h"
38 
39 namespace resqml2
40 {
41  class DLL_IMPORT_OR_EXPORT AbstractProperty: public AbstractObject
42  {
43  public:
48  AbstractProperty(): local3dCrs(nullptr) {}
49 
53  AbstractProperty(gsoap_resqml2_0_1::resqml2__AbstractProperty* fromGsoap) : AbstractObject(fromGsoap), local3dCrs(nullptr) {}
54 
58  virtual ~AbstractProperty() {}
59 
63  void setRepresentation(class AbstractRepresentation * rep);
64 
68  class AbstractRepresentation* getRepresentation() const;
69 
70  /*
71  * Getter for the uuid of the representation which is described by this property
72  */
73  std::string getRepresentationUuid() const;
74 
75  /*
76  * Getter for the title of the representation which is described by this property
77  */
78  std::string getRepresentationTitle() const;
79 
80  /*
81  * Getter for the content type of the representation which is described by this property
82  */
83  std::string getRepresentationContentType() const;
84 
88  void setTimeSeries(class TimeSeries * ts);
89 
93  TimeSeries* getTimeSeries() const;
94 
95  /*
96  * Getter for the uuid of the time series which is associated to this property.
97  */
98  std::string getTimeSeriesUuid() const;
99 
100  /*
101  * Getter for the uuid of the time series which is associated to this property.
102  */
103  std::string getTimeSeriesTitle() const;
104 
111  void setTimeIndex(const unsigned int & timeIndex, class TimeSeries * ts);
112 
116  void setTimeStep(const unsigned int & timeStep);
117 
122  time_t getTimestamp() const;
123 
127  unsigned int getTimeIndex() const;
128 
132  void setHdfProxy(AbstractHdfProxy * proxy);
133 
137  AbstractHdfProxy* getHdfProxy() const;
138 
139  /*
140  * Getter for the uuid of the hdf proxy which is used for storing the numerical values of this property.
141  * An empty string is returned if no hd fproxy is used for storing the numerical values.
142  */
143  std::string getHdfProxyUuid() const;
144 
151  unsigned int getElementCountPerValue() const;
152 
156  gsoap_resqml2_0_1::resqml2__IndexableElements getAttachmentKind() const;
157 
161  bool isAssociatedToOneStandardEnergisticsPropertyKind() const;
162 
163  //*********************************************
164  //****** PROP KIND ****************************
165  //*********************************************
166 
170  std::string getPropertyKindDescription() const;
171 
175  std::string getPropertyKindAsString() const;
176 
180  std::string getPropertyKindParentAsString() const;
181 
185  gsoap_resqml2_0_1::resqml2__ResqmlPropertyKind getEnergisticsPropertyKind() const;
186 
190  void setLocalPropertyKind(class PropertyKind* propKind);
191 
195  std::string getLocalPropertyKindUuid() const;
196 
200  std::string getLocalPropertyKindTitle() const;
201 
206  class PropertyKind* getLocalPropertyKind() const;
207 
211  virtual gsoap_resqml2_0_1::resqml2__ResqmlPropertyKind getFirstAllowedPropertyKindParent() const;
212 
213  protected:
214 
215  void setXmlRepresentation(class AbstractRepresentation * rep);
216  void setXmlTimeSeries(TimeSeries * ts);
217  void setXmlLocalPropertyKind(class PropertyKind* propKind);
218 
219  virtual std::vector<epc::Relationship> getAllEpcRelationships() const;
220  virtual void importRelationshipSetFromEpc(common::EpcDocument * epcDoc);
221 
222  class AbstractLocal3dCrs * local3dCrs;
223  };
224 }
AbstractProperty(gsoap_resqml2_0_1::resqml2__AbstractProperty *fromGsoap)
Definition: AbstractProperty.h:53
Definition: AbstractHdfProxy.h:44
Definition: AbstractLocal3dCrs.h:40
Definition: PropertyKind.h:40
Definition: AbstractObject.h:41
virtual ~AbstractProperty()
Definition: AbstractProperty.h:58
AbstractProperty()
Definition: AbstractProperty.h:48
Definition: EpcDocument.h:155
Definition: AbstractRepresentation.h:40
Definition: AbstractProperty.h:41
Definition: TimeSeries.h:40
Definition: EpcDocument.h:61