Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::SimpleTableReaderWriterUtils Class Reference

Class containing two static methods useful for implementations. More...

#include <arcane/core/ISimpleTableReaderWriter.h>

Collaboration diagram for Arcane::SimpleTableReaderWriterUtils:

Static Public Member Functions

static bool createDirectoryOnlyProcess0 (IParallelMng *parallel_mng, const Directory &directory)
 Static method allowing the creation of a directory with multiple processes.
static bool isFileExist (const Directory &directory, const String &file)
 Static method allowing verification of file existence.

Detailed Description

Class containing two static methods useful for implementations.

Definition at line 38 of file ISimpleTableReaderWriter.h.

Member Function Documentation

◆ createDirectoryOnlyProcess0()

bool Arcane::SimpleTableReaderWriterUtils::createDirectoryOnlyProcess0 ( IParallelMng * parallel_mng,
const Directory & directory )
inlinestatic

Static method allowing the creation of a directory with multiple processes.

Note
This is a collective method that must be called by all processes.
Parameters
parallel_mngThe parallel manager of the current context.
directoryThe directory to create.
Returns
true If the directory was successfully created.
false If the directory could not be created.

Definition at line 52 of file ISimpleTableReaderWriter.h.

References Arcane::IParallelMng::commRank(), Arcane::IParallelMng::commSize(), Arcane::Directory::createDirectory(), Arcane::IParallelMng::reduce(), and Arcane::MessagePassing::ReduceMax.

Referenced by Arcane::SimpleTableWriterHelper::writeFile().

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

◆ isFileExist()

bool Arcane::SimpleTableReaderWriterUtils::isFileExist ( const Directory & directory,
const String & file )
inlinestatic

Static method allowing verification of file existence.

Parameters
directoryThe directory where the file is located.
fileThe file name (with extension).
Returns
true If the file already exists.
false If the file does not exist.

Definition at line 72 of file ISimpleTableReaderWriter.h.

References Arcane::Directory::file(), and Arcane::String::localstr().

Referenced by Arcane::SimpleCsvComparatorService::isReferenceExist().

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

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