OpendTect  6.6
Public Types | Public Member Functions | List of all members
ODMad::RSFHeader Class Reference
Inheritance diagram for ODMad::RSFHeader:
[legend]

Public Types

enum  Format {
  NativeFloat , NativeInt , AsciiFloat , AsciiInt ,
  Other
}
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 RSFHeader ()
 
 ~RSFHeader ()
 
Format getDataFormat () const
 
const char * getDataSource () const
 
SamplingData< float > getFSampling (int dim) const
 
const char * getODVersion () const
 
SamplingData< int > getSampling (int dim) const
 
const char * getTrcHeaderFile () const
 
int nrDims () const
 
int nrVals (int dim) const
 
bool read (const char *fnm)
 
bool read (od_istream &)
 
void setDataFormat (Format)
 
void setDataSource (const char *)
 
void setFSampling (int dim, const SamplingData< float > &)
 
void setNrVals (int dim, int nr)
 
void setODVersion (const char *)
 
void setSampling (int dim, const SamplingData< int > &)
 
void setTrcHeaderFile (const char *)
 
bool write (const char *fnm) const
 
bool write (od_ostream &) const
 
- Public Member Functions inherited from IOPar
 IOPar (ascistream &)
 
 IOPar (const char *nm=nullptr)
 empty More...
 
 IOPar (const IOPar &)
 
 ~IOPar ()
 
void add (const char *, double)
 
void add (const char *, double, double)
 
void add (const char *, double, double, double)
 
void add (const char *, double, double, double, double)
 
void add (const char *, float)
 
void add (const char *, float, float)
 
void add (const char *, float, float, float)
 
void add (const char *, float, float, float, float)
 
void add (const char *, int)
 
void add (const char *, int, int)
 
void add (const char *, int, int, int)
 
void add (const char *, int, int, int, int)
 
void add (const char *, int64_t)
 
void add (const char *, int64_t, int64_t)
 
void add (const char *, int64_t, int64_t, int64_t)
 
void add (const char *, int64_t, int64_t, int64_t, int64_t)
 
void add (const char *, short)
 
void add (const char *, short, short)
 
void add (const char *, short, short, short)
 
void add (const char *, short, short, short, short)
 
void add (const char *, uint64_t)
 
void add (const char *, uint64_t, uint64_t)
 
void add (const char *, uint64_t, uint64_t, uint64_t)
 
void add (const char *, uint64_t, uint64_t, uint64_t, uint64_t)
 
void add (const char *, unsigned int)
 
void add (const char *, unsigned int, unsigned int)
 
void add (const char *, unsigned int, unsigned int, unsigned int)
 
void add (const char *, unsigned int, unsigned int, unsigned int, unsigned int)
 
void add (const char *, unsigned short)
 
void add (const char *, unsigned short, unsigned short)
 
void add (const char *, unsigned short, unsigned short, unsigned short)
 
void add (const char *, unsigned short, unsigned short, unsigned short, unsigned short)
 
void add (const char *ky, const char *val)
 
void add (const char *ky, const OD::String &val)
 
void addFrom (const IOPar &)
 merge entries but do not overwrite More...
 
void addVal (const char *ky, const char *valtoadd)
 
void addYN (const char *, bool)
 
void addYN (const char *, bool, bool)
 
void addYN (const char *, bool, bool, bool)
 
void addYN (const char *, bool, bool, bool, bool)
 
void dumpPretty (BufferString &) const
 
void dumpPretty (od_ostream &) const
 
void fillJSON (OD::JSON::Object &obj)
 only save the top level objects More...
 
const char * find (const char *) const
 returns null if not found More...
 
const char * findKeyFor (const char *, int nr=0) const
 returns null if value not found More...
 
bool get (const char *, BinID &) const
 
bool get (const char *, BoolTypeSet &) const
 
bool get (const char *, BufferString &) const
 
bool get (const char *, BufferString &, BufferString &) const
 
bool get (const char *, BufferString &, BufferString &, BufferString &) const
 
bool get (const char *, BufferStringSet &) const
 
bool get (const char *, Color &) const
 
bool get (const char *, Coord &) const
 
bool get (const char *, Coord3 &) const
 
bool get (const char *, DBKey &) const
 
