OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static 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)
 
bool addCmd (const char *appnm, const uiString &uinm, const char *iconnm, const uiString &tooltip, const BufferStringSet &paths, const BufferStringSet *cmdargs=nullptr)
 
const BufferStringSetargs (int) 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 override
 
BufferString commonStart () const
 
BufferStringSetcopy (const BufferStringSet &)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void fill (QList< QString > &) const
 
void fill (uiStringSet &) const
 
virtual void fillPar (IOPar &) const
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
idx_type firstDuplicateOf (idx_type, OD::CaseSensitivity cs=OD::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, OD::CaseSensitivity cs=OD::CaseInsensitive) const
 
idx_typegetSortIndexes (bool caseinsns=true, bool asc=true) const
 
SetTypegetStringSet ()
 
const SetTypegetStringSet () const
 
uiStringSet getUiStringSet () const
 
bool hasUniqueNames (OD::CaseSensitivity cs=OD::CaseSensitive) const
 
idx_type indexOf (const BufferString *b) const
 
idx_type indexOf (const char *, OD::CaseSensitivity s=OD::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, OD::CaseSensitivity c=OD::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 *, OD::CaseSensitivity cs=OD::CaseInsensitive) const
 
std::int64_t nrItems () const override
 
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)
 
void reverse () override
 
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)
 
void swapItems (std::int64_t i1, std::int64_t i2) override
 
void unCat (const char *, const char *sepstr="\n")
 
void use (const QList< QString > &)
 
void use (const uiStringSet &)
 
void useIndexes (const idx_type *idxs)
 
virtual void usePar (const IOPar &)
 
bool validIdx (std::int64_t i) const override
 
- Public Member Functions inherited from OD::Set
virtual ~Set ()
 
bool isEmpty () const
 
void setEmpty ()
 

Static Public Member Functions

static const CommandDefsgetTerminalCommands (const BufferStringSet &)
 
- Static Public Member Functions inherited from OD::Set
static std::int32_t maxIdx32 ()
 
static std::int64_t maxIdx64 ()
 

Protected Member Functions

void addApplication (const char *appnm, const BufferStringSet *args)
 
void addHints (BufferStringSet &, const char *)
 

Static Protected Member Functions

static bool checkCommandExists (const char *, const BufferStringSet &)
 

Protected Attributes

BufferStringSet iconnms_
 
ObjectSet< BufferStringSetprogargs_
 
BufferStringSet prognames_
 
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)

Member Function Documentation

◆ addApplication()

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

◆ addCmd()

bool CommandDefs::addCmd ( const char *  appnm,
const uiString uinm,
const char *  iconnm,
const uiString tooltip,
const BufferStringSet paths,
const BufferStringSet cmdargs = nullptr 
)

◆ addHints()

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

◆ args()

const BufferStringSet* CommandDefs::args ( int  ) const

◆ checkCommandExists()

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

◆ erase()

void CommandDefs::erase ( )
overridevirtual

Reimplemented from BufferStringSet.

◆ getIconName()

BufferString CommandDefs::getIconName ( int  ) const

◆ 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

◆ progargs_

ObjectSet<BufferStringSet> CommandDefs::progargs_
protected

◆ prognames_

BufferStringSet CommandDefs::prognames_
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-2024