|
gstlearn
0.3.3
CCC
|
#include <NamingConvention.hpp>
Public Member Functions | |
| NamingConvention (String prefix=String(), bool flag_varname=true, bool flag_qualifier=true, bool flag_locator=true, const ELoc &locatorOutType=ELoc::fromKey("Z"), String delim=".", bool cleanSameLocator=true) | |
| NamingConvention (const NamingConvention &m) | |
| NamingConvention & | operator= (const NamingConvention &m) |
| virtual | ~NamingConvention () |
| VectorString | createNames (const VectorString &names, const String &qualifier=String(), int nitems=1) const |
| void | setNamesAndLocators (Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (const VectorString &names, Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (Db *dbout, int iattout_start, const VectorString &names, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (const String &namin, Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (const Db *dbin, const ELoc &locatorInType, int nvar, Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (const Db *dbin, const VectorInt &iatts, Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setNamesAndLocators (const Db *dbin, int iatt, Db *dbout, int iattout_start, const String &qualifier=String(), int nitems=1, bool flagSetLocator=true, int locatorShift=0) const |
| void | setDelim (const String &delim) |
| void | setLocatorOutType (const ELoc &l) |
| void | setPrefix (const String &prefix) |
| void | setFlagClean (bool cleanSameLocator) |
| void | setLocators (Db *dbout, int iattout_start, int nvar, int nitems=1, int locatorShift=0) const |
| bool | isFlagQualifier () const |
| bool | isFlagVarname () const |
Static Public Member Functions | |
| static NamingConvention * | create (String prefix=String(), bool flag_varname=true, bool flag_qualifier=true, bool flag_locator=true, const ELoc &locatorOutType=ELoc::fromKey("Z"), String delim=".", bool cleanSameLocator=true) |
Private Member Functions | |
| void | _setNames (Db *dbout, int iattout_start, const VectorString &names, const String &qualifier, int nitems) const |
Private Attributes | |
| String | _prefix |
| String | _delim |
| bool | _flagVarname |
| bool | _flagQualifier |
| bool | _flagLocator |
| ELoc | _locatorOutType |
| bool | _cleanSameLocator |
| NamingConvention::NamingConvention | ( | String | prefix = String(), |
| bool | flag_varname = true, |
||
| bool | flag_qualifier = true, |
||
| bool | flag_locator = true, |
||
| const ELoc & | locatorOutType = ELoc::fromKey("Z"), |
||
| String | delim = ".", |
||
| bool | cleanSameLocator = true |
||
| ) |
| NamingConvention::NamingConvention | ( | const NamingConvention & | m | ) |
|
virtual |
|
private |
Defines the names of the output variables. These variables are located in 'dbout'; they have consecutive UIDs, starting from 'iattout_start'
| dbout | Pointer to the output Db structure |
| iattout_start | Rank of the first variable to be named |
| names | Vector of Names (dimension: nvar) |
| qualifier | Optional qualifier |
| nitems | Number of items to be renamed |
|
static |
| VectorString NamingConvention::createNames | ( | const VectorString & | names, |
| const String & | qualifier = String(), |
||
| int | nitems = 1 |
||
| ) | const |
Defines the names of the output variables.
| names | Vector of Names (dimension: nvar) |
| qualifier | Optional qualifier |
| nitems | Number of items to be renamed |
|
inline |
|
inline |
| NamingConvention & NamingConvention::operator= | ( | const NamingConvention & | m | ) |
|
inline |
|
inline |
|
inline |
| void NamingConvention::setLocators | ( | Db * | dbout, |
| int | iattout_start, | ||
| int | nvar, | ||
| int | nitems = 1, |
||
| int | locatorShift = 0 |
||
| ) | const |
| void NamingConvention::setNamesAndLocators | ( | const Db * | dbin, |
| const ELoc & | locatorInType, | ||
| int | nvar, | ||
| Db * | dbout, | ||
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming from a set of variables identified by their locatorType
| dbin | Pointer to the input Db (kept for symmetry) |
| locatorInType | Locator Tyoe of the variables in Input Db |
| nvar | Number of items belonging to the locatorType (if -1, all the items available for this locator are used) |
| dbout | Pointer to the output Db |
| iattout_start | Starting attribute index |
| qualifier | Optional qualifier |
| nitems | Number of items |
| flagSetLocator | True if the variable must be assigned the locator |
| locatorShift | Shift to be applied to the locator currently defined |
| void NamingConvention::setNamesAndLocators | ( | const Db * | dbin, |
| const VectorInt & | iatts, | ||
| Db * | dbout, | ||
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming from a set of variables identified by their attribute indices
| dbin | Pointer to the input Db (kept for symmetry) |
| iatts | Vector of attribute indices of the variables in Input Db |
| dbout | Pointer to the output Db |
| iattout_start | Starting attribute index |
| qualifier | Optional qualifier |
| nitems | Number of items |
| flagSetLocator | True if the variable must be assigned the locator |
| locatorShift | Shift to be applied to the locator currently defined |
| void NamingConvention::setNamesAndLocators | ( | const Db * | dbin, |
| int | iatt, | ||
| Db * | dbout, | ||
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming from a set of variables identified by their attribute indices
| dbin | Pointer to the input Db (kept for symmetry) |
| iatt | Attribute index of the variables in Input Db |
| dbout | Pointer to the output Db |
| iattout_start | Starting attribute index |
| qualifier | Optional qualifier |
| nitems | Number of items |
| flagSetLocator | True if the variable must be assigned the locator |
| locatorShift | Shift to be applied to the locator currently defined |
| void NamingConvention::setNamesAndLocators | ( | const String & | namin, |
| Db * | dbout, | ||
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming from one variable identified by its names
| void NamingConvention::setNamesAndLocators | ( | const VectorString & | names, |
| Db * | dbout, | ||
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming from a set of variables identified by their names
| void NamingConvention::setNamesAndLocators | ( | Db * | dbout, |
| int | iattout_start, | ||
| const String & | qualifier = String(), |
||
| int | nitems = 1, |
||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming a set of variables of 'dbout' identified by their names
| dbout | Pointer to the output Db |
| iattout_start | Starting attribute index |
| qualifier | Optional qualifier |
| nitems | Number of items |
| flagSetLocator | True if the variable must be assigned the locator |
| locatorShift | Shift to be applied to the locator currently defined |
| void NamingConvention::setNamesAndLocators | ( | Db * | dbout, |
| int | iattout_start, | ||
| const VectorString & | names, | ||
| bool | flagSetLocator = true, |
||
| int | locatorShift = 0 |
||
| ) | const |
Naming given the set of output variable names
| dbout | Pointer to the output Db |
| iattout_start | Starting attribute index |
| names | Vector of output variable names |
| flagSetLocator | True if the variable must be assigned the locator |
| locatorShift | Shift to be applied to the locator currently defined |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |