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

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