OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CommandDefs Class Reference
Inheritance diagram for CommandDefs:
[legend]

Public Member Functions

 CommandDefs ()
 
 CommandDefs (const CommandDefs &oth)
 
 ~CommandDefs ()
 
bool addCmd (const char *, const uiString &, const char *, const uiString &, const BufferStringSet &)
 
bool addCmd (const char *, const uiString &, const char *, const uiString &, const BufferStringSet &, const BufferStringSet *)
 
const BufferStringSetargs (int argidx) const
 
void erase () override
 
BufferString getIconName (int) const
 
uiString getToolTip (int) const
 
uiString getUiName (int) const
 
const uiStringSetgetUiNames () const
 
CommandDefsoperator= (const CommandDefs &)
 
const char * program (int) const
 
- 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
 
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 ()
 

Static Public Member Functions

static bool checkCommandExists (const char *, const BufferStringSet &)
 
static const CommandDefsgetTerminalCommands (const BufferStringSet &)
 
- Static Public Member Functions inherited from OD::Set
static int maxIdx32 ()
 
static int64_t maxIdx64 ()
 

Protected Member Functions

void addApplication (const char *appnm)
 
void addApplication (const char *appnm, const BufferStringSet *args)
 
void addHints (BufferStringSet &, const char *)
 
ObjectSet< BufferStringSet > & getProgArgs () const
 
BufferStringSetgetProgNames () const
 

Protected Attributes

BufferStringSet iconnms_
 
uiStringSet tooltips_
 
uiStringSet uinames_
 
- Protected Attributes inherited from BufferStringSet
impl_type strs_
 

Additional Inherited Members

- 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
 
- Protected Types inherited from BufferStringSet
typedef ManagedObjectSet< BufferStringimpl_type
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ CommandDefs() [1/2]

CommandDefs::CommandDefs ( )

◆ CommandDefs() [2/2]

CommandDefs::CommandDefs ( const CommandDefs oth)

◆ ~CommandDefs()

CommandDefs::~CommandDefs ( )

Member Function Documentation

◆ addApplication() [1/2]

void CommandDefs::addApplication ( const char *  appnm)
protected

◆ addApplication() [2/2]

void CommandDefs::addApplication ( const char *  appnm,
const BufferStringSet args 
)
protected

◆ addCmd() [1/2]

bool CommandDefs::addCmd ( const char *  ,
const uiString ,
const char *  ,
const uiString ,
const BufferStringSet  
)

◆ addCmd() [2/2]

bool CommandDefs::addCmd ( const char *  ,
const uiString ,
const char *  ,
const uiString ,
const BufferStringSet ,
const BufferStringSet  
)

◆ addHints()

void CommandDefs::addHints ( BufferStringSet ,
const char *   
)
protected

◆ args()

const BufferStringSet* CommandDefs::args ( int  argidx) const

◆ checkCommandExists()

static bool CommandDefs::checkCommandExists ( const char *  ,
const BufferStringSet  
)
static

◆ erase()

void CommandDefs::erase ( )
overridevirtual

Reimplemented from BufferStringSet.

◆ getIconName()

BufferString CommandDefs::getIconName ( int  ) const

◆ getProgArgs()

ObjectSet<BufferStringSet>& CommandDefs::getProgArgs ( ) const
protected

◆ getProgNames()

BufferStringSet& CommandDefs::getProgNames ( ) const
protected

◆ getTerminalCommands()

static const CommandDefs& CommandDefs::getTerminalCommands ( const BufferStringSet )
static

◆ getToolTip()

uiString CommandDefs::getToolTip ( int  ) const

◆ getUiName()

uiString CommandDefs::getUiName ( int  ) const

◆ getUiNames()

const uiStringSet& CommandDefs::getUiNames ( ) const

◆ operator=()

CommandDefs& CommandDefs::operator= ( const CommandDefs )

◆ program()

const char* CommandDefs::program ( int  ) const

Member Data Documentation

◆ iconnms_

BufferStringSet CommandDefs::iconnms_
protected

◆ tooltips_

uiStringSet CommandDefs::tooltips_
protected

◆ uinames_

uiStringSet CommandDefs::uinames_
protected

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