1.3.1
CCC
 
Manipulating Names of the variables contained in a Db

Functions

String Db::getNameByLocator (const ELoc &locatorType, int locatorIndex=0) const
 
String Db::getNameByColIdx (int icol) const
 
String Db::getNameByUID (int iuid) const
 
VectorString Db::getName (const String &name) const
 
VectorString Db::getNames (const VectorString &names) const
 
VectorString Db::getNamesByLocator (const ELoc &locatorType) const
 
VectorString Db::getNamesByColIdx (const VectorInt &icols) const
 
VectorString Db::getNamesByUID (const VectorInt &iuids) const
 
VectorString Db::getAllNames (bool excludeRankAndCoordinates=false, bool verbose=false) const
 
void Db::setName (const String &old_name, const String &name)
 
void Db::setName (const VectorString list, const String &name)
 
void Db::setNameByUID (int iuid, const String &name)
 
void Db::setNameByColIdx (int icol, const String &name)
 
void Db::setNameByLocator (const ELoc &locatorType, const String &name)
 
VectorString Db::expandNameList (const VectorString &names) const
 
VectorString Db::expandNameList (const String &names) const
 
VectorString Db::identifyNames (const VectorString &names) const
 

Detailed Description

All methods used to manipulated Names of one or several Variables contained in a Db.

Function Documentation

◆ expandNameList() [1/2]

VectorString Db::expandNameList ( const String names) const

◆ expandNameList() [2/2]

VectorString Db::expandNameList ( const VectorString names) const

◆ getAllNames()

VectorString Db::getAllNames ( bool  excludeRankAndCoordinates = false,
bool  verbose = false 
) const

◆ getName()

VectorString Db::getName ( const String name) const

◆ getNameByColIdx()

String Db::getNameByColIdx ( int  icol) const

◆ getNameByLocator()

String Db::getNameByLocator ( const ELoc &  locatorType,
int  locatorIndex = 0 
) const

◆ getNameByUID()

String Db::getNameByUID ( int  iuid) const

◆ getNames()

VectorString Db::getNames ( const VectorString names) const

◆ getNamesByColIdx()

VectorString Db::getNamesByColIdx ( const VectorInt icols) const

◆ getNamesByLocator()

VectorString Db::getNamesByLocator ( const ELoc &  locatorType) const

◆ getNamesByUID()

VectorString Db::getNamesByUID ( const VectorInt iuids) const

◆ identifyNames()

VectorString Db::identifyNames ( const VectorString names) const

Identify the list of names. These names are searched in the following order:

  • within the list of input variable names (possibly expanded)
  • within the names of the locators
    Parameters
    namesNames to be be identified
    Returns
    List of variable names

◆ setName() [1/2]

void Db::setName ( const String old_name,
const String name 
)

◆ setName() [2/2]

void Db::setName ( const VectorString  list,
const String name 
)

◆ setNameByColIdx()

void Db::setNameByColIdx ( int  icol,
const String name 
)

◆ setNameByLocator()

void Db::setNameByLocator ( const ELoc &  locatorType,
const String name 
)

◆ setNameByUID()

void Db::setNameByUID ( int  iuid,
const String name 
)