English Français

Documentation / Manuel développeur

Modules disponibles

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

Description of the class TOutputFileKey. More...

#include <TOutputFileKey.h>

Inheritance diagram for URANIE::Launcher::TOutputFileKey:
Collaboration diagram for URANIE::Launcher::TOutputFileKey:

Public Member Functions

Constructor and Destructor
 TOutputFileKey (TString str)
 Default constructor.
 
virtual ~TOutputFileKey ()
 Default destructor.
 
Add attribut to the File
void addAttribute (URANIE::DataServer::TAttribute *att, TString skey="")
 Add the attribute in the file with the key if defined.
 
void addAttribute (TString sname, TString skey="")
 Add the attribute by this name in the file.
 
Computes Output
Bool_t searchOutput (Int_t &n, Double_t *val, TList *lstOut=NULL)
 Looking for output usindouble only and transmitting matrix (not used by launcher anymore)
 
Bool_t searchOutput (vector< URANIE::DataServer::UEntry * > *out)
 Looking for output using a map to be able to cope with vectors/strings.
 
Printing Log
void printLog (Option_t *option="")
 
- Public Member Functions inherited from URANIE::Launcher::TOutputFile
 TOutputFile (TString str)
 Default constructor.
 
virtual ~TOutputFile ()
 Default destructor.
 
virtual void addAttribute (URANIE::DataServer::TAttribute *)
 Add the attribute in the file.
 
virtual void addAttribute (TString name)
 Add the attribute by this name in the file.
 
- Public Member Functions inherited from URANIE::Launcher::TCodeFile
 TCodeFile (TString str)
 Default constructor.
 
virtual ~TCodeFile ()
 Default destructor.
 
TString getFileName ()
 
void setCommentCharacter (const char *str)
 
const char * getCommentCharacter ()
 
void setSeparatorCharacter (const char *str)
 
const char * getSeparatorCharacter ()
 
void setFieldSeparatorCharacter (const char *str)
 
const char * getFieldSeparatorCharacter ()
 
URANIE::DataServer::TAttribute * getAttribute (Int_t ind)
 
Int_t getAttributesNumber () const
 
Int_t getNAttributes () const
 
void setVectorProperties (TString beg, TString delim, TString end)
 
void setStringProperties (TString beg, TString end)
 
void getBegEndProperties (URANIE::DataServer::TAttribute *att, TString &beg, TString &end)
 
Bool_t isAttribute (TString sAttributeName)
 Verify is the attribute given by the name is is the list of attribute.
 
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Launcher::TCodeFile
vector< URANIE::DataServer::TAttribute * > _attributes
 Vector of attributes.
 
TString _svecbeg
 
TString _svecend
 
TString _svecdel
 
TString _sstrbeg
 
TString _sstrend
 string used for the beginning, end and delimitation of vectors and strings
 
TString _sFileName
 The name of file.
 
Bool_t _blog
 Boolean for edit the log.
 
TString _cComments
 The set of comment character.
 
TString _cSeparators
 The set of separator character.
 
TString _cFieldSeparator
 the separator to be used in between fields
 

Detailed Description

Description of the class TOutputFileKey.

This classe enables to raise information from an ASCII file with the "Clef = valeur ;" formalism

coutMoy = 3.741194e-01 ;
coutSig = 1.385948e-02 ;
coutInc = 1.000000e+02 ;
coutMax = 5.293728e-01 ;

Thus, to raise the 2 informations coutSig and coutMax from file _coutwithkey_.dat exposed above, the code of Uranie is as follows :

TOutputFileKey *fout = new TOutputFileKey("_coutwithkey_.dat");

fout->addAttribute(new TAttribute("coutSig"));
fout->addAttribute(new TAttribute("coutMax"));
See also
TOutputFileKeyLine

Constructor & Destructor Documentation

◆ TOutputFileKey()

URANIE::Launcher::TOutputFileKey::TOutputFileKey ( TString  str)

Default constructor.

Referenced by ClassImp().

◆ ~TOutputFileKey()

virtual URANIE::Launcher::TOutputFileKey::~TOutputFileKey ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ addAttribute() [1/2]

void URANIE::Launcher::TOutputFileKey::addAttribute ( TString  sname,
TString  skey = "" 
)

Add the attribute by this name in the file.

Parameters
sname(TString) the name of the attribute to created.
skey(TString) [""] the key associated for the attribute in the file. If empty, the name was use.

◆ addAttribute() [2/2]

void URANIE::Launcher::TOutputFileKey::addAttribute ( URANIE::DataServer::TAttribute *  att,
TString  skey = "" 
)

Add the attribute in the file with the key if defined.

Parameters
att(URANIE::DataServer::TAttribute*) the pointer of attribute
skey(TString) [""] the key associated for the attribute in the file. If empty, the name was use.

Referenced by ClassImp().

◆ printLog()

void URANIE::Launcher::TOutputFileKey::printLog ( Option_t *  option = "")
virtual

Reimplemented from URANIE::Launcher::TOutputFile.

Referenced by ClassImp().

◆ searchOutput() [1/2]

Bool_t URANIE::Launcher::TOutputFileKey::searchOutput ( Int_t &  n,
Double_t *  val,
TList *  lstOut = NULL 
)
virtual

Looking for output usindouble only and transmitting matrix (not used by launcher anymore)

Implements URANIE::Launcher::TOutputFile.

Referenced by ClassImp().

◆ searchOutput() [2/2]

Bool_t URANIE::Launcher::TOutputFileKey::searchOutput ( vector< URANIE::DataServer::UEntry * > *  out)
virtual

Looking for output using a map to be able to cope with vectors/strings.

Implements URANIE::Launcher::TOutputFile.