OpendTect-6_4  6.4
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

enum  Type { AllEntries, FilesOnly, DirsOnly }
 
- Public Types inherited from ManagedObjectSet< BufferString >
typedef int size_type
 
typedef BufferString object_type
 
- Public Types inherited from ObjectSet< BufferString >
typedef int size_type
 
typedef BufferString object_type
 

Public Member Functions

 DirList (const char *, Type t=AllEntries, const char *msk=0)
 
void update ()
 
Type type () const
 
const char * dirName () const
 
const char * dirMask () const
 
const char * fullPath (int) const
 
- Public Member Functions inherited from BufferStringSet
 BufferStringSet (int n=0, const char *s=0)
 
 BufferStringSet (const char *arr[], int len=-1)
 
bool operator== (const BufferStringSet &) const
 
BufferStringget (int idx)
 
const BufferStringget (int idx) const
 
int indexOf (const char *) const
 first match More...
 
int indexOf (const GlobExpr &) const
 first match More...
 
int indexOf (const BufferString *b) const
 
bool isPresent (const BufferString *b) const
 
bool isPresent (const char *s) const
 
int nearestMatch (const char *, bool caseinsens=true) const
 
bool isSubsetOf (const BufferStringSet &) const
 
BufferStringSetadd (const char *)
 
BufferStringSetadd (const OD::String &)
 
BufferStringSetadd (const QString &)
 
BufferStringSetadd (const BufferStringSet &, bool allowduplicates)
 
BufferStringSetadd (const char *arr[], int len=-1)
 
BufferStringSetaddToAll (const char *, bool infront=false)
 
bool addIfNew (const char *)
 returns whether added More...
 
bool addIfNew (const OD::String &)
 
int maxLength () const
 
void sort (bool caseinsens=true, bool asc=true)
 
BufferString commonStart () const
 
int * getSortIndexes (bool caseinsns=true, bool asc=true) const
 
void useIndexes (const int *)
 
virtual void fillPar (IOPar &) const
 
virtual void usePar (const IOPar &)
 
void fill (uiStringSet &) const
 
void use (const uiStringSet &)
 
BufferString cat (const char *sepstr="\n") const
 
void unCat (const char *, const char *sepstr="\n")
 
BufferString getDispString (int maxnritems=-1, bool quoted=true) const
 
- Public Member Functions inherited from ManagedObjectSet< BufferString >
 ManagedObjectSet ()
 
 ManagedObjectSet (const ManagedObjectSet< BufferString > &)
 
virtual ~ManagedObjectSet ()
 
ManagedObjectSet< BufferString > & operator= (const ObjectSet< BufferString > &)
 
ManagedObjectSet< BufferString > & operator= (const ManagedObjectSet< BufferString > &)
 
virtual bool isManaged () const
 
virtual void erase ()
 
virtual void append (const ObjectSet< BufferString > &)
 
virtual void removeRange (size_type, size_type)
 
virtual BufferStringremoveSingle (int idx, bool kporder=true)
 
virtual BufferStringremoveAndTake (int idx, bool kporder=true)
 
virtual BufferStringreplace (int idx, BufferString *)
 
virtual ManagedObjectSet< BufferString > & operator-= (BufferString *)
 
- Public Member Functions inherited from ObjectSet< BufferString >
 ObjectSet ()
 
 ObjectSet (const ObjectSet< BufferString > &)
 
virtual ~ObjectSet ()
 
ObjectSet< BufferString > & operator= (const ObjectSet< BufferString > &)
 
bool nullAllowed () const
 
void allowNull (bool yn=true)
 
size_type size () const
 
virtual int64_t nrItems () const
 
virtual BufferStringoperator[] (size_type)
 
virtual const BufferStringoperator[] (size_type) const
 
virtual BufferStringoperator[] (const BufferString *) const
 check & unconst More...
 
virtual bool validIdx (int64_t) const
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
BufferStringlast ()
 
const BufferStringlast () const
 
ObjectSet< BufferString > & add (BufferString *t)
 
ObjectSet< BufferString > & operator+= (BufferString *t)
 
void push (BufferString *t)
 
bool addIfNew (BufferString *)
 
virtual void insertAt (BufferString *newptr, size_type)
 
virtual void insertAfter (BufferString *newptr, size_type)
 
virtual void copy (const ObjectSet< BufferString > &)
 
virtual void swap (int64_t, int64_t)
 
virtual void reverse ()
 
virtual BufferStringpop ()
 
void plainErase ()
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Private Attributes

Type type_
 
BufferString dir_
 
BufferString mask_
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectSet< BufferString >
virtual ObjectSet< BufferString > & doAdd (BufferString *)
 
- Protected Attributes inherited from ObjectSet< BufferString >
VectorAccess< void *, size_typevec_
 
bool allow0_
 

Detailed Description

Provides file and directory names in a certain directory.

Member Enumeration Documentation

Enumerator
AllEntries 
FilesOnly 
DirsOnly 

Constructor & Destructor Documentation

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

msk can be a glob expression

Member Function Documentation

const char* DirList::dirMask ( ) const
inline
const char* DirList::dirName ( ) const
inline
const char* DirList::fullPath ( int  ) const
Type DirList::type ( ) const
inline
void DirList::update ( )

Member Data Documentation

BufferString DirList::dir_
private
BufferString DirList::mask_
private
Type DirList::type_
private

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