bool get (const char *, DBKeySet &) const
 
bool get (const char *, double &) const
 
bool get (const char *, double &, double &) const
 
bool get (const char *, double &, double &, double &) const
 
bool get (const char *, double &, double &, double &, double &) const
 
bool get (const char *, float &) const
 
bool get (const char *, float &, float &) const
 
bool get (const char *, float &, float &, float &) const
 
bool get (const char *, float &, float &, float &, float &) const
 
bool get (const char *, int &) const
 
bool get (const char *, int &, int &) const
 
bool get (const char *, int &, int &, float &) const
 
bool get (const char *, int &, int &, int &) const
 
bool get (const char *, int &, int &, int &, int &) const
 
bool get (const char *, int64_t &) const
 
bool get (const char *, int64_t &, int64_t &) const
 
bool get (const char *, int64_t &, int64_t &, int64_t &) const
 
bool get (const char *, int64_t &, int64_t &, int64_t &, int64_t &) const
 
template<class T >
bool get (const char *, Interval< T > &) const
 
bool get (const char *, MultiID &) const
 
template<class T >
bool get (const char *, SamplingData< T > &) const
 
bool get (const char *, SeparString &) const
 
bool get (const char *, short &) const
 
bool get (const char *, short &, short &) const
 
bool get (const char *, short &, short &, short &) const
 
bool get (const char *, short &, short &, short &, short &) const
 
bool get (const char *, TrcKey &) const
 
bool get (const char *, TypeSet< double > &) const
 
bool get (const char *, TypeSet< float > &) const
 
bool get (const char *, TypeSet< int > &) const
 
bool get (const char *, TypeSet< int64_t > &) const
 
bool get (const char *, TypeSet< MultiID > &) const
 
bool get (const char *, TypeSet< short > &) const
 
bool get (const char *, TypeSet< uint64_t > &) const
 
bool get (const char *, TypeSet< unsigned int > &) const
 
bool get (const char *, TypeSet< unsigned short > &) const
 
bool get (const char *, uint64_t &) const
 
bool get (const char *, uint64_t &, uint64_t &) const
 
bool get (const char *, uint64_t &, uint64_t &, uint64_t &) const
 
bool get (const char *, uint64_t &, uint64_t &, uint64_t &, uint64_t &) const
 
bool get (const char *, uiString &) const
 
bool get (const char *, unsigned int &) const
 
bool get (const char *, unsigned int &, unsigned int &) const
 
bool get (const char *, unsigned int &, unsigned int &, unsigned int &) const
 
bool get (const char *, unsigned int &, unsigned int &, unsigned int &, unsigned int &) const
 
bool get (const char *, unsigned short &) const
 
bool get (const char *, unsigned short &, unsigned short &) const
 
bool get (const char *, unsigned short &, unsigned short &, unsigned short &) const
 
bool get (const char *, unsigned short &, unsigned short &, unsigned short &, unsigned short &) const
 
void getFrom (ascistream &)
 
void getFrom (const char *)
 
FixedString getKey (int) const
 
void getParsFrom (const char *)
 
bool getPtr (const char *, void *&) const
 
bool getScaled (const char *, double &, double &, double &, double &, double, bool) const
 
bool getScaled (const char *, double &, double &, double &, double, bool) const
 
bool getScaled (const char *, double &, double &, double, bool) const
 
bool getScaled (const char *, double &, double applied_scale, bool set_to_undef_if_not_found) const
 
bool getScaled (const char *, float &, float &, float &, float &, float, bool) const
 
bool getScaled (const char *, float &, float &, float &, float, bool) const
 
bool getScaled (const char *, float &, float &, float, bool) const
 
bool getScaled (const char *, float &, float applied_scale, bool set_to_undef_if_not_found) const
 
FixedString getValue (int) const
 
bool getYN (const char *, bool &) const
 
bool getYN (const char *, bool &, bool &) const
 
bool getYN (const char *, bool &, bool &, bool &) const
 
bool getYN (const char *, bool &, bool &, bool &, bool &) const
 
bool hasKey (const char *s) const
 
bool includes (const IOPar &) const
 
int indexOf (const char *key) const
 
bool isEmpty () const
 
bool isEqual (const IOPar &, bool need_same_order=false) const
 
