Fesapi
2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
|
#include <TimeSeriesData.h>
Public Member Functions | |
TimeSeriesData (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject) | |
TimeSeriesData (common::DataObjectRepository *repo, const std::string &guid, const std::string &title) | |
Creates an instance of this class in a gsoap context. More... | |
TimeSeriesData (gsoap_eml2_2::prodml21__TimeSeriesData *fromGsoap) | |
~TimeSeriesData ()=default | |
void | pushBackKeywordValue (gsoap_eml2_2::prodml21__TimeSeriesKeyword keyword, const std::string &value) |
void | setUom (gsoap_resqml2_0_1::resqml20__ResqmlUom uom) |
void | setMeasureClass (gsoap_eml2_2::eml22__MeasureClass measureClass) |
void | pushBackDoubleValue (double value, time_t timestamp=-1) |
void | pushBackDoubleValue (double value, time_t timestamp, gsoap_eml2_2::prodml21__ValueStatus status) |
void | pushBackStringValue (const std::string &value, time_t timestamp=-1) |
std::string | getUomAsString () const |
std::string | getMeasureClassAsString () const |
unsigned int | getValueCount () const |
bool | isDoubleValue (unsigned int index) const |
bool | isStringValue (unsigned int index) const |
double | getDoubleValue (unsigned int index) const |
std::string | getStringValue (unsigned int index) const |
time_t | getValueTimestamp (unsigned int index) const |
bool | hasValueStatus (unsigned int index) const |
gsoap_eml2_2::prodml21__ValueStatus | getValueStatus (unsigned int index) const |
unsigned int | getKeywordCount () const |
gsoap_eml2_2::prodml21__TimeSeriesKeyword | getKeyword (unsigned int index) const |
std::string | getKeywordValue (unsigned int index) const |
virtual std::string | getXmlTag () const |
std::string | getXmlNamespace () const final |
void | loadTargetRelationships () |
Public Member Functions inherited from common::AbstractObject | |
bool | isPartial () const |
virtual bool | isTopLevelElement () const |
std::string | getUuid () const |
std::string | getTitle () const |
std::string | getEditor () const |
time_t | getCreation () const |
tm | getCreationAsTimeStructure () const |
std::string | getOriginator () const |
std::string | getDescription () const |
time_t | getLastUpdate () const |
tm | getLastUpdateAsTimeStructure () const |
std::string | getFormat () const |
std::string | getDescriptiveKeywords () const |
std::string | getVersion () const |
void | setTitle (const std::string &title) |
void | setEditor (const std::string &editor) |
void | setCreation (time_t creation) |
void | setCreation (const tm &creation) |
void | setOriginator (const std::string &originator) |
void | setDescription (const std::string &description) |
void | setLastUpdate (time_t lastUpdate) |
void | setLastUpdate (const tm &lastUpdate) |
void | setDescriptiveKeywords (const std::string &descriptiveKeywords) |
void | setVersion (const std::string &version) |
void | setMetadata (const std::string &title, const std::string &editor, time_t creation, const std::string &originator, const std::string &description, time_t lastUpdate, const std::string &descriptiveKeywords) |
void | serializeIntoStream (std::ostream *stream) |
void | setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy) |
void | setGsoapProxy (gsoap_eml2_1::eml21__AbstractObject *gsoapProxy) |
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * | getEml20GsoapProxy () const |
gsoap_eml2_1::eml21__AbstractObject * | getEml21GsoapProxy () const |
gsoap_eml2_2::eml22__AbstractObject * | getEml22GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_2::eml22__AbstractObject *gsoapProxy) |
gsoap_eml2_3::eml23__AbstractObject * | getEml23GsoapProxy () const |
void | setGsoapProxy (gsoap_eml2_3::eml23__AbstractObject *gsoapProxy) |
soap * | getGsoapContext () const |
int | getGsoapType () const |
gsoap_resqml2_0_1::eml20__DataObjectReference * | newResqmlReference () const |
gsoap_eml2_1::eml21__DataObjectReference * | newEmlReference () const |
gsoap_eml2_2::eml22__DataObjectReference * | newEml22Reference () const |
gsoap_eml2_3::eml23__DataObjectReference * | newEml23Reference () const |
gsoap_resqml2_0_1::resqml20__ContactElementReference * | newContactElementReference2_0_1 () const |
gsoap_eml2_3::resqml22__ContactElement * | newContactElementReference2_2 () const |
common::DataObjectRepository * | getRepository () const |
virtual std::string | getXmlNamespaceVersion () const |
virtual std::string | getContentType () const |
virtual std::string | getQualifiedType () const |
virtual std::string | getPartNameInEpcDocument () const |
std::string | serializeIntoString () |
void | addAlias (const std::string &authority, const std::string &title) |
unsigned int | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (unsigned int index) const |
std::string | getAliasTitleAtIndex (unsigned int index) const |
std::vector< eml2::Activity * > | getActivitySet () const |
unsigned int | getActivityCount () const |
eml2::Activity * | getActivity (unsigned int index) const |
void | pushBackExtraMetadata (const std::string &key, const std::string &value) |
std::unordered_map< std::string, std::string > | getExtraMetadataSet () const |
std::vector< std::string > | getExtraMetadata (const std::string &key) const |
unsigned int | getExtraMetadataCount () const |
std::string | getExtraMetadataKeyAtIndex (unsigned int index) const |
std::string | getExtraMetadataStringValueAtIndex (unsigned int index) const |
Static Public Attributes | |
static const char * | XML_TAG |
static const char * | XML_NS |
Additional Inherited Members | |
Public Types inherited from common::AbstractObject | |
enum | hdfDatatypeEnum { UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , LONG_64 = 3 , ULONG_64 = 4 , INT = 5 , UINT = 6 , SHORT = 7 , USHORT = 8 , CHAR = 9 , UCHAR = 10 } |
Static Public Member Functions inherited from common::AbstractObject | |
static void | setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber) |
The time series data object is intended for use in transferring time series of data, e.g. from a historian. The Time Series data object describes a context free, time based series of measurement data for the purpose of targeted exchanges between consumers and providers of data services. This is intended for use in support of smart fields or high-frequency historian type interactions, not reporting. It provides a “flat” view of the data and uses a set of keyword-value pairs to define the business identity of the series, as described in the following generalized hierarchy.
|
inline |
Only to be used in partial transfer context
[in,out] | partialObject | If non-null, the partial object. |
prodml2_1::TimeSeriesData::TimeSeriesData | ( | common::DataObjectRepository * | repo, |
const std::string & | guid, | ||
const std::string & | title | ||
) |
Creates an instance of this class in a gsoap context.
std::invalid_argument | If repo == nullptr . |
[in,out] | repo | The dataobject repo where the underlying gsoap proxy is going to be created. |
guid | The guid to set to this instance. If empty then a new guid will be generated. | |
title | The title. |
|
inline |
Creates an instance of this class by wrapping a gsoap instance.
[in,out] | fromGsoap | If non-null, from gsoap. |
|
default |
Destructor does nothing since the memory is managed by the gsoap context.
double prodml2_1::TimeSeriesData::getDoubleValue | ( | unsigned int | index | ) | const |
Get a double value at a particular index.
index | The index of the value in this timeseries |
gsoap_eml2_2::prodml21__TimeSeriesKeyword prodml2_1::TimeSeriesData::getKeyword | ( | unsigned int | index | ) | const |
Get a keyword at a particular index.
index | The index of the keyword in this timeseries |
unsigned int prodml2_1::TimeSeriesData::getKeywordCount | ( | ) | const |
Get the count of keywords in this time series
std::string prodml2_1::TimeSeriesData::getKeywordValue | ( | unsigned int | index | ) | const |
Get the value of a keyword at a particular index.
index | The index of the value in this timeseries |
std::string prodml2_1::TimeSeriesData::getMeasureClassAsString | ( | ) | const |
Gets the measure class of the values of this time series as a string.
std::string prodml2_1::TimeSeriesData::getStringValue | ( | unsigned int | index | ) | const |
Get a string value at a particular index.
index | The index of the value in this timeseries |
std::string prodml2_1::TimeSeriesData::getUomAsString | ( | ) | const |
Gets the unit of measure of the values of this time series as a string.
unsigned int prodml2_1::TimeSeriesData::getValueCount | ( | ) | const |
Get the count of value in this time series
gsoap_eml2_2::prodml21__ValueStatus prodml2_1::TimeSeriesData::getValueStatus | ( | unsigned int | index | ) | const |
Get the status associated to a value at a particular index.
index | The index of the value in this timeseries |
time_t prodml2_1::TimeSeriesData::getValueTimestamp | ( | unsigned int | index | ) | const |
Get the timestamp associated to a value at a particular index.
index | The index of the value in this timeseries |
|
inlinefinalvirtual |
Get the standard XML namespace for serializing this data object.
Implements common::AbstractObject.
|
inlinevirtual |
Get the standard XML tag without XML namespace for serializing this data object.
Implements common::AbstractObject.
bool prodml2_1::TimeSeriesData::hasValueStatus | ( | unsigned int | index | ) | const |
Check if a value at a particular index has a status.
index | The index of the value in this timeseries |
bool prodml2_1::TimeSeriesData::isDoubleValue | ( | unsigned int | index | ) | const |
Check if a value at a particular index is a double one.
index | The index of the value in this timeseries |
bool prodml2_1::TimeSeriesData::isStringValue | ( | unsigned int | index | ) | const |
Check if a value at a particular index is a string one.
index | The index of the value in this timeseries |
|
inlinevirtual |
Loads target relationships
Implements common::AbstractObject.
void prodml2_1::TimeSeriesData::pushBackDoubleValue | ( | double | value, |
time_t | timestamp, | ||
gsoap_eml2_2::prodml21__ValueStatus | status | ||
) |
Push back a new value (i.e data) in the time series
value | The value to push back. |
value | The time of the value to push back. |
value | The status of the value to push back. |
void prodml2_1::TimeSeriesData::pushBackDoubleValue | ( | double | value, |
time_t | timestamp = -1 |
||
) |
Push back a new value (i.e data) in the time series
value | The value to push back. |
value | (Optional) The time of the value to push back. |
void prodml2_1::TimeSeriesData::pushBackKeywordValue | ( | gsoap_eml2_2::prodml21__TimeSeriesKeyword | keyword, |
const std::string & | value | ||
) |
The keyword value pairs are used to characterize the underlying nature of the values. The key value may provide part of the unique identity of an instance of a concept or it may characterize the underlying concept.
keyword | One of this enumerated value
|
value | The string value associated to the keyword |
void prodml2_1::TimeSeriesData::pushBackStringValue | ( | const std::string & | value, |
time_t | timestamp = -1 |
||
) |
Push back a new value (i.e data) in the time series
value | The value to push back. |
value | (Optional) The time of the value to push back. |
void prodml2_1::TimeSeriesData::setMeasureClass | ( | gsoap_eml2_2::eml22__MeasureClass | measureClass | ) |
Set the measure class of the data of the time series.
measureClass | The measure class to set. |
void prodml2_1::TimeSeriesData::setUom | ( | gsoap_resqml2_0_1::resqml20__ResqmlUom | uom | ) |
Set the uom of the data of the time series.
uom | The unit of measure taken from the standard Energistics units of measure catalog. Please check COMMON_NS::EnumStringMapper::getEnergisticsUnitOfMeasure in order to minimize the use of non standard unit of measure. |
|
static |
The standard XML namespace for serializing this data object.
|
static |
The standard XML tag without XML namespace for serializing this data object.