openenergysolutions / openfmb.adapters

OpenFMB Adapters
Apache License 2.0
3 stars 1 forks source link

Timestamp quality representation #6

Closed jadamcrain closed 5 years ago

jadamcrain commented 6 years ago

in DDS, we have the type:

unsigned char  * tq

in C++ we have std::string which we interpret as a byte array

How should we handle conversions? How many bytes can be in dds::tq?

openenergysolutions commented 6 years ago

Shawn,

For qualities we have: in many measurement fields q Quality hexBinary and in Timestamp tq byte

My recollection is both Qualtity and tq are 16bits long. Whatever their lengths, can we document their length in the field notes please?

Thank you,

Larry

On Mon, Jan 8, 2018 at 2:41 PM, Adam Crain notifications@github.com wrote:

Assigned #6 https://github.com/openenergysolutions/openfmb.adapters/issues/6 to @openenergysolutions https://github.com/openenergysolutions.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/openenergysolutions/openfmb.adapters/issues/6#event-1414506891, or mute the thread https://github.com/notifications/unsubscribe-auth/AZmOxnoStmwIYHcJqFg7pAfkNGBaus7zks5tIouUgaJpZM4RW_lp .

openenergysolutions commented 6 years ago

And we may have to go back to Herb and document what each bit means.

On Mon, Jan 8, 2018 at 6:22 PM, Larry Lackey < larry@openenergysolutionsinc.com> wrote:

Shawn,

For qualities we have: in many measurement fields q Quality hexBinary and in Timestamp tq byte

My recollection is both Qualtity and tq are 16bits long. Whatever their lengths, can we document their length in the field notes please?

Thank you,

Larry

On Mon, Jan 8, 2018 at 2:41 PM, Adam Crain notifications@github.com wrote:

Assigned #6 https://github.com/openenergysolutions/openfmb.adapters/issues/6 to @openenergysolutions https://github.com/openenergysolutions.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/openenergysolutions/openfmb.adapters/issues/6#event-1414506891, or mute the thread https://github.com/notifications/unsubscribe-auth/AZmOxnoStmwIYHcJqFg7pAfkNGBaus7zks5tIouUgaJpZM4RW_lp .