Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::SimpleCsvOutputService Class Reference
Inheritance diagram for Arcane::SimpleCsvOutputService:
Collaboration diagram for Arcane::SimpleCsvOutputService:

Public Member Functions

 SimpleCsvOutputService (const ServiceBuildInfo &sbi)
bool init () override
 Method to initialize the table.
bool init (const String &table_name) override
 Method to initialize the table.
bool init (const String &table_name, const String &directory_name) override
 Method to initialize the table.
void clear () override
 Method to clear the tables.
Integer addRow (const String &row_name) override
 Method to add a row.
Integer addRow (const String &row_name, ConstArrayView< Real > elements) override
 Method to add a row.
bool addRows (StringConstArrayView rows_names) override
 Method to add multiple rows.
Integer addColumn (const String &column_name) override
 Method to add a column.
Integer addColumn (const String &column_name, ConstArrayView< Real > elements) override
 Method to add a column.
bool addColumns (StringConstArrayView columns_names) override
 Method to add multiple columns.
bool addElementInRow (Integer position, Real element) override
 Method to add an element to a row.
bool addElementInRow (const String &row_name, Real element, bool create_if_not_exist) override
 Method to add an element to a row.
bool addElementInSameRow (Real element) override
 Method to add an element to the last manipulated row.
bool addElementsInRow (Integer position, ConstArrayView< Real > elements) override
 Method to add multiple elements to a row.
bool addElementsInRow (const String &row_name, ConstArrayView< Real > elements, bool create_if_not_exist) override
 Method to add multiple elements to a row.
bool addElementsInSameRow (ConstArrayView< Real > elements) override
 Method to add multiple elements to the last manipulated row.
bool addElementInColumn (Integer position, Real element) override
 Method to add an element to a column.
bool addElementInColumn (const String &column_name, Real element, bool create_if_not_exist) override
 Method to add an element to a column.
bool addElementInSameColumn (Real element) override
 Method to add an element to the last manipulated column.
bool addElementsInColumn (Integer position, ConstArrayView< Real > elements) override
 Method to add multiple elements to a column.
bool addElementsInColumn (const String &column_name, ConstArrayView< Real > elements, bool create_if_not_exist) override
 Method to add multiple elements to a column.
bool addElementsInSameColumn (ConstArrayView< Real > elements) override
 Method to add multiple elements to the last manipulated column.
bool editElementUp (Real element, bool update_last_position) override
 Method to edit an element above the last element manipulated (row above/same column).
bool editElementDown (Real element, bool update_last_position) override
 Method to edit an element below the last element manipulated (row below/same column).
bool editElementLeft (Real element, bool update_last_position) override
 Method to edit an element to the left of the last element manipulated (same row/column to the left).
bool editElementRight (Real element, bool update_last_position) override
 Method to edit an element to the right of the last element manipulated (same row/column to the right).
Real elementUp (bool update_last_position) override
 Method to retrieve an element above the last element manipulated (row above/same column).
Real elementDown (bool update_last_position) override
 Method to retrieve an element below the last element manipulated (row below/same column).
Real elementLeft (bool update_last_position) override
 Method to retrieve an element to the left of the last element manipulated (same row/column to the left).
Real elementRight (bool update_last_position) override
 Method to retrieve an element to the right of the last element manipulated (same row/column to the right).
bool editElement (Real element) override
 Method to modify an element in the table.
bool editElement (Integer position_x, Integer position_y, Real element) override
 Method to modify an element in the table.
bool editElement (const String &column_name, const String &row_name, Real element) override
 Method allowing modification of an element in the array.
Real element () override
 Method allowing retrieval of a copy of an element.
Real element (Integer position_x, Integer position_y, bool update_last_position) override
 Method allowing retrieval of a copy of an element.
Real element (const String &column_name, const String &row_name, bool update_last_position) override
 Method allowing retrieval of a copy of an element.
RealUniqueArray row (Integer position) override
 Method allowing retrieval of a copy of a row.
RealUniqueArray column (Integer position) override
 Method allowing retrieval of a copy of a column.
RealUniqueArray row (const String &row_name) override
 Method allowing retrieval of a copy of a row.
RealUniqueArray column (const String &column_name) override
 Method allowing retrieval of a copy of a column.
Integer rowSize (Integer position) override
 Method allowing retrieval of the size of a row. Including hypothetical 'gaps' in the row.
Integer columnSize (Integer position) override
 Method allowing retrieval of the size of a column. Including hypothetical 'gaps' in the column.
Integer rowSize (const String &row_name) override
 Method allowing retrieval of the size of a row. Including hypothetical 'gaps' in the row.
Integer columnSize (const String &column_name) override
 Method allowing retrieval of the size of a column. Including hypothetical 'gaps' in the column.
Integer rowPosition (const String &row_name) override
 Method allowing retrieval of the position of a row.
Integer columnPosition (const String &column_name) override
 Method allowing retrieval of the position of a column.
Integer numberOfRows () override
 Method allowing retrieval of the number of rows in the array. This is, in a way, the maximum number of elements a column can contain.
Integer numberOfColumns () override
 Method allowing retrieval of the number of columns in the array. This is, in a way, the maximum number of elements a row can contain.
String rowName (Integer position) override
String columnName (Integer position) override
bool editRowName (Integer position, const String &new_name) override
 Method allowing changing the name of a row.
bool editRowName (const String &row_name, const String &new_name) override
 Method allowing changing the name of a row.
bool editColumnName (Integer position, const String &new_name) override
 Method allowing changing the name of a column.
bool editColumnName (const String &column_name, const String &new_name) override
 Method allowing changing the name of a column.
Integer addAverageColumn (const String &column_name) override
 Method allowing creation of a column containing the average of the elements of each row.
void print (Integer rank) override
 Method allowing display of the array. Method performing collective operations.
