|
OpenZGY/C++ Public API (ALPHA)
Access seismic data stored in ZGY format.
|
Go to the documentation of this file.
37 class SeismicStoreFile;
38 class SeismicStoreFileDelayedWrite;
54 virtual std::string toString()
const = 0;
76 friend class Test::TestIOContext;
77 friend class InternalZGY::SeismicStoreFile;
78 friend class InternalZGY::SeismicStoreFileDelayedWrite;
81 typedef std::function<std::string()> tokencb_t;
82 typedef std::function<void(
const std::string&, std::int64_t, std::int64_t, std::int64_t,
const std::vector<std::int64_t>&)> debugtrace_t;
83 virtual std::string
toString()
const override;
88 std::string _sdapikey;
90 std::string _sdtokentype;
91 std::int64_t _maxsize;
92 std::int64_t _maxhole;
93 std::int64_t _aligned;
94 std::int64_t _segsize;
95 std::int64_t _threads;
96 std::string _legaltag;
98 std::string _seismicmeta;
99 std::string _sdtoken_cbtype;
100 tokencb_t _sdtokencb;
101 debugtrace_t _debug_trace;
112 this->_sdurl = value;
124 this->_sdapikey = value;
145 this->_sdtoken = value;
146 this->_sdtokentype = type;
147 this->_sdtokencb = tokencb_t();
163 this->_sdtokencb = value;
164 this->_sdtokentype = type;
165 this->_sdtoken = std::string();
197 if (value < 0 || value > 1024)
199 this->_maxsize = value * (std::int64_t)(1024*1024);
223 if (value < 0 || value > 1024)
225 this->_maxhole = value * (std::int64_t)(1024*1024);
243 if (value < 0 || value > 1024)
245 this->_aligned = value * (std::int64_t)(1024*1024);
257 if (value < 0 || value > 16*1024)
259 this->_segsize = value * (std::int64_t)(1024*1024);
279 if (value < 1 || value > 1024)
281 this->_threads = value;
290 this->_legaltag = value;
301 this->_writeid = value;
314 this->_seismicmeta = value;
327 this->_debug_trace = value;
Defines exceptions that may be raised by OpenZGY.
SeismicStoreIOContext & maxsize(int value)
Definition: iocontext.h:195
SeismicStoreIOContext & sdtokencb(const tokencb_t &value, const std::string &type)
Definition: iocontext.h:162
virtual std::string toString() const =0
SeismicStoreIOContext & legaltag(const std::string &value)
Definition: iocontext.h:288
SeismicStoreIOContext & sdtoken(const std::string &value, const std::string &type)
Definition: iocontext.h:144
Exception that might be caused by the calling application.
Definition: exception.h:98
SeismicStoreIOContext & sdurl(const std::string &value)
Definition: iocontext.h:110
SeismicStoreIOContext & debug_trace(const debugtrace_t &value)
Definition: iocontext.h:325
SeismicStoreIOContext & sdapikey(const std::string &value)
Definition: iocontext.h:122
SeismicStoreIOContext & seismicmeta(const std::string &value)
Definition: iocontext.h:312
SeismicStoreIOContext & writeid(const std::string &value)
Definition: iocontext.h:299
Base class for backend specific context.
Definition: iocontext.h:49
SeismicStoreIOContext & segsize(int value)
Definition: iocontext.h:255
SeismicStoreIOContext & maxhole(int value)
Definition: iocontext.h:221
SeismicStoreIOContext & aligned(int value)
Definition: iocontext.h:241
The entire public API is in this namespace.
Definition: api.h:38
Credentials and configuration for Seismic Store.
Definition: iocontext.h:73
SeismicStoreIOContext & threads(int value)
Definition: iocontext.h:277