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::TOutputFileDataServer Class Reference
Uranie / Launcher v4.9.0
/* @license-end */
URANIE::Launcher::TOutputFileDataServer Class Reference

Description of the class TOutputFileDataServer. More...

#include <TOutputFileDataServer.h>

Inheritance diagram for URANIE::Launcher::TOutputFileDataServer:
Collaboration diagram for URANIE::Launcher::TOutputFileDataServer:

Public Member Functions

Constructor and Destructor
 TOutputFileDataServer (TString str)
 Default constructor.
 
virtual ~TOutputFileDataServer ()
 Default destructor.
 
Add attribut to the File
void addAttribute (URANIE::DataServer::TAttribute *att, Int_t nline=0)
 Add the attribute and the line number in the file.
 
void addAttribute (TString name, Int_t nline=0)
 Add the attribute by this name and the nline number in the file.
 
Computes Output
Bool_t searchOutput (Int_t &indcrt, 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
virtual 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 ()
 

Private Attributes

Int_t _nLines
 The number of lines in the file.
 
Int_t _nColumns
 The number of columnsin the file.
 
Int_t _nLength
 The number of temporal data (_nColumns) to store.
 

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 TOutputFileDataServer.

This class enables to get scalars written by column, in an ASCII file.

1.5697507E-19  1.9395840E-19
2.9158929E-16  3.6028774E-16
3.5310144E-14  4.3629214E-14
1.0450831E-12  1.2913046E-12
1.3153202E-11  1.6252097E-11
9.3449165E-11  1.1546579E-10
4.4158568E-10  5.4562327E-10
1.5389996E-09  1.9015880E-09
4.2396255E-09  5.2384812E-09
1.7353132E-07  2.1441529E-07
7.4187462E-08  9.1666024E-08
7.1243931E-09  8.8028997E-09
3.5554371E-10  4.3930981E-10
1.2805967E-11  1.5823053E-11
1.3971713E-12  1.7263449E-12
5.8563991E-12  7.2361665E-12
2.2953027E-11  2.8360760E-11
6.7645112E-11  8.3582301E-11
2.6601454E-09  3.2868757E-09
3.6597383E-09  4.5219726E-09
4.1768415E-09  5.1609055E-09
4.7367488E-09  5.8527267E-09
5.3706906E-09  6.6360251E-09
6.0915699E-09  7.5267437E-09
6.9160828E-09  8.5455119E-09
7.8621030E-09  9.7144142E-09

This file contains 26 attributes and for each attributes, it contains two values (like temporal attributes).

Example code source
Let the file "data.out" shown in the last section. Suppose that we want to store the four attributes in the lines 1, 15, 22 and 26. For the out22 attribute, we set the default value to -1.0
TOutputFileDataServer * fout = new TOutputFileDataServer("data.out");

fout->addAttribute( new TAttribute("out1"), 1);
fout->addAttribute( new TAttribute("out15"), 15);

TAttribute *attdose =  new TAttribute("out22");
attdose->setDefaultValue(-1.0);
fout->addAttribute(attdose, 22);

fout->addAttribute( new TAttribute("out26"), 26);
See also
TOutputFile,
TOutputFileRow

Constructor & Destructor Documentation

◆ TOutputFileDataServer()

URANIE::Launcher::TOutputFileDataServer::TOutputFileDataServer ( TString  str)

Default constructor.

Referenced by ClassImp().

◆ ~TOutputFileDataServer()

virtual URANIE::Launcher::TOutputFileDataServer::~TOutputFileDataServer ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ addAttribute() [1/2]

void URANIE::Launcher::TOutputFileDataServer::addAttribute ( TString  name,
Int_t  nline = 0 
)

Add the attribute by this name and the nline number in the file.

The line number begins to 1.

◆ addAttribute() [2/2]

void URANIE::Launcher::TOutputFileDataServer::addAttribute ( URANIE::DataServer::TAttribute *  att,
Int_t  nline = 0 
)

Add the attribute and the line number in the file.

The line number begins to 1.

Log
Modified since URANIE v2.0/1. 1 arg was added.

Referenced by ClassImp().

◆ printLog()

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

Reimplemented from URANIE::Launcher::TOutputFile.

Referenced by ClassImp().

◆ searchOutput() [1/2]

Bool_t URANIE::Launcher::TOutputFileDataServer::searchOutput ( Int_t &  indcrt,
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::TOutputFileDataServer::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.

Member Data Documentation

◆ _nColumns

Int_t URANIE::Launcher::TOutputFileDataServer::_nColumns
private

The number of columnsin the file.

Referenced by ClassImp().

◆ _nLength

Int_t URANIE::Launcher::TOutputFileDataServer::_nLength
private

The number of temporal data (_nColumns) to store.

Referenced by ClassImp().

◆ _nLines

Int_t URANIE::Launcher::TOutputFileDataServer::_nLines
private

The number of lines in the file.

Referenced by ClassImp().