bool writeFile (Integer rank) override
 Method allowing writing the array to a file. Method performing collective operations. If rank != -1, processes other than P0 return true.
bool writeFile (const Directory &root_directory, Integer rank) override
bool writeFile (const String &directory, Integer rank) override
 Method allowing writing the array to a file. Method performing collective operations. If rank != -1, processes other than P0 return true.
Integer precision () override
 Method allowing retrieval of the precision currently used for writing values.
void setPrecision (Integer precision) override
 Method allowing modification of the print precision.
bool isFixed () override
 Method allowing knowledge of whether the 'std::fixed' flag is active or not for writing values.
void setFixed (bool fixed) override
 Method allowing setting the 'std::fixed' flag or not.
bool isForcedToUseScientificNotation () override
 Method allowing knowledge of whether the 'std::scientific' flag is active or not for writing values.
void setForcedToUseScientificNotation (bool use_scientific) override
 Method allowing setting the 'std::scientific' flag or not.
String outputDirectory () override
 Accessor allowing retrieval of the name of the directory where the arrays will be placed.
void setOutputDirectory (const String &directory) override
 Accessor allowing definition of the directory in which the arrays will be saved.
String tableName () override
 Accessor allowing retrieval of the name of the arrays.
void setTableName (const String &name) override
 Accessor allowing definition of the array name.
String fileName () override
 Accessor allowing retrieval of the file name.
Directory outputPath () override
 Accessor allowing retrieval of the path where the arrays will be saved.
Directory rootPath () override
 Accessor allowing retrieval of the path where the implementation saves these arrays.
String fileType () override
 Method allowing knowledge of the service's file type.
bool isOneFileByRanksPermited () override
 Method allowing knowledge of whether the parameters currently held by the implementation allow it to write one file per process.
Ref< SimpleTableInternalinternal () override
 Method allowing retrieval of a reference to the SimpleTableInternal object used.
Ref< ISimpleTableReaderWriterreaderWriter () override
 Method allowing retrieval of a reference to the ISimpleTableReaderWriter object used.
Public Member Functions inherited from ArcaneSimpleCsvOutputObject
 ArcaneSimpleCsvOutputObject (const Arcane::ServiceBuildInfo &sbi)
 Constructeur.
virtual ~ArcaneSimpleCsvOutputObject ()
 Destructeur.
CaseOptionsSimpleCsvOutputoptions () const
 Options du jeu de données du service.
Public Member Functions inherited from Arcane::BasicService
 ~BasicService () override
 Releases resources.
virtual ISubDomainsubDomain ()
Public Member Functions inherited from Arcane::AbstractService
 ~AbstractService () override
 Destructor.
virtual void build ()
 Build-level construction of the service.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceserviceInterface () override
 Returns the low-level IService interface of the service.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IService
virtual ~IService ()
 Releases resources.
Public Member Functions inherited from Arcane::MeshAccessor
 MeshAccessor (ISubDomain *sd)
 MeshAccessor (IMesh *mesh)
 MeshAccessor (const MeshHandle &mesh_handle)
Integer nbCell () const
 Returns the number of cells in the mesh.
Integer nbFace () const
 Returns the number of faces in the mesh.
Integer nbEdge () const
 Returns the number of edges in the mesh.
Integer nbNode () const
 Returns the number of nodes in the mesh.
VariableNodeReal3nodesCoordinates () const
 Returns the coordinates of the mesh nodes.
NodeGroup allNodes () const
 Returns the group containing all nodes.
EdgeGroup allEdges () const
 Returns the group containing all edges.
FaceGroup allFaces () const
 Returns the group containing all faces.
CellGroup allCells () const
 Returns the group containing all cells.
FaceGroup outerFaces () const
 Returns the group containing all boundary faces.
NodeGroup ownNodes () const
 Returns the group containing all nodes specific to this domain.
CellGroup ownCells () const
 Returns the group containing all cells specific to this domain.
FaceGroup ownFaces () const
 Group containing all faces specific to this domain.
EdgeGroup ownEdges () const
 Group containing all edges specific to this domain.
IMeshmesh () const
const MeshHandlemeshHandle () const
Public Member Functions inherited from Arcane::CommonVariables
 CommonVariables (IModule *c)
 Constructs the references of the common variables for the module c.
 CommonVariables (IVariableMng *variable_mng)
 Constructs the references of the common variables for the manager variable_mng.
 CommonVariables (ISubDomain *sd)
 Constructs the references of the common variables for the subdomain sd.
virtual ~CommonVariables ()
 Releases resources.
Int32 globalIteration () const
 Current iteration number.
Real globalTime () const
 Current time.
Real globalOldTime () const
 Previous current time.
Real globalFinalTime () const
 Final time of the simulation.
Real globalDeltaT () const
 Current Delta T.
Real globalCPUTime () const
 CPU time used (in seconds).
Real globalOldCPUTime () const
 Previous CPU time used (in seconds).
Real globalElapsedTime () const
 Clock time (elapsed) used (in seconds).
Real globalOldElapsedTime () const
 Previous clock time (elapsed) used (in seconds).

Private Attributes

SimpleTableInternalMng m_simple_table_internal_mng
SimpleTableWriterHelper m_simple_table_output_mng
Ref< SimpleTableInternalm_internal
Ref< SimpleCsvReaderWriterm_simple_csv_reader_writer
bool m_is_already_init
bool m_with_option

Additional Inherited Members

Static Public Member Functions inherited from ArcaneSimpleCsvOutputObject
template<typename ServiceClassType>
static void fillServiceInfo (Arcane::ServiceInfo *si)
Public Attributes inherited from Arcane::CommonVariables
VariableScalarInt32 m_global_iteration
 Current iteration.
VariableScalarReal m_global_time
 Current time.
