OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
FileFormat Class Reference

A file format description for simple selection of files. More...

Public Member Functions

 FileFormat (const char *traditional_img_fmt_str)
 
 FileFormat (const uiString &, const char *ext=0, const char *ext2=0, const char *ext3=0)
 
void addExtension (const char *)
 
const char * extension (int) const
 
BufferString getFileFilter () const
 
bool hasExtension (const char *) const
 
int nrExtensions () const
 
const uiStringuserDesc () const
 

Static Public Member Functions

static const FileFormatallFiles ()
 
static const FileFormathdf5Files ()
 
static const FileFormatimageFiles ()
 
static const FileFormatparFiles ()
 
static const FileFormatshlibFiles ()
 
static const FileFormattextFiles ()
 
static const FileFormatzipFiles ()
 

Protected Attributes

BufferStringSet exts_
 
uiString usrdesc_
 

Friends

class FileFormatList
 

Detailed Description

A file format description for simple selection of files.

Extensions are treated case insensitive, but if you add different versions with different case the exact match will be preferred.

<>

Constructor & Destructor Documentation

◆ FileFormat() [1/2]

FileFormat::FileFormat ( const uiString ,
const char *  ext = 0,
const char *  ext2 = 0,
const char *  ext3 = 0 
)

◆ FileFormat() [2/2]

FileFormat::FileFormat ( const char *  traditional_img_fmt_str)

Member Function Documentation

◆ addExtension()

void FileFormat::addExtension ( const char *  )

◆ allFiles()

static const FileFormat& FileFormat::allFiles ( )
static

◆ extension()

const char* FileFormat::extension ( int  ) const

◆ getFileFilter()

BufferString FileFormat::getFileFilter ( ) const

◆ hasExtension()

bool FileFormat::hasExtension ( const char *  ) const

◆ hdf5Files()

static const FileFormat& FileFormat::hdf5Files ( )
static

◆ imageFiles()

static const FileFormat& FileFormat::imageFiles ( )
static

◆ nrExtensions()

int FileFormat::nrExtensions ( ) const
inline

◆ parFiles()

static const FileFormat& FileFormat::parFiles ( )
static

◆ shlibFiles()

static const FileFormat& FileFormat::shlibFiles ( )
static

◆ textFiles()

static const FileFormat& FileFormat::textFiles ( )
static

◆ userDesc()

const uiString& FileFormat::userDesc ( ) const
inline

◆ zipFiles()

static const FileFormat& FileFormat::zipFiles ( )
static

Friends And Related Function Documentation

◆ FileFormatList

friend class FileFormatList
friend

Member Data Documentation

◆ exts_

BufferStringSet FileFormat::exts_
protected

◆ usrdesc_

uiString FileFormat::usrdesc_
protected

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