OpendTect  6.6
cbvswritemgr.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H.Bril
8  Date: 12-3-2001
9  Contents: Common Binary Volume Storage format writer
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "generalmod.h"
17 #include "cbvsio.h"
18 #include "cbvsinfo.h"
19 
20 class CBVSWriter;
21 class TraceData;
22 
26 {
27 public:
28  VBrickSpec() { setStd(false); }
29 
30  void setStd(bool yn_bricking=false);
31 
34 };
35 
36 
39 mExpClass(General) CBVSWriteMgr : public CBVSIOMgr
40 {
41 public:
42 
43  CBVSWriteMgr(const char* basefname,const CBVSInfo&,
44  const PosAuxInfo* =0,VBrickSpec* =0,
45  bool singlefile=false,
49 
50  unsigned long bytesPerFile() const;
55  void setBytesPerFile(unsigned long);
57  void setForceTrailers(bool yn=true);
58 
59  bool put(void**);
60  bool put(const TraceData&);
62  void close();
64 
65  int nrComponents() const;
66  const BinID& binID() const;
67 
69 
70 protected:
71 
78 
79  const char* errMsg_() const;
80 
82  void cleanup();
83 
84 };
85 
86 
CBVSWriteMgr::coordpol_
CBVSIO::CoordPol coordpol_
Definition: cbvswritemgr.h:76
CBVSIOMgr
Base class for CBVS read and write manager.
Definition: cbvsio.h:72
TraceData
A set of data buffers and their interpreters.
Definition: tracedata.h:32
VBrickSpec::VBrickSpec
VBrickSpec()
Definition: cbvswritemgr.h:28
VBrickSpec::setStd
void setStd(bool yn_bricking=false)
CBVSIO::CoordPol
CoordPol
Definition: cbvsio.h:49
ObjectSet< CBVSWriter >
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
CBVSWriteMgr::put
bool put(const TraceData &)
See CBVSWriter::put, only now succeeds or fails.
cbvsinfo.h
CBVSWriteMgr::CBVSWriteMgr
CBVSWriteMgr(const char *basefname, const CBVSInfo &, const PosAuxInfo *=0, VBrickSpec *=0, bool singlefile=false, CBVSIO::CoordPol cp=CBVSIO::InAux)
See CBVSWriter for parameters 2 and 3.
CBVSWriteMgr::info_
CBVSInfo info_
Definition: cbvswritemgr.h:74
CBVSWriteMgr::writers_
ObjectSet< CBVSWriter > writers_
Definition: cbvswritemgr.h:72
CBVSWriteMgr::binID
const BinID & binID() const
CBVSWriteMgr::put
bool put(void **)
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
VBrickSpec
Vertical bricking specification.
Definition: cbvswritemgr.h:26
CBVSWriteMgr::endsamps_
TypeSet< int > endsamps_
Definition: cbvswritemgr.h:73
PosAuxInfo
Auxiliray data possibly needed at location. Mostly a seismic thing.
Definition: posauxinfo.h:22
CBVSWriteMgr::forcetrailers_
bool forcetrailers_
Definition: cbvswritemgr.h:77
VBrickSpec::nrsamplesperslab
int nrsamplesperslab
-1 means no bricking
Definition: cbvswritemgr.h:32
CBVSWriteMgr::setBytesPerFile
void setBytesPerFile(unsigned long)
Only works without vertical bricking.
CBVSWriteMgr::~CBVSWriteMgr
~CBVSWriteMgr()
CBVSWriteMgr::ensureConsistent
void ensureConsistent()
VBrickSpec::maxnrslabs
int maxnrslabs
Definition: cbvswritemgr.h:33
cbvsio.h
CBVSIO::InAux
@ InAux
Definition: cbvsio.h:49
CBVSWriteMgr::bytesPerFile
unsigned long bytesPerFile() const
CBVSWriteMgr::mkStrm
od_ostream * mkStrm()
CBVSWriteMgr::cleanup
void cleanup()
CBVSWriteMgr::setForceTrailers
void setForceTrailers(bool yn=true)
CBVSWriteMgr
Writer for CBVS file packs.
Definition: cbvswritemgr.h:40
CBVSWriteMgr::errMsg_
const char * errMsg_() const
CBVSInfo
Data available in CBVS format header and trailer.
Definition: cbvsinfo.h:34
CBVSWriter
Writer for CBVS format.
Definition: cbvswriter.h:38
od_ostream
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
CBVSWriteMgr::nrComponents
int nrComponents() const
CBVSWriteMgr::close
void close()
See CBVSWriter::close.
CBVSWriteMgr::single_file
bool single_file
Definition: cbvswritemgr.h:75
TypeSet< int >

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021