VariableScalarReal m_global_deltat
 Global Delta T.
VariableScalarReal m_global_old_time
 Time previous to the current time.
VariableScalarReal m_global_old_deltat
 Delta T at the time previous to the global time.
VariableScalarReal m_global_final_time
 Final time of the case.
VariableScalarReal m_global_old_cpu_time
 Previous CPU time used (in seconds).
VariableScalarReal m_global_cpu_time
 CPU time used (in seconds).
VariableScalarReal m_global_old_elapsed_time
 Previous clock time used (in seconds).
VariableScalarReal m_global_elapsed_time
 Clock time used (in seconds).
Protected Member Functions inherited from Arcane::BasicService
 BasicService (const ServiceBuildInfo &)
Protected Member Functions inherited from Arcane::AbstractService
 AbstractService (const ServiceBuildInfo &)
 Constructor from a ServiceBuildInfo.
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.

Detailed Description

Definition at line 37 of file SimpleCsvOutputService.h.

Constructor & Destructor Documentation

◆ SimpleCsvOutputService()

Arcane::SimpleCsvOutputService::SimpleCsvOutputService ( const ServiceBuildInfo & sbi)
inlineexplicit

Definition at line 42 of file SimpleCsvOutputService.h.

Member Function Documentation

◆ addAverageColumn()

Integer Arcane::SimpleCsvOutputService::addAverageColumn ( const String & column_name)
inlineoverridevirtual

Method allowing creation of a column containing the average of the elements of each row.

Parameters
column_nameThe name of the new column.
Returns
Integer The position of the column.

Implements Arcane::ISimpleTableOutput.

Definition at line 272 of file SimpleCsvOutputService.h.

◆ addColumn() [1/2]

Integer Arcane::SimpleCsvOutputService::addColumn ( const String & column_name)
inlineoverridevirtual

Method to add a column.

Parameters
column_nameThe name of the column.
Returns
Integer The position of the column in the table.

Implements Arcane::ISimpleTableOutput.

Definition at line 69 of file SimpleCsvOutputService.h.

◆ addColumn() [2/2]

Integer Arcane::SimpleCsvOutputService::addColumn ( const String & column_name,
ConstArrayView< Real > elements )
inlineoverridevirtual

Method to add a column.

If the number of elements in 'elements' is greater than the number of rows, the addition still takes place (but the extra elements will not be added).

Parameters
column_nameThe name of the column.
elementsThe elements to add to the column.
Returns
Integer The position of the column in the table.

Implements Arcane::ISimpleTableOutput.

Definition at line 73 of file SimpleCsvOutputService.h.

◆ addColumns()

bool Arcane::SimpleCsvOutputService::addColumns ( StringConstArrayView columns_names)
inlineoverridevirtual

Method to add multiple columns.

Parameters
rows_namesThe names of the columns.
Returns
true If all columns were created.
false If not all columns were created.

Implements Arcane::ISimpleTableOutput.

Definition at line 77 of file SimpleCsvOutputService.h.

◆ addElementInColumn() [1/2]

bool Arcane::SimpleCsvOutputService::addElementInColumn ( const String & column_name,
Real element,
bool create_if_not_exist )
inlineoverridevirtual

Method to add an element to a column.

Parameters
column_nameThe name of the column.
elementThe element to add.
create_if_not_existTo determine whether the column should be created if it does not yet exist.
Returns
true If the element was successfully added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 109 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementInColumn() [2/2]

bool Arcane::SimpleCsvOutputService::addElementInColumn ( Integer position,
Real element )
inlineoverridevirtual

Method to add an element to a column.

Parameters
positionThe position of the column.
elementThe element to add.
Returns
true If the element was successfully added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 105 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementInRow() [1/2]

bool Arcane::SimpleCsvOutputService::addElementInRow ( const String & row_name,
Real element,
bool create_if_not_exist )
inlineoverridevirtual

Method to add an element to a row.

Parameters
row_nameThe name of the row.
elementThe element to add.
create_if_not_existTo determine whether the row should be created if it does not yet exist.
Returns
true If the element was successfully added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 85 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementInRow() [2/2]

bool Arcane::SimpleCsvOutputService::addElementInRow ( Integer position,
Real element )
inlineoverridevirtual

Method to add an element to a row.

Parameters
positionThe position of the row.
elementThe element to add.
Returns
true If the element was successfully added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 81 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementInSameColumn()

bool Arcane::SimpleCsvOutputService::addElementInSameColumn ( Real element)
inlineoverridevirtual

Method to add an element to the last manipulated column.

This method differs from 'editElementDown()' because here, an element is added to the end of the column, not necessarily after the last added element.

Parameters
elementThe element to add.
Returns
true If the element was added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 113 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementInSameRow()

bool Arcane::SimpleCsvOutputService::addElementInSameRow ( Real element)
inlineoverridevirtual

Method to add an element to the last manipulated row.

This method differs from 'editElementRight()' because here, an element is added to the end of the row, not necessarily after the last added element.

Parameters
elementThe element to add.
Returns
true If the element was added.
false If the element could not be added.

Implements Arcane::ISimpleTableOutput.

Definition at line 89 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ addElementsInColumn() [1/2]

bool Arcane::SimpleCsvOutputService::addElementsInColumn ( const String & column_name,
ConstArrayView< Real > elements,
bool create_if_not_exist )
inlineoverridevirtual

Method to add multiple elements to a column.

If the number of elements in 'elements' is greater than the number of available rows, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Parameters
column_nameThe name of the column.
elementsThe array of elements to add.
create_if_not_existTo determine whether the column should be created if it does not yet exist.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 122 of file SimpleCsvOutputService.h.

◆ addElementsInColumn() [2/2]

bool Arcane::SimpleCsvOutputService::addElementsInColumn ( Integer position,
ConstArrayView< Real > elements )
inlineoverridevirtual

