English Français

Documentation / Developer's manual

Available modules

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

A class for input file of a code. More...

#include <TInputFileRecreate.h>

Inheritance diagram for URANIE::Launcher::TInputFileRecreate:
Collaboration diagram for URANIE::Launcher::TInputFileRecreate:

Public Member Functions

Constructor and Destructor
 TInputFileRecreate (TString str)
 Default constructor.
 
virtual ~TInputFileRecreate ()
 Default destructor.
 
File properties
Bool_t isFileToCopy ()
 Gets the type of the file. This method is used to find InputFile of type 'Recreate'.
 
Comment and Parsing Methods
void setHeader (TString str)
 simple header definition
 
TString getHeader ()
 
void resetHeader ()
 
void setFooter (TString str)
 simple footer definition
 
TString getFooter ()
 
void resetFooter ()
 
bool IsAWhiteLine (TString line)
 
Implement the abstract pure methods
virtual void searchIndexeAttribute (URANIE::DataServer::TAttribute *att)
 search the indexes of the attribute in the input file
 
void substitue (Int_t &n, Double_t *val, Int_t *index=NULL)
 Substitute the values of the attributes linked in the input file and write it.
 
void substitue (Int_t &n, vector< URANIE::DataServer::UEntry * > *ent, Int_t *index=NULL)
 
The Log
virtual void printLog (Option_t *option="")
 
- Public Member Functions inherited from URANIE::Launcher::TInputFile
 TInputFile (TString str)
 Default constructor.
 
virtual ~TInputFile ()
 Default destructor.
 
virtual void addAttribute (URANIE::DataServer::TAttribute *)
 Add the attribute in the file.
 
Bool_t isExist ()
 
virtual void init ()
 The init step.
 
virtual void terminate ()
 The terminate step.
 
- 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

TString _cHeaderComments
 The string of header comments.
 
TString _cFooterComments
 The string of footer comments.
 

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

A class for input file of a code.

Description of the class TInputFileRecreate.

To be written by the developper.

Constructor & Destructor Documentation

◆ TInputFileRecreate()

URANIE::Launcher::TInputFileRecreate::TInputFileRecreate ( TString  str)

Default constructor.

Referenced by ClassImp().

◆ ~TInputFileRecreate()

virtual URANIE::Launcher::TInputFileRecreate::~TInputFileRecreate ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ getFooter()

TString URANIE::Launcher::TInputFileRecreate::getFooter ( )
inline

References _cFooterComments.

Referenced by ClassImp().

◆ getHeader()

TString URANIE::Launcher::TInputFileRecreate::getHeader ( )
inline

References _cHeaderComments.

Referenced by ClassImp().

◆ IsAWhiteLine()

bool URANIE::Launcher::TInputFileRecreate::IsAWhiteLine ( TString  line)

Referenced by ClassImp().

◆ isFileToCopy()

Bool_t URANIE::Launcher::TInputFileRecreate::isFileToCopy ( )
inlinevirtual

Gets the type of the file. This method is used to find InputFile of type 'Recreate'.

Reimplemented from URANIE::Launcher::TInputFile.

◆ printLog()

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

Reimplemented from URANIE::Launcher::TInputFile.

Referenced by ClassImp().

◆ resetFooter()

void URANIE::Launcher::TInputFileRecreate::resetFooter ( )
inline

Resets footer comments.

References _cFooterComments.

◆ resetHeader()

void URANIE::Launcher::TInputFileRecreate::resetHeader ( )
inline

Resets header.

References _cHeaderComments.

◆ searchIndexeAttribute()

virtual void URANIE::Launcher::TInputFileRecreate::searchIndexeAttribute ( URANIE::DataServer::TAttribute *  att)
virtual

search the indexes of the attribute in the input file

Parameters
att(URANIE::DataServer::TAttribute*) the attribute to search the indexes

Implements URANIE::Launcher::TInputFile.

Referenced by ClassImp().

◆ setFooter()

void URANIE::Launcher::TInputFileRecreate::setFooter ( TString  str)
inline

simple footer definition

Sets Footer.

References _cFooterComments.

◆ setHeader()

void URANIE::Launcher::TInputFileRecreate::setHeader ( TString  str)
inline

simple header definition

References _cHeaderComments.

◆ substitue() [1/2]

void URANIE::Launcher::TInputFileRecreate::substitue ( Int_t &  n,
Double_t *  val,
Int_t *  index = NULL 
)
virtual

Substitute the values of the attributes linked in the input file and write it.

The first value is defined par the parameter n and the values are stored in the parameter val. After the method, the parameter is increased by the number of attributes contained in the input file.

Parameters
n(Int_t &) the index of the first value in the vector of data val
val(Double_t *) the pointer of the data
index(Int_t *)the pointer of the index of data

Implements URANIE::Launcher::TInputFile.

Referenced by ClassImp().

◆ substitue() [2/2]

void URANIE::Launcher::TInputFileRecreate::substitue ( Int_t &  n,
vector< URANIE::DataServer::UEntry * > *  ent,
Int_t *  index = NULL 
)
virtual

Member Data Documentation

◆ _cFooterComments

TString URANIE::Launcher::TInputFileRecreate::_cFooterComments
private

The string of footer comments.

Referenced by ClassImp(), getFooter(), resetFooter(), and setFooter().

◆ _cHeaderComments

TString URANIE::Launcher::TInputFileRecreate::_cHeaderComments
private

The string of header comments.

Referenced by ClassImp(), getHeader(), resetHeader(), and setHeader().