OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Types | Public Member Functions | List of all members
InternalZGY::GUID Class Reference

Simplified GUID handling. Only big endian, random number guids. More...

#include <guid.h>

Public Types

typedef std::array< std::uint8_t, 16 > guid_bytes_t
 

Public Member Functions

 GUID (const guid_bytes_t &in)
 
 GUID (nullptr_t)
 
std::string toString () const
 
void copyTo (std::uint8_t *ptr, std::int64_t len)
 

Detailed Description

Simplified GUID handling. Only big endian, random number guids.

The old ZGY accessor relies on an external dependency to an "uuid" package which tends to change between linux distros. This has caused a number of headaches. So, don't do that.

Member Function Documentation

◆ copyTo()

void InternalZGY::GUID::copyTo ( std::uint8_t *  ptr,
std::int64_t  len 
)

Copy the raw bytes of the guid to the specified pointer. The length is redundant. It should always be 16 but is included because it is then more obvious at the calling site what is going on.


The documentation for this class was generated from the following files: