OpendTect-6_4  6.4
datacoldef.h
Go to the documentation of this file.
1 #ifndef datacoldef_h
2 #define datacoldef_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: Jan 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "bufstring.h"
17 class UnitOfMeasure;
18 
19 
30 {
31 public:
32  DataColDef( const char* nm, const char* ref=0,
33  const UnitOfMeasure* un=0 )
34  : name_(nm), ref_(ref), unit_(un) {}
35  bool operator ==( const DataColDef& dcd ) const
36  { return name_ == dcd.name_
37  && ref_ == dcd.ref_
38  && unit_ == dcd.unit_; }
39 
43 
44  enum MatchLevel { Exact, Start, None };
45  MatchLevel compare(const DataColDef&,bool use_name) const;
47 
48  void putTo(BufferString&) const;
49  void getFrom(const char*);
50 
51  static const DataColDef& unknown();
52 
53 };
54 
55 
56 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferString ref_
Definition: datacoldef.h:41
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
FixedString None()
Definition: keystrs.h:90
Definition: datacoldef.h:44
BufferString * name_
Definition: namedobj.h:59
BufferString name_
Definition: datacoldef.h:40
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const UnitOfMeasure * unit_
Definition: datacoldef.h:42
Column definition in tabular data sets.
Definition: datacoldef.h:29
DataColDef(const char *nm, const char *ref=0, const UnitOfMeasure *un=0)
Definition: datacoldef.h:32
Unit of Measure.
Definition: unitofmeasure.h:35
MatchLevel
Definition: datacoldef.h:44

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