bool isFalse (const char *key) const
 
bool isPresent (const char *ky) const
 
bool isTrue (const char *key) const
 
int majorVersion () const
 Only set if read from file. Otherwise set to current. More...
 
int maxContentSize (bool keys_else_values) const
 
void merge (const IOPar &)
 merge entries using the set() command More...
 
void mergeComp (const IOPar &, const char *)
 merge entries, where IOPar's entries get a prefix More...
 
int minorVersion () const
 Only set if read from file. Otherwise set to current. More...
 
int odVersion () const
 
bool operator!= (const IOPar &iop) const
 
IOParoperator= (const IOPar &)
 
bool operator== (const IOPar &iop) const
 
FixedString operator[] (const char *ky) const
 
int patchVersion () const
 Only set if read from file. Otherwise set to current. More...
 
void putParsTo (BufferString &) const
 
void putTo (ascostream &) const
 
void putTo (BufferString &) const
 
bool read (const char *filename, const char *filetype, bool chktype=false)
 
bool read (od_istream &, const char *filetype, bool chktype=false)
 
void remove (int)
 
void removeSubSelection (const char *str)
 removes with key that start with str. More...
 
void removeSubSelection (const OD::String &fs)
 
void removeSubSelection (int)
 removes with key that start with number. More...
 
void removeWithKey (const char *key)
 
void removeWithKeyPattern (const char *globexpression)
 
void set (const char *, const BinID &)
 
void set (const char *, const BoolTypeSet &)
 
void set (const char *, const BufferStringSet &)
 
void set (const char *, const char *, const char *)
 
void set (const char *, const char *, const char *, const char *)
 
void set (const char *, const Color &)
 
void set (const char *, const Coord &)
 
void set (const char *, const Coord3 &)
 
void set (const char *, const DBKey &)
 
void set (const char *, const DBKeySet &)
 
template<class T >
void set (const char *, const Interval< T > &)
 
void set (const char *, const MultiID &)
 
void set (const char *, const OD::String &)
 
void set (const char *, const OD::String &, const OD::String &)
 
void set (const char *, const OD::String &, const OD::String &, const OD::String &)
 
template<class T >
void set (const char *, const SamplingData< T > &)
 
void set (const char *, const SeparString &)
 
void set (const char *, const TrcKey &)
 
void set (const char *, const TypeSet< double > &)
 
void set (const char *, const TypeSet< float > &)
 
void set (const char *, const TypeSet< int > &)
 
void set (const char *, const TypeSet< int64_t > &)
 
void set (const char *, const TypeSet< MultiID > &)
 
void set (const char *, const TypeSet< short > &)
 
void set (const char *, const TypeSet< uint64_t > &)
 
void set (const char *, const TypeSet< unsigned int > &)
 
void set (const char *, const TypeSet< unsigned short > &)
 
void set (const char *, const uiString &)
 
void set (const char *, double)
 
void set (const char *, double, double)
 
void set (const char *, double, double, double)
 
void set (const char *, double, double, double, double)
 
void set (const char *, float)
 
void set (const char *, float, float)
 
void set (const char *, float, float, float)
 
void set (const char *, float, float, float, float)
 
void set (const char *, int)
 
void set (const char *, int, int)
 
void set (const char *, int, int, float)
 
void set (const char *, int, int, int)
 
void set (const char *, int, int, int, int)
 
void set (const char *, int64_t)
 
void set (const char *, int64_t, int64_t)
 
void set (const char *, int64_t, int64_t, int64_t)
 
void set (const char *, int64_t, int64_t, int64_t, int64_t)
 
void set (const char *, short)
 
void set (const char *, short, short)
 
void set (const char *, short, short, short)
 
void set (const char *, short, short, short, short)
 
void set (const char *, uint64_t)
 
void set (const char *, uint64_t, uint64_t)
 
void set (const char *, uint64_t, uint64_t, uint64_t)
 
void set (const char *, uint64_t, uint64_t, uint64_t, uint64_t)
 
void set (const char *, unsigned int)
 
void set (const char *, unsigned int, unsigned int)
 
void set (const char *, unsigned int, unsigned int, unsigned int)
 
void set (const char *, unsigned int, unsigned int, unsigned int, unsigned int)
 
