OpendTect  6.6
basiccompinfo.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: Component information
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "namedobj.h"
17 #include "datachar.h"
18 
19 
23 {
24 public:
25  BasicComponentInfo( const char* nm=0 )
26  : NamedObject(nm)
27  , datatype(0) {}
29  : NamedObject((const char*)ci.name())
30  { *this = ci; }
32  {
33  if ( this == &ci ) return *this;
34  setName( ci.name() );
35  datatype = ci.datatype;
36  datachar = ci.datachar;
37  return *this;
38  }
39 
40  bool operator==( const BasicComponentInfo& ci ) const
41  {
42  return name() == ci.name()
43  && datatype == ci.datatype
44  && datachar == ci.datachar;
45  }
46 
47  int datatype;
49 
50 };
51 
52 
BasicComponentInfo::BasicComponentInfo
BasicComponentInfo(const char *nm=0)
Definition: basiccompinfo.h:25
NamedObject
object with a name.
Definition: namedobj.h:42
datachar.h
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
BasicComponentInfo::operator=
BasicComponentInfo & operator=(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:31
namedobj.h
BasicComponentInfo
Info on one component.
Definition: basiccompinfo.h:23
BasicComponentInfo::datatype
int datatype
Definition: basiccompinfo.h:47
NamedObject::name
virtual const name_type & name() const
Definition: namedobj.h:54
BasicComponentInfo::operator==
bool operator==(const BasicComponentInfo &ci) const
Definition: basiccompinfo.h:40
BasicComponentInfo::BasicComponentInfo
BasicComponentInfo(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:28
BasicComponentInfo::datachar
DataCharacteristics datachar
Definition: basiccompinfo.h:48
DataCharacteristics
byte-level data characteristics of stored data.
Definition: datachar.h:37

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