OpendTect  6.3
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 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "generalmod.h"
16 #include "cbvsio.h"
17 #include "cbvsinfo.h"
18 
19 class CBVSWriter;
20 
24 {
25 public:
26  VBrickSpec() { setStd(false); }
27 
28  void setStd(bool yn_bricking=false);
29 
32 };
33 
34 
37 mExpClass(General) CBVSWriteMgr : public CBVSIOMgr
39 public:
40 
41  CBVSWriteMgr(const char* basefname,const CBVSInfo&,
42  const PosAuxInfo* =0,VBrickSpec* =0,
43  bool singlefile=false,
46  ~CBVSWriteMgr();
47 
48  unsigned long bytesPerFile() const;
53  void setBytesPerFile(unsigned long);
55  void setForceTrailers(bool yn=true);
56 
57  bool put(void**);
59  void close();
61 
62  int nrComponents() const;
63  const BinID& binID() const;
64 
65  void ensureConsistent();
66 
67 protected:
68 
75 
76  const uiString errMsg_() const;
77 
78  od_ostream* mkStrm();
79  void cleanup();
80 
81 };
#define mExpClass(module)
Definition: commondefs.h:157
bool forcetrailers_
Definition: cbvswritemgr.h:74
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
Writer for CBVS file packs.
Definition: cbvswritemgr.h:37
int nrsamplesperslab
-1 means no bricking
Definition: cbvswritemgr.h:30
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Base class for CBVS read and write manager.
Definition: cbvsio.h:72
void close()
Definition: cbvswriter.h:64
int maxnrslabs
Definition: cbvswritemgr.h:31
Definition: uistring.h:88
CoordPol
Definition: cbvsio.h:50
TypeSet< int > endsamps_
Definition: cbvswritemgr.h:70
CBVSIO::CoordPol coordpol_
Definition: cbvswritemgr.h:73
Data available in CBVS format header and trailer.
Definition: cbvsinfo.h:32
Writer for CBVS format.
Definition: cbvswriter.h:35
int nrComponents() const
Definition: cbvsio.h:42
bool single_file
Definition: cbvswritemgr.h:72
ObjectSet< CBVSWriter > writers_
Definition: cbvswritemgr.h:69
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
Auxiliary data possibly needed at location. Mostly a seismic thing.
Definition: posauxinfo.h:21
VBrickSpec()
Definition: cbvswritemgr.h:26
const BinID & binID() const
Definition: cbvsio.h:43
int put(void **, int offs=0)
Vertical bricking specification.
Definition: cbvswritemgr.h:23
CBVSInfo info_
Definition: cbvswritemgr.h:71
Definition: cbvsio.h:50

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