void set (const char *, unsigned short)
 
void set (const char *, unsigned short, unsigned short)
 
void set (const char *, unsigned short, unsigned short, unsigned short)
 
void set (const char *, unsigned short, unsigned short, unsigned short, unsigned short)
 
void set (const char *ky, const char *val)
 
void setEmpty ()
 remove all entries (doesn't clear name) More...
 
bool setKey (int, const char *)
 
void setPtr (const char *, void *)
 
void setStdCreationEntries ()
 
void setToDateTime (const char *ky=nullptr)
 
void setToUser (const char *ky=nullptr)
 
void setValue (int, const char *)
 
void setYN (const char *, bool)
 
void setYN (const char *, bool, bool)
 
void setYN (const char *, bool, bool, bool)
 
void setYN (const char *, bool, bool, bool, bool)
 
int size () const
 
IOParsubselect (const char *str) const
 returns iopar with key that start with str. More...
 
IOParsubselect (const OD::String &fs) const
 
IOParsubselect (int) const
 returns iopar with key that start with number. More...
 
void update (const char *ky, const char *val)
 
bool write (const char *filename, const char *filetype) const
 
bool write (od_ostream &, const char *filetyp) const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Additional Inherited Members

- Static Public Member Functions inherited from IOPar
static const char * compKey (const char *, const char *)
 The composite key: (a,b) -> a.b. More...
 
static const char * compKey (const char *, int)
 The composite key where int will be --> string. More...
 
static const char * compKey (const char *ky1, const OD::String &ky2)
 
static const char * sKeyDumpPretty ()
 
static const char * sKeyHdr ()
 
static const char * sKeySubHdr ()
 
- Protected Member Functions inherited from IOPar
void setPatchVersion (int)
 
- Protected Attributes inherited from IOPar
BufferStringSetkeys_
 
int majorversion_
 
int minorversion_
 
BufferStringSetvals_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

<>

Member Enumeration Documentation

◆ Format

Enumerator
NativeFloat 
NativeInt 
AsciiFloat 
AsciiInt 
Other 

Constructor & Destructor Documentation

◆ RSFHeader()

ODMad::RSFHeader::RSFHeader ( )
inline

◆ ~RSFHeader()

ODMad::RSFHeader::~RSFHeader ( )
inline

Member Function Documentation

◆ getDataFormat()

Format ODMad::RSFHeader::getDataFormat ( ) const

◆ getDataSource()

const char* ODMad::RSFHeader::getDataSource ( ) const

◆ getFSampling()

SamplingData<float> ODMad::RSFHeader::getFSampling ( int  dim) const

◆ getODVersion()

const char* ODMad::RSFHeader::getODVersion ( ) const

◆ getSampling()

SamplingData<int> ODMad::RSFHeader::getSampling ( int  dim) const

◆ getTrcHeaderFile()

const char* ODMad::RSFHeader::getTrcHeaderFile ( ) const

◆ nrDims()

int ODMad::RSFHeader::nrDims ( ) const

◆ nrVals()

int ODMad::RSFHeader::nrVals ( int  dim) const

◆ read() [1/2]

bool ODMad::RSFHeader::read ( const char *  fnm)

◆ read() [2/2]

bool ODMad::RSFHeader::read ( od_istream )

◆ setDataFormat()

void ODMad::RSFHeader::setDataFormat ( Format  )

◆ setDataSource()

void ODMad::RSFHeader::setDataSource ( const char *  )

◆ setFSampling()

void ODMad::RSFHeader::setFSampling ( int  dim,
const SamplingData< float > &   
)

◆ setNrVals()

void ODMad::RSFHeader::setNrVals ( int  dim,
int  nr 
)

◆ setODVersion()

void ODMad::RSFHeader::setODVersion ( const char *  )

◆ setSampling()

void ODMad::RSFHeader::setSampling ( int  dim,
const SamplingData< int > &   
)

◆ setTrcHeaderFile()

void ODMad::RSFHeader::setTrcHeaderFile ( const char *  )

◆ write() [1/2]

bool ODMad::RSFHeader::write ( const char *  fnm) const

◆ write() [2/2]

bool ODMad::RSFHeader::write ( od_ostream ) const

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