Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / DataServer v4.9.0
|
The collection of attributes specifying how to interpret the input data attributes. More...
#include <TDataSpecification.h>
Public Member Functions | |
Constructor and Destructor | |
TDataSpecification () | |
Default constructor. | |
TDataSpecification (const char *name, const char *title) | |
Default constructor with a name and a title. | |
TDataSpecification (URANIE::DataServer::TDataSpecification *tdsp) | |
Copy constructor. | |
virtual | ~TDataSpecification () |
Default Desctructor. | |
Setting and Getting informations | |
TString | GetClassName () const |
TString | getRelationName () const |
Defines the realtion name. | |
void | setRelationName (TString name) |
TString | getVariablesNames (TString separator=":", bool noIterator=false) |
TString | getVariablesTypes (TString separator=":", bool noIterator=false) |
TString | getVariablesNamesTypes (TString separator=":", bool noIterator=false) |
bool | isComparableToTDSP (TDataSpecification *tdsp, bool isJustContained=false) |
Check that content is equivalent (the boolean is for partial) | |
bool | isComparableToTDSP (TString namestypes, bool isJustContained=false) |
management of attributes by the TList | |
Int_t | getNAttributes (bool onlyAttribute=false) const |
Gets the number of Attributes. | |
Int_t | getNOutputAttributes () const |
Int_t | getNInputAttributes () const |
void | addAttribute (TAttribute *, bool dontAddSizeOne=false) |
Adds an attribute in the TList. | |
void | delAttribute (TString name) |
Deletes an attribute given by this name. | |
TAttribute * | getAttribute (TString name) const |
Returns the attribute given by the name. | |
TAttribute * | getAttribute (Int_t index, bool onlyAttribute=false) const |
Returns the attribute given by the index, bool is for removing internal and iterator. | |
Int_t | getAttributeIndex (TAttribute *att, bool onlyAttribute=false) const |
Returns the index of an attribute. | |
Int_t | getAttributeIndex (TString name, bool onlyAttribute=false) const |
Returns the index of an attribute given by the name. | |
Bool_t | isAttribute (TString name) const |
Checks if the attribute given by a name exists. | |
TList * | getListOfAttributes (const char *sListOfAttributes="*", bool onlyAttribute=false) |
Gets the list of attributes from a string. | |
Printing Log | |
void | setLog () |
void | unsetLog () |
void | changeLog () |
Bool_t | getLog () |
void | printLog () |
Protected members | |
Bool_t | _blog |
Log printing. | |
TString | _relationName |
Relation name. | |
TList * | _listOfAttributes |
void | clear () |
Clear the list of attributes. | |
Detailed Description
The collection of attributes specifying how to interpret the input data attributes.
A description of the attributes.
Constructor & Destructor Documentation
◆ TDataSpecification() [1/3]
URANIE::DataServer::TDataSpecification::TDataSpecification | ( | ) |
Default constructor.
Referenced by ClassImp().
◆ TDataSpecification() [2/3]
URANIE::DataServer::TDataSpecification::TDataSpecification | ( | const char * | name, |
const char * | title | ||
) |
Default constructor with a name and a title.
◆ TDataSpecification() [3/3]
URANIE::DataServer::TDataSpecification::TDataSpecification | ( | URANIE::DataServer::TDataSpecification * | tdsp | ) |
Copy constructor.
◆ ~TDataSpecification()
|
virtual |
Default Desctructor.
Referenced by ClassImp().
Member Function Documentation
◆ addAttribute()
void URANIE::DataServer::TDataSpecification::addAttribute | ( | TAttribute * | , |
bool | dontAddSizeOne = false |
||
) |
Adds an attribute in the TList.
Referenced by ClassImp().
◆ changeLog()
|
inline |
References _blog.
◆ clear()
|
protected |
Clear the list of attributes.
Referenced by ClassImp().
◆ delAttribute()
void URANIE::DataServer::TDataSpecification::delAttribute | ( | TString | name | ) |
Deletes an attribute given by this name.
Referenced by ClassImp().
◆ getAttribute() [1/2]
TAttribute * URANIE::DataServer::TDataSpecification::getAttribute | ( | Int_t | index, |
bool | onlyAttribute = false |
||
) | const |
Returns the attribute given by the index, bool is for removing internal and iterator.
◆ getAttribute() [2/2]
TAttribute * URANIE::DataServer::TDataSpecification::getAttribute | ( | TString | name | ) | const |
Returns the attribute given by the name.
- Exceptions
-
If the attribute does not exist.
Referenced by ClassImp().
◆ getAttributeIndex() [1/2]
Int_t URANIE::DataServer::TDataSpecification::getAttributeIndex | ( | TAttribute * | att, |
bool | onlyAttribute = false |
||
) | const |
Returns the index of an attribute.
- Returns
- Returns the index of the attributes given by the name in the collection. Returns -1 when attribute not found.
Referenced by ClassImp().
◆ getAttributeIndex() [2/2]
Int_t URANIE::DataServer::TDataSpecification::getAttributeIndex | ( | TString | name, |
bool | onlyAttribute = false |
||
) | const |
Returns the index of an attribute given by the name.
- Returns
- Returns the index of the attributes givent ny the name in the collection.
- Exceptions
-
UWarningExceptions when no attribute with this name exist in the collection.
◆ GetClassName()
|
inline |
◆ getListOfAttributes()
TList * URANIE::DataServer::TDataSpecification::getListOfAttributes | ( | const char * | sListOfAttributes = "*" , |
bool | onlyAttribute = false |
||
) |
Gets the list of attributes from a string.
Returns the list of attributes. The character "*" means all attributes.
Referenced by ClassImp().
◆ getLog()
|
inline |
References _blog.
◆ getNAttributes()
Int_t URANIE::DataServer::TDataSpecification::getNAttributes | ( | bool | onlyAttribute = false | ) | const |
Gets the number of Attributes.
Referenced by ClassImp().
◆ getNInputAttributes()
Int_t URANIE::DataServer::TDataSpecification::getNInputAttributes | ( | ) | const |
Referenced by ClassImp().
◆ getNOutputAttributes()
Int_t URANIE::DataServer::TDataSpecification::getNOutputAttributes | ( | ) | const |
Referenced by ClassImp().
◆ getRelationName()
|
inline |
Defines the realtion name.
References _relationName.
◆ getVariablesNames()
TString URANIE::DataServer::TDataSpecification::getVariablesNames | ( | TString | separator = ":" , |
bool | noIterator = false |
||
) |
Referenced by ClassImp().
◆ getVariablesNamesTypes()
TString URANIE::DataServer::TDataSpecification::getVariablesNamesTypes | ( | TString | separator = ":" , |
bool | noIterator = false |
||
) |
Referenced by ClassImp().
◆ getVariablesTypes()
TString URANIE::DataServer::TDataSpecification::getVariablesTypes | ( | TString | separator = ":" , |
bool | noIterator = false |
||
) |
Referenced by ClassImp().
◆ isAttribute()
Bool_t URANIE::DataServer::TDataSpecification::isAttribute | ( | TString | name | ) | const |
Checks if the attribute given by a name exists.
- Returns
- kTRUE if an attribute given by the name exists, else kFALSE
Referenced by ClassImp().
◆ isComparableToTDSP() [1/2]
bool URANIE::DataServer::TDataSpecification::isComparableToTDSP | ( | TDataSpecification * | tdsp, |
bool | isJustContained = false |
||
) |
Check that content is equivalent (the boolean is for partial)
Referenced by ClassImp().
◆ isComparableToTDSP() [2/2]
bool URANIE::DataServer::TDataSpecification::isComparableToTDSP | ( | TString | namestypes, |
bool | isJustContained = false |
||
) |
◆ printLog()
void URANIE::DataServer::TDataSpecification::printLog | ( | ) |
Referenced by ClassImp().
◆ setLog()
|
inline |
References _blog.
◆ setRelationName()
|
inline |
References _relationName.
◆ unsetLog()
|
inline |
References _blog.
Member Data Documentation
◆ _blog
|
protected |
Log printing.
Referenced by changeLog(), ClassImp(), getLog(), setLog(), and unsetLog().
◆ _listOfAttributes
|
protected |
The list of attributes
Referenced by ClassImp().
◆ _relationName
|
protected |
Relation name.
Referenced by ClassImp(), getRelationName(), and setRelationName().