Method to add multiple elements to a column.

If the number of elements in 'elements' is greater than the number of available rows, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Parameters
positionThe position of the column.
elementsThe array of elements to add.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 118 of file SimpleCsvOutputService.h.

◆ addElementsInRow() [1/2]

bool Arcane::SimpleCsvOutputService::addElementsInRow ( const String & row_name,
ConstArrayView< Real > elements,
bool create_if_not_exist )
inlineoverridevirtual

Method to add multiple elements to a row.

If the number of elements in 'elements' is greater than the number of available columns, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Parameters
row_nameThe name of the row.
elementsThe array of elements to add.
create_if_not_existTo determine whether the row should be created if it does not yet exist.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 97 of file SimpleCsvOutputService.h.

◆ addElementsInRow() [2/2]

bool Arcane::SimpleCsvOutputService::addElementsInRow ( Integer position,
ConstArrayView< Real > elements )
inlineoverridevirtual

Method to add multiple elements to a row.

If the number of elements in 'elements' is greater than the number of available columns, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Parameters
positionThe position of the row.
elementsThe array of elements to add.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 93 of file SimpleCsvOutputService.h.

◆ addElementsInSameColumn()

bool Arcane::SimpleCsvOutputService::addElementsInSameColumn ( ConstArrayView< Real > elements)
inlineoverridevirtual

Method to add multiple elements to the last manipulated column.

If the number of elements in 'elements' is greater than the number of available rows, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Aside from the fact that we are manipulating an array here, this method differs from 'editElementDown()' because here, elements are added to the end of the column, not necessarily after the last added element.

Parameters
elementsThe array of elements to add.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 126 of file SimpleCsvOutputService.h.

◆ addElementsInSameRow()

bool Arcane::SimpleCsvOutputService::addElementsInSameRow ( ConstArrayView< Real > elements)
inlineoverridevirtual

Method to add multiple elements to the last manipulated row.

If the number of elements in 'elements' is greater than the number of available columns, the addition still takes place (but the extra elements will not be added) and a return false will be returned.

Aside from the fact that we are manipulating an array here, this method differs from 'editElementRight()' because here, elements are added to the end of the row, not necessarily after the last added element.

