English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: URANIE::DataServer::TDataSpecification Class Reference
Uranie / DataServer v4.9.0
/* @license-end */
URANIE::DataServer::TDataSpecification Class Reference

The collection of attributes specifying how to interpret the input data attributes. More...

#include <TDataSpecification.h>

Inheritance diagram for URANIE::DataServer::TDataSpecification:
Collaboration diagram for URANIE::DataServer::TDataSpecification:

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.
 
TAttributegetAttribute (TString name) const
 Returns the attribute given by the name.
 
TAttributegetAttribute (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 URANIE::DataServer::TDataSpecification::~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()

void URANIE::DataServer::TDataSpecification::changeLog ( )
inline

References _blog.

◆ clear()

void URANIE::DataServer::TDataSpecification::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
Ifthe 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
UWarningExceptionswhen no attribute with this name exist in the collection.

◆ GetClassName()

TString URANIE::DataServer::TDataSpecification::GetClassName ( ) const
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()

Bool_t URANIE::DataServer::TDataSpecification::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()

TString URANIE::DataServer::TDataSpecification::getRelationName ( ) const
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()

void URANIE::DataServer::TDataSpecification::setLog ( )
inline

References _blog.

◆ setRelationName()

void URANIE::DataServer::TDataSpecification::setRelationName ( TString  name)
inline

References _relationName.

◆ unsetLog()

void URANIE::DataServer::TDataSpecification::unsetLog ( )
inline

References _blog.

Member Data Documentation

◆ _blog

Bool_t URANIE::DataServer::TDataSpecification::_blog
protected

Log printing.

Referenced by changeLog(), ClassImp(), getLog(), setLog(), and unsetLog().

◆ _listOfAttributes

TList* URANIE::DataServer::TDataSpecification::_listOfAttributes
protected

The list of attributes

Referenced by ClassImp().

◆ _relationName

TString URANIE::DataServer::TDataSpecification::_relationName
protected

Relation name.

Referenced by ClassImp(), getRelationName(), and setRelationName().