OpendTect  6.3
datacoldef.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: Jan 2005
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "generalmod.h"
14 #include "bufstring.h"
15 class UnitOfMeasure;
16 
17 
28 {
29 public:
30  DataColDef( const char* nm, const char* ref=0,
31  const UnitOfMeasure* un=0 )
32  : name_(nm), ref_(ref), unit_(un) {}
33  bool operator ==( const DataColDef& dcd ) const
34  { return name_ == dcd.name_
35  && ref_ == dcd.ref_
36  && unit_ == dcd.unit_; }
37 
41 
42  enum MatchLevel { Exact, Start, None };
43  MatchLevel compare(const DataColDef&,bool use_name) const;
45 
46  void putTo(BufferString&) const;
47  void getFrom(const char*);
48 
49  static const DataColDef& unknown();
50 
51 };
#define mExpClass(module)
Definition: commondefs.h:157
BufferString ref_
Definition: datacoldef.h:39
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
FixedString None()
Definition: keystrs.h:90
Definition: datacoldef.h:42
BufferString name_
Definition: datacoldef.h:38
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
const UnitOfMeasure * unit_
Definition: datacoldef.h:40
Column definition in tabular data sets.
Definition: datacoldef.h:27
BufferString name_
Definition: namedobj.h:42
DataColDef(const char *nm, const char *ref=0, const UnitOfMeasure *un=0)
Definition: datacoldef.h:30
Unit of Measure.
Definition: unitofmeasure.h:33
MatchLevel
Definition: datacoldef.h:42

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