OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ODMad::FileSpec Class Reference

Specifies file name and optional mask filename. More...

Public Member Functions

 FileSpec (bool forread)
 
uiString errMsg () const
 
const char * fileName () const
 
void fillPar (IOPar &) const
 
const char * maskFileName ()
 
StreamData open () const
 if !usable() -> errMsg() More...
 
StreamData openMask () const
 if !usable() -> errMsg() More...
 
bool set (const char *fnm, const char *maskfnm=0)
 
bool usePar (const IOPar &)
 sets errMsg() if failed More...
 

Static Public Member Functions

static const char * defPath ()
 returns Madagascar dir in survey More...
 
static const char * madDataPath ()
 
static const char * sKeyMaskFile ()
 

Protected Member Functions

StreamData doOpen (const char *) const
 
bool fileNameOK (const char *) const
 

Protected Attributes

uiString errmsg_
 
BufferString fnm_
 
bool forread_
 
BufferString maskfnm_
 

Detailed Description

Specifies file name and optional mask filename.

<>

Constructor & Destructor Documentation

◆ FileSpec()

ODMad::FileSpec::FileSpec ( bool  forread)

Member Function Documentation

◆ defPath()

static const char* ODMad::FileSpec::defPath ( )
static

returns Madagascar dir in survey

◆ doOpen()

StreamData ODMad::FileSpec::doOpen ( const char *  ) const
protected

◆ errMsg()

uiString ODMad::FileSpec::errMsg ( ) const
inline

◆ fileName()

const char* ODMad::FileSpec::fileName ( ) const
inline

◆ fileNameOK()

bool ODMad::FileSpec::fileNameOK ( const char *  ) const
protected

◆ fillPar()

void ODMad::FileSpec::fillPar ( IOPar ) const

◆ madDataPath()

static const char* ODMad::FileSpec::madDataPath ( )
static

◆ maskFileName()

const char* ODMad::FileSpec::maskFileName ( )
inline

◆ open()

StreamData ODMad::FileSpec::open ( ) const

if !usable() -> errMsg()

◆ openMask()

StreamData ODMad::FileSpec::openMask ( ) const

if !usable() -> errMsg()

◆ set()

bool ODMad::FileSpec::set ( const char *  fnm,
const char *  maskfnm = 0 
)

◆ sKeyMaskFile()

static const char* ODMad::FileSpec::sKeyMaskFile ( )
static

◆ usePar()

bool ODMad::FileSpec::usePar ( const IOPar )

sets errMsg() if failed

Member Data Documentation

◆ errmsg_

uiString ODMad::FileSpec::errmsg_
mutableprotected

◆ fnm_

BufferString ODMad::FileSpec::fnm_
protected

◆ forread_

bool ODMad::FileSpec::forread_
protected

◆ maskfnm_

BufferString ODMad::FileSpec::maskfnm_
protected

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