OpendTect  6.6
Public Types | Public Member Functions | Private Attributes | List of all members
DirList Class Reference

Provides file and directory names in a certain directory. More...

Inheritance diagram for DirList:
[legend]

Public Types

typedef File::DirListType DLType
 
enum  Type { AllEntries , FilesOnly , DirsOnly }
 
- Public Types inherited from BufferStringSet
typedef impl_type::const_iterator const_iterator
 
typedef impl_type::const_reference const_reference
 
typedef impl_type::difference_type difference_type
 
typedef impl_type::idx_type idx_type
 
typedef impl_type::iterator iterator
 
typedef impl_type::object_type object_type
 
typedef impl_type::reference reference
 
typedef ObjectSet< BufferStringSetType
 
typedef impl_type::size_type size_type
 
typedef impl_type::value_type value_type
 

Public Member Functions

 DirList (const char *, DLType t=File::AllEntriesInDir, const char *msk=0)
 
 DirList (const char *, Type, const char *msk=0)
 
BufferStringdir ()
 
const char * dirMask () const
 
const char * dirName () const
 
const char * fullPath (int) const
 
DLType type () const
 
void update ()
 
- Public Member Functions inherited from BufferStringSet
 BufferStringSet ()
 
 BufferStringSet (const char *)
 
 BufferStringSet (const char *, const char *)
 
 BufferStringSet (const char *, const char *, const char *)
 
 BufferStringSet (const char *arr[], size_type len=-1)
 
 BufferStringSet (size_type n, const char *s=nullptr)
 
virtual ~BufferStringSet ()
 
BufferStringSetadd (BufferString *bs)
 
BufferStringSetadd (const BufferStringSet &, bool allowduplicates)
 
BufferStringSetadd (const char *)
 
BufferStringSetadd (const char *arr[], size_type len=-1)
 
BufferStringSetadd (const OD::String &)
 
BufferStringSetadd (const QString &)
 
bool addIfNew (const char *)
 returns whether added More...
 
bool addIfNew (const OD::String &)
 
BufferStringSetaddToAll (const char *, bool infront=false)
 
BufferStringSetaddWordsFrom (const char *)
 
void allowNull (bool yn=true)
 
void append (const BufferStringSet &oth)
 
iterator begin ()
 
const_iterator begin () const
 
BufferString cat (const char *sepstr="\n") const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
BufferStringSetclone () const
 
BufferString commonStart () const
 
BufferStringSetcopy (const BufferStringSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
virtual void erase ()
 
void fill (QStringList &) const
 
void fill (uiStringSet &) const
 
virtual void fillPar (IOPar &) const
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
idx_type firstDuplicateOf (idx_type, CaseSensitivity c=CaseSensitive, idx_type startat=0) const
 
BufferStringget (idx_type idx)
 
const BufferStringget (idx_type idx) const
 
BufferString getDispString (size_type maxnritems=-1, bool quoted=true) const
 
size_type getIdx (const_iterator it) const
 
size_type getIdx (iterator it) const
 
TypeSet< idx_typegetMatches (const char *globexpr, CaseSensitivity cs=CaseInsensitive) const
 
idx_typegetSortIndexes (bool caseinsns=true, bool asc=true) const
 
SetTypegetStringSet ()
 
const SetTypegetStringSet () const
 
uiStringSet getUiStringSet () const
 
bool hasUniqueNames (CaseSensitivity c=CaseSensitive) const
 
idx_type indexOf (const BufferString *b) const
 
idx_type indexOf (const char *, CaseSensitivity s=CaseSensitive) const
 first match More...
 
idx_type indexOf (const GlobExpr &) const
 first match More...
 
void insertAt (BufferString *bs, idx_type idx)
 
bool isEmpty () const
 
bool isPresent (const BufferString *b) const
 
bool isPresent (const char *s, CaseSensitivity c=CaseSensitive) const
 
bool isSubsetOf (const BufferStringSet &) const
 
BufferStringlast ()
 
const BufferStringlast () const
 
size_type max_size () const
 
size_type maxLength () const
 
idx_type nearestMatch (const char *, bool caseinsens) const
 
idx_type nearestMatch (const char *, CaseSensitivity cs=CaseInsensitive) const
 
virtual int64_t nrItems () const
 
bool operator!= (const BufferStringSet &) const
 
BufferStringSetoperator+= (BufferString *bs)
 
BufferStringSetoperator= (const char *arr[])
 
bool operator== (const BufferStringSet &) const
 
BufferStringoperator[] (idx_type idx)
 
const BufferStringoperator[] (idx_type idx) const
 
bool remove (const char *)
 
void removeRange (idx_type i1, idx_type i2)
 
void removeSingle (idx_type i)
 
void removeSingle (idx_type i, bool)
 
BufferStringSetreplace (idx_type idx, BufferString *bs)
 
virtual void reverse ()
 
BufferStringSetset (idx_type idx, BufferString *bs)
 
void setEmpty ()
 
void setNullAllowed (bool yn=true)
 
size_type size () const
 
void sort (bool caseinsens=true, bool asc=true)
 
void swap (BufferStringSet &oth)
 
void swap (idx_type i1, idx_type i2)
 
virtual void swapItems (int64_t i1, int64_t i2)
 
void unCat (const char *, const char *sepstr="\n")
 
void use (const QStringList &)
 
void use (const uiStringSet &)
 
void useIndexes (const idx_type *idxs)
 
virtual void usePar (const IOPar &)
 
virtual bool validIdx (int64_t i) const
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Private Attributes

BufferString dir_
 
BufferString mask_
 
DLType type_
 

Additional Inherited Members

- Static Public Member Functions inherited from OD::Set
static int maxIdx32 ()
 
static int64_t maxIdx64 ()
 
- Protected Types inherited from BufferStringSet
typedef ManagedObjectSet< BufferStringimpl_type
 
- Protected Attributes inherited from BufferStringSet
impl_type strs_
 

Detailed Description

Provides file and directory names in a certain directory.

<>

Member Typedef Documentation

◆ DLType

Member Enumeration Documentation

◆ Type

Enumerator
AllEntries 
FilesOnly 
DirsOnly 

Constructor & Destructor Documentation

◆ DirList() [1/2]

DirList::DirList ( const char *  ,
DLType  t = File::AllEntriesInDir,
const char *  msk = 0 
)

msk can be a glob expression

◆ DirList() [2/2]

DirList::DirList ( const char *  ,
Type  ,
const char *  msk = 0 
)

Member Function Documentation

◆ dir()

BufferString& DirList::dir ( )
inline

◆ dirMask()

const char* DirList::dirMask ( ) const
inline

◆ dirName()

const char* DirList::dirName ( ) const
inline

◆ fullPath()

const char* DirList::fullPath ( int  ) const

◆ type()

DLType DirList::type ( ) const
inline

◆ update()

void DirList::update ( )

Member Data Documentation

◆ dir_

BufferString DirList::dir_
private

◆ mask_

BufferString DirList::mask_
private

◆ type_

DLType DirList::type_
private

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