Parameters
elementsThe array of elements to add.
Returns
true If all elements were added.
false If [0;len(elements)[ elements were added.

Implements Arcane::ISimpleTableOutput.

Definition at line 101 of file SimpleCsvOutputService.h.

◆ addRow() [1/2]

Integer Arcane::SimpleCsvOutputService::addRow ( const String & row_name)
inlineoverridevirtual

Method to add a row.

Parameters
row_nameThe name of the row.
Returns
Integer The position of the row in the table.

Implements Arcane::ISimpleTableOutput.

Definition at line 57 of file SimpleCsvOutputService.h.

◆ addRow() [2/2]

Integer Arcane::SimpleCsvOutputService::addRow ( const String & row_name,
ConstArrayView< Real > elements )
inlineoverridevirtual

Method to add a row.

If the number of elements in 'elements' is greater than the number of columns, the addition still takes place (but the extra elements will not be added).

Parameters
row_nameThe name of the row.
elementsThe elements to insert into the row.
Returns
Integer The position of the row in the table.

Implements Arcane::ISimpleTableOutput.

Definition at line 61 of file SimpleCsvOutputService.h.

◆ addRows()

bool Arcane::SimpleCsvOutputService::addRows ( StringConstArrayView rows_names)
inlineoverridevirtual

Method to add multiple rows.

Parameters
rows_namesThe names of the rows.
Returns
true If all rows were created.
false If not all rows were created.

Implements Arcane::ISimpleTableOutput.

Definition at line 65 of file SimpleCsvOutputService.h.

◆ clear()

void Arcane::SimpleCsvOutputService::clear ( )
overridevirtual

Method to clear the tables.

Implements Arcane::ISimpleTableOutput.

Definition at line 67 of file SimpleCsvOutputService.cc.

◆ column() [1/2]

RealUniqueArray Arcane::SimpleCsvOutputService::column ( const String & column_name)
inlineoverridevirtual

Method allowing retrieval of a copy of a column.

Parameters
column_nameThe name of the column.
Returns
RealUniqueArray The copy of the column (empty array if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 204 of file SimpleCsvOutputService.h.

◆ column() [2/2]

RealUniqueArray Arcane::SimpleCsvOutputService::column ( Integer position)
inlineoverridevirtual

Method allowing retrieval of a copy of a column.

Parameters
positionThe position of the column.
Returns
RealUniqueArray The copy of the column (empty array if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 195 of file SimpleCsvOutputService.h.

◆ columnName()

String Arcane::SimpleCsvOutputService::columnName ( Integer position)
inlineoverridevirtual

Implements Arcane::ISimpleTableOutput.

Definition at line 249 of file SimpleCsvOutputService.h.

◆ columnPosition()

Integer Arcane::SimpleCsvOutputService::columnPosition ( const String & column_name)
inlineoverridevirtual

Method allowing retrieval of the position of a column.

Parameters
row_nameThe name of the column.
Returns
Integer The position of the column (-1 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 231 of file SimpleCsvOutputService.h.

◆ columnSize() [1/2]

Integer Arcane::SimpleCsvOutputService::columnSize ( const String & column_name)
inlineoverridevirtual

Method allowing retrieval of the size of a column. Including hypothetical 'gaps' in the column.

Parameters
positionThe name of the column.
Returns
Integer The size of the column (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 222 of file SimpleCsvOutputService.h.

◆ columnSize() [2/2]

Integer Arcane::SimpleCsvOutputService::columnSize ( Integer position)
inlineoverridevirtual

Method allowing retrieval of the size of a column. Including hypothetical 'gaps' in the column.

Parameters
positionThe position of the column.
Returns
Integer The size of the column (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 213 of file SimpleCsvOutputService.h.

◆ editColumnName() [1/2]

bool Arcane::SimpleCsvOutputService::editColumnName ( const String & column_name,
const String & new_name )
inlineoverridevirtual

Method allowing changing the name of a column.

Parameters
column_nameThe current name of the column.
new_nameThe new name of the column.
Returns
true If the change occurred.
false If the change did not occur.

Implements Arcane::ISimpleTableOutput.

Definition at line 267 of file SimpleCsvOutputService.h.

◆ editColumnName() [2/2]

bool Arcane::SimpleCsvOutputService::editColumnName ( Integer position,
const String & new_name )
inlineoverridevirtual

Method allowing changing the name of a column.

Parameters
positionThe position of the column.
new_nameThe new name of the column.
Returns
true If the change occurred.
false If the change did not occur.

Implements Arcane::ISimpleTableOutput.

Definition at line 263 of file SimpleCsvOutputService.h.

◆ editElement() [1/3]

bool Arcane::SimpleCsvOutputService::editElement ( const String & column_name,
const String & row_name,
Real element )
inlineoverridevirtual

Method allowing modification of an element in the array.

Parameters
column_nameThe name of the column where the element is located.
row_nameThe name of the row where the element is located.
elementThe replacement element.
Returns
true If the element was successfully replaced.
false If the element could not be replaced.

Implements Arcane::ISimpleTableOutput.

Definition at line 173 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElement() [2/3]

bool Arcane::SimpleCsvOutputService::editElement ( Integer position_x,
Integer position_y,
Real element )
inlineoverridevirtual

Method to modify an element in the table.

Parameters
position_xThe position of the column to modify.
position_yThe position of the row to modify.
elementThe replacement element.
Returns
true If the element was successfully replaced.
false If the element was not replaced.

Implements Arcane::ISimpleTableOutput.

Definition at line 169 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElement() [3/3]

bool Arcane::SimpleCsvOutputService::editElement ( Real element)
inlineoverridevirtual

Method to modify an element in the table.

The x and y positions correspond to the location of the last manipulated element.

This method is useful after using 'elemUDLR(true)' for example.

Parameters
elementThe replacement element.
Returns
true If the element was successfully replaced.
false If the element was not replaced.

Implements Arcane::ISimpleTableOutput.

Definition at line 165 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElementDown()

bool Arcane::SimpleCsvOutputService::editElementDown ( Real element,
bool update_last_position )
inlineoverridevirtual

Method to edit an element below the last element manipulated (row below/same column).

The element being modified thus becomes the last modified element at the end of this method (if update_last_position = true).

This method differs from 'addElementInSameColumn()' because here, an element is added (or modified) below the last manipulated element, which is not necessarily at the end of the column.

Parameters
elementThe element to modify.
update_last_positionShould the "last modified element" cursor be moved?
Returns
true If the element was modified.
false If the element could not be modified.

Implements Arcane::ISimpleTableOutput.

Definition at line 135 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElementLeft()

bool Arcane::SimpleCsvOutputService::editElementLeft ( Real element,
bool update_last_position )
inlineoverridevirtual

Method to edit an element to the left of the last element manipulated (same row/column to the left).

The element being modified thus becomes the last modified element at the end of this method (if update_last_position = true).

Parameters
elementThe element to modify.
update_last_positionShould the "last modified element" cursor be moved?
Returns
true If the element was modified.
false If the element could not be modified.

Implements Arcane::ISimpleTableOutput.

Definition at line 139 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElementRight()

bool Arcane::SimpleCsvOutputService::editElementRight ( Real element,
bool update_last_position )
inlineoverridevirtual

Method to edit an element to the right of the last element manipulated (same row/column to the right).

The element being modified thus becomes the last modified element at the end of this method (if update_last_position = true).

This method differs from 'addElementInSameRow()' because here, an element is added (or modified) to the right of the last manipulated element, which is not necessarily at the end of the column.

Parameters
elementThe element to modify.
update_last_positionShould the "last modified element" cursor be moved?
Returns
true If the element was modified.
false If the element could not be modified.

Implements Arcane::ISimpleTableOutput.

Definition at line 143 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editElementUp()

bool Arcane::SimpleCsvOutputService::editElementUp ( Real element,
bool update_last_position )
inlineoverridevirtual

Method to edit an element above the last element manipulated (row above/same column).

The element being modified thus becomes the last modified element at the end of this method (if update_last_position = true).

Parameters
elementThe element to modify.
update_last_positionShould the "last modified element" cursor be moved?
Returns
true If the element was modified.
false If the element could not be modified.

Implements Arcane::ISimpleTableOutput.

Definition at line 131 of file SimpleCsvOutputService.h.

References element().

Here is the call graph for this function:

◆ editRowName() [1/2]

bool Arcane::SimpleCsvOutputService::editRowName ( const String & row_name,
const String & new_name )
inlineoverridevirtual

Method allowing changing the name of a row.

Parameters
row_nameThe current name of the row.
new_nameThe new name of the row.
Returns
true If the change occurred.
false If the change did not occur.

Implements Arcane::ISimpleTableOutput.

Definition at line 258 of file SimpleCsvOutputService.h.

◆ editRowName() [2/2]

bool Arcane::SimpleCsvOutputService::editRowName ( Integer position,
const String & new_name )
inlineoverridevirtual

Method allowing changing the name of a row.

Parameters
positionThe position of the row.
new_nameThe new name of the row.
Returns
true If the change occurred.
false If the change did not occur.

Implements Arcane::ISimpleTableOutput.

Definition at line 254 of file SimpleCsvOutputService.h.

◆ element() [1/3]

Real Arcane::SimpleCsvOutputService::element ( )
inlineoverridevirtual

Method allowing retrieval of a copy of an element.

The x and y positions correspond to the location of the last manipulated element.

Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 178 of file SimpleCsvOutputService.h.

Referenced by addElementInColumn(), addElementInColumn(), addElementInRow(), addElementInRow(), addElementInSameColumn(), addElementInSameRow(), editElement(), editElement(), editElement(), editElementDown(), editElementLeft(), editElementRight(), and editElementUp().

Here is the caller graph for this function:

◆ element() [2/3]

Real Arcane::SimpleCsvOutputService::element ( const String & column_name,
const String & row_name,
bool update_last_position )
inlineoverridevirtual

Method allowing retrieval of a copy of an element.

Parameters
column_nameThe name of the column where the element is located.
row_nameThe name of the row where the element is located.
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 186 of file SimpleCsvOutputService.h.

◆ element() [3/3]

Real Arcane::SimpleCsvOutputService::element ( Integer position_x,
Integer position_y,
bool update_last_position )
inlineoverridevirtual

Method allowing retrieval of a copy of an element.

Parameters
position_xThe position of the column where the element is located.
position_yThe position of the row where the element is located.
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 182 of file SimpleCsvOutputService.h.

◆ elementDown()

Real Arcane::SimpleCsvOutputService::elementDown ( bool update_last_position)
inlineoverridevirtual

Method to retrieve an element below the last element manipulated (row below/same column).

The element retrieved thus becomes the last "modified" element at the end of this method (if update_last_position = true).

Parameters
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 152 of file SimpleCsvOutputService.h.

◆ elementLeft()

Real Arcane::SimpleCsvOutputService::elementLeft ( bool update_last_position)
inlineoverridevirtual

Method to retrieve an element to the left of the last element manipulated (same row/column to the left).

The element retrieved thus becomes the last "modified" element at the end of this method (if update_last_position = true).

Parameters
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 156 of file SimpleCsvOutputService.h.

◆ elementRight()

Real Arcane::SimpleCsvOutputService::elementRight ( bool update_last_position)
inlineoverridevirtual

Method to retrieve an element to the right of the last element manipulated (same row/column to the right).

The element retrieved thus becomes the last "modified" element at the end of this method (if update_last_position = true).

Parameters
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 160 of file SimpleCsvOutputService.h.

◆ elementUp()

Real Arcane::SimpleCsvOutputService::elementUp ( bool update_last_position)
inlineoverridevirtual

Method to retrieve an element above the last element manipulated (row above/same column).

The element retrieved thus becomes the last "modified" element at the end of this method (if update_last_position = true).

Parameters
update_last_positionShould the "last modified element" cursor be moved?
Returns
Real The found element (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 148 of file SimpleCsvOutputService.h.

◆ fileName()

String Arcane::SimpleCsvOutputService::fileName ( )
inlineoverridevirtual

Accessor allowing retrieval of the file name.

May be different for each process (depending on the implementation).

Returns
String The name.

Implements Arcane::ISimpleTableOutput.

Definition at line 326 of file SimpleCsvOutputService.h.

◆ fileType()

String Arcane::SimpleCsvOutputService::fileType ( )
inlineoverridevirtual

Method allowing knowledge of the service's file type.

Returns
String The file type.

Implements Arcane::ISimpleTableOutput.

Definition at line 340 of file SimpleCsvOutputService.h.

◆ init() [1/3]

bool Arcane::SimpleCsvOutputService::init ( )
overridevirtual

Method to initialize the table.

Implements Arcane::ISimpleTableOutput.

Definition at line 25 of file SimpleCsvOutputService.cc.

References init(), and ArcaneSimpleCsvOutputObject::options().

Referenced by init(), and init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init() [2/3]

bool Arcane::SimpleCsvOutputService::init ( const String & table_name)
overridevirtual

Method to initialize the table.

Parameters
table_nameThe name of the table (and the output file).

Implements Arcane::ISimpleTableOutput.

Definition at line 37 of file SimpleCsvOutputService.cc.

References init(), and ArcaneSimpleCsvOutputObject::options().

Here is the call graph for this function:

◆ init() [3/3]

bool Arcane::SimpleCsvOutputService::init ( const String & table_name,
const String & directory_name )
overridevirtual

Method to initialize the table.

Parameters
table_nameThe name of the table (and the output file).
directory_nameThe name of the directory where the tables should be saved.

Implements Arcane::ISimpleTableOutput.

Definition at line 49 of file SimpleCsvOutputService.cc.

References Arcane::makeRef().

Here is the call graph for this function:

◆ internal()

Ref< SimpleTableInternal > Arcane::SimpleCsvOutputService::internal ( )
inlineoverridevirtual

Method allowing retrieval of a reference to the SimpleTableInternal object used.

Returns
Ref<SimpleTableInternal> A copy of the reference.

Implements Arcane::ISimpleTableOutput.

Definition at line 350 of file SimpleCsvOutputService.h.

◆ isFixed()

bool Arcane::SimpleCsvOutputService::isFixed ( )
inlineoverridevirtual

Method allowing knowledge of whether the 'std::fixed' flag is active or not for writing values.

Returns
true If yes.
false If no.

Implements Arcane::ISimpleTableOutput.

Definition at line 297 of file SimpleCsvOutputService.h.

◆ isForcedToUseScientificNotation()

bool Arcane::SimpleCsvOutputService::isForcedToUseScientificNotation ( )
inlineoverridevirtual

Method allowing knowledge of whether the 'std::scientific' flag is active or not for writing values.

Returns
true If yes.
false If no.

Implements Arcane::ISimpleTableOutput.

Definition at line 300 of file SimpleCsvOutputService.h.

◆ isOneFileByRanksPermited()

bool Arcane::SimpleCsvOutputService::isOneFileByRanksPermited ( )
inlineoverridevirtual

Method allowing knowledge of whether the parameters currently held by the implementation allow it to write one file per process.

Returns
true If yes, the implementation can write one file per process.
false Otherwise, only one file can be written.

Implements Arcane::ISimpleTableOutput.

Definition at line 345 of file SimpleCsvOutputService.h.

◆ numberOfColumns()

Integer Arcane::SimpleCsvOutputService::numberOfColumns ( )
inlineoverridevirtual

Method allowing retrieval of the number of columns in the array. This is, in a way, the maximum number of elements a row can contain.

Returns
Integer The number of columns in the array.

Implements Arcane::ISimpleTableOutput.

Definition at line 240 of file SimpleCsvOutputService.h.

◆ numberOfRows()

Integer Arcane::SimpleCsvOutputService::numberOfRows ( )
inlineoverridevirtual

Method allowing retrieval of the number of rows in the array. This is, in a way, the maximum number of elements a column can contain.

Returns
Integer The number of rows in the array.

Implements Arcane::ISimpleTableOutput.

Definition at line 236 of file SimpleCsvOutputService.h.

◆ outputDirectory()

String Arcane::SimpleCsvOutputService::outputDirectory ( )
inlineoverridevirtual

Accessor allowing retrieval of the name of the directory where the arrays will be placed.

May be different for each process (depending on the implementation).

Returns
String The directory.

Implements Arcane::ISimpleTableOutput.

Definition at line 309 of file SimpleCsvOutputService.h.

◆ outputPath()

Directory Arcane::SimpleCsvOutputService::outputPath ( )
inlineoverridevirtual

Accessor allowing retrieval of the path where the arrays will be saved.

Compared to rootPathOutput(), the return value may differ depending on the "directory" and the "name".

Returns
String The path.

Implements Arcane::ISimpleTableOutput.

Definition at line 331 of file SimpleCsvOutputService.h.

◆ precision()

Integer Arcane::SimpleCsvOutputService::precision ( )
inlineoverridevirtual

Method allowing retrieval of the precision currently used for writing values.

Returns
Integer The precision.

Implements Arcane::ISimpleTableOutput.

Definition at line 291 of file SimpleCsvOutputService.h.

Referenced by setPrecision().

Here is the caller graph for this function:

◆ print()

void Arcane::SimpleCsvOutputService::print ( Integer rank)
inlineoverridevirtual

Method allowing display of the array. Method performing collective operations.

Parameters
rankThe ID of the process that should display the array (-1 to signify "all processes").

Implements Arcane::ISimpleTableOutput.

Definition at line 277 of file SimpleCsvOutputService.h.

◆ readerWriter()

Ref< ISimpleTableReaderWriter > Arcane::SimpleCsvOutputService::readerWriter ( )
inlineoverridevirtual

Method allowing retrieval of a reference to the ISimpleTableReaderWriter object used.

Returns
Ref<ISimpleTableReaderWriter> A copy of the reference.

Implements Arcane::ISimpleTableOutput.

Definition at line 351 of file SimpleCsvOutputService.h.

◆ rootPath()

Directory Arcane::SimpleCsvOutputService::rootPath ( )
inlineoverridevirtual

Accessor allowing retrieval of the path where the implementation saves these arrays.

Compared to pathOutput(), the return value does not depend on "directory" or "name".

Returns
String The path.

Implements Arcane::ISimpleTableOutput.

Definition at line 335 of file SimpleCsvOutputService.h.

◆ row() [1/2]

RealUniqueArray Arcane::SimpleCsvOutputService::row ( const String & row_name)
inlineoverridevirtual

Method allowing retrieval of a copy of a row.

Parameters
row_nameThe name of the row.
Returns
RealUniqueArray The copy of the row (empty array if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 200 of file SimpleCsvOutputService.h.

◆ row() [2/2]

RealUniqueArray Arcane::SimpleCsvOutputService::row ( Integer position)
inlineoverridevirtual

Method allowing retrieval of a copy of a row.

Parameters
positionThe position of the row.
Returns
RealUniqueArray The copy of the row (empty array if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 191 of file SimpleCsvOutputService.h.

◆ rowName()

String Arcane::SimpleCsvOutputService::rowName ( Integer position)
inlineoverridevirtual

Implements Arcane::ISimpleTableOutput.

Definition at line 245 of file SimpleCsvOutputService.h.

◆ rowPosition()

Integer Arcane::SimpleCsvOutputService::rowPosition ( const String & row_name)
inlineoverridevirtual

Method allowing retrieval of the position of a row.

Parameters
row_nameThe name of the row.
Returns
Integer The position of the row (-1 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 227 of file SimpleCsvOutputService.h.

◆ rowSize() [1/2]

Integer Arcane::SimpleCsvOutputService::rowSize ( const String & row_name)
inlineoverridevirtual

Method allowing retrieval of the size of a row. Including hypothetical 'gaps' in the row.

Parameters
positionThe name of the row.
Returns
Integer The size of the row (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 218 of file SimpleCsvOutputService.h.

◆ rowSize() [2/2]

Integer Arcane::SimpleCsvOutputService::rowSize ( Integer position)
inlineoverridevirtual

Method allowing retrieval of the size of a row. Including hypothetical 'gaps' in the row.

Parameters
positionThe position of the row.
Returns
Integer The size of the row (0 if not found).

Implements Arcane::ISimpleTableOutput.

Definition at line 209 of file SimpleCsvOutputService.h.

◆ setFixed()

void Arcane::SimpleCsvOutputService::setFixed ( bool fixed)
inlineoverridevirtual

Method allowing setting the 'std::fixed' flag or not.

For both the 'print()' method and the 'writetable()' method.

This flag allows 'forcing' the number of digits after the comma to the desired precision. For example, if 'setPrecision(4)' is called, and 'setFixed(true)' is called, the print of '6.1' will yield '6.1000'.

Warning
The "std::fixed" flag modifies the behavior of "setPrecision()". If the "std::fixed" flag is disabled, precision defines the total number of digits (before and after the comma); if the "std::fixed" flag is enabled, precision defines the number of digits after the comma. Therefore, be careful when using "std::numeric_limits<Real>::max_digits10" (for writing) or "std::numeric_limits<Real>::digits10" (for reading), which should be used without the "std::fixed" flag.
Parameters
fixedWhether the 'std::fixed' flag should be set or not.

Implements Arcane::ISimpleTableOutput.

Definition at line 298 of file SimpleCsvOutputService.h.

◆ setForcedToUseScientificNotation()

void Arcane::SimpleCsvOutputService::setForcedToUseScientificNotation ( bool use_scientific)
inlineoverridevirtual

Method allowing setting the 'std::scientific' flag or not.

For both the 'print()' method and the 'writetable()' method.

This flag allows 'forcing' the display of values in scientific notation.

Parameters
use_scientificWhether the 'std::scientific' flag should be set or not.

Implements Arcane::ISimpleTableOutput.

Definition at line 304 of file SimpleCsvOutputService.h.

◆ setOutputDirectory()

void Arcane::SimpleCsvOutputService::setOutputDirectory ( const String & directory)
inlineoverridevirtual

Accessor allowing definition of the directory in which the arrays will be saved.

May be different for each process (depending on the implementation).

Parameters
directoryThe directory.

Implements Arcane::ISimpleTableOutput.

Definition at line 313 of file SimpleCsvOutputService.h.

◆ setPrecision()

void Arcane::SimpleCsvOutputService::setPrecision ( Integer precision)
inlineoverridevirtual

Method allowing modification of the print precision.

For both the 'print()' method and the 'writeFile()' methods.

Warning
The "std::fixed" flag modifies the behavior of "setPrecision()". If the "std::fixed" flag is disabled, precision defines the total number of digits (before and after the comma); if the "std::fixed" flag is enabled, precision defines the number of digits after the comma. Therefore, be careful when using "std::numeric_limits<Real>::max_digits10" (for writing) or "std::numeric_limits<Real>::digits10" (for reading), which should be used without the "std::fixed" flag.
Parameters
precisionThe new precision.

Implements Arcane::ISimpleTableOutput.

Definition at line 292 of file SimpleCsvOutputService.h.

References precision().

Here is the call graph for this function:

◆ setTableName()

void Arcane::SimpleCsvOutputService::setTableName ( const String & name)
inlineoverridevirtual

Accessor allowing definition of the array name.

May be different for each process (depending on the implementation).

Parameters
nameThe name.

Implements Arcane::ISimpleTableOutput.

Definition at line 322 of file SimpleCsvOutputService.h.

◆ tableName()

String Arcane::SimpleCsvOutputService::tableName ( )
inlineoverridevirtual

Accessor allowing retrieval of the name of the arrays.

May be different for each process (depending on the implementation).

Returns
String The name.

Implements Arcane::ISimpleTableOutput.

Definition at line 318 of file SimpleCsvOutputService.h.

◆ writeFile() [1/3]

bool Arcane::SimpleCsvOutputService::writeFile ( const Directory & root_directory,
Integer rank )
inlineoverridevirtual

Implements Arcane::ISimpleTableOutput.

Definition at line 285 of file SimpleCsvOutputService.h.

◆ writeFile() [2/3]

bool Arcane::SimpleCsvOutputService::writeFile ( const String & directory,
Integer rank )
overridevirtual

Method allowing writing the array to a file. Method performing collective operations. If rank != -1, processes other than P0 return true.

Parameters
directoryThe directory where the file will be written. The final path will be "./[output_dir]/csv/[directory]/".
rankThe ID of the process that should write the array to a file (-1 to signify "all processes").
Returns
true If the file was written correctly.
false If the file was not written correctly.
Deprecated
Use setOutputDirectory() then writeFile() instead.

Implements Arcane::ISimpleTableOutput.

Definition at line 78 of file SimpleCsvOutputService.cc.

◆ writeFile() [3/3]

bool Arcane::SimpleCsvOutputService::writeFile ( Integer rank)
inlineoverridevirtual

Method allowing writing the array to a file. Method performing collective operations. If rank != -1, processes other than P0 return true.

Parameters
rankThe ID of the process that should write the array to a file (-1 to signify "all processes").
Returns
true If the file was written correctly.
false If the file was not written correctly.

Implements Arcane::ISimpleTableOutput.

Definition at line 281 of file SimpleCsvOutputService.h.

Member Data Documentation

◆ m_internal

Ref<SimpleTableInternal> Arcane::SimpleCsvOutputService::m_internal
private

Definition at line 361 of file SimpleCsvOutputService.h.

◆ m_is_already_init

bool Arcane::SimpleCsvOutputService::m_is_already_init
private

Definition at line 364 of file SimpleCsvOutputService.h.

◆ m_simple_csv_reader_writer

Ref<SimpleCsvReaderWriter> Arcane::SimpleCsvOutputService::m_simple_csv_reader_writer
private

Definition at line 362 of file SimpleCsvOutputService.h.

◆ m_simple_table_internal_mng

SimpleTableInternalMng Arcane::SimpleCsvOutputService::m_simple_table_internal_mng
private

Definition at line 358 of file SimpleCsvOutputService.h.

◆ m_simple_table_output_mng

SimpleTableWriterHelper Arcane::SimpleCsvOutputService::m_simple_table_output_mng
private

Definition at line 359 of file SimpleCsvOutputService.h.

◆ m_with_option

bool Arcane::SimpleCsvOutputService::m_with_option
private

Definition at line 365 of file SimpleCsvOutputService.h.


The documentation for this class was generated from the following files: