12#ifndef ARCANE_CORE_ISIMPLETABLEREADERWRITER_H
13#define ARCANE_CORE_ISIMPLETABLEREADERWRITER_H
17#include "arcane/core/ISimpleTableInternalMng.h"
19#include "arcane/core/Directory.h"
20#include "arcane/core/IParallelMng.h"
22#include "arcane/utils/Iostream.h"
75 stream.open(directory.
file(file).
localstr(), std::ifstream::in);
76 bool fin = stream.good();
Declarations of types on entities.
Class managing a directory.
String file(const String &file_name) const override
Returns the full path of the file file_name in the directory.
bool createDirectory() const override
Creates the directory.
Interface of the parallelism manager for a subdomain.
virtual Int32 commRank() const =0
Rank of this instance in the communicator.
virtual Int32 commSize() const =0
Number of instances in the communicator.
virtual char reduce(eReduceType rt, char v)=0
Performs a reduction of type rt on the real v and returns the value.
Class interface allowing reading a file and writing a file with or from a SimpleTableInternal.
virtual bool isForcedToUseScientificNotation()=0
Method allowing checking if the 'std::scientific' flag is active or not for writing values.
virtual bool writeTable(const Directory &dst, const String &file_name)=0
Method allowing writing a simple table to a file.
virtual void setPrecision(Integer precision)=0
Method allowing modification of the print precision.
virtual void setInternal(const Ref< SimpleTableInternal > &simple_table_internal)=0
Method allowing setting a reference to a SimpleTableInternal.
virtual Integer precision()=0
Method allowing retrieval of the precision currently used for writing values.
virtual bool isFixed()=0
Method allowing checking if the 'std::fixed' flag is active or not for writing values.
virtual bool readTable(const Directory &src, const String &file_name)=0
Method allowing reading a file containing a simple table.
virtual void setFixed(bool fixed)=0
Method allowing setting or unsetting the 'std::fixed' flag.
virtual Ref< SimpleTableInternal > internal()=0
Method allowing retrieval of a reference to the SimpleTableInternal object used.
virtual void setForcedToUseScientificNotation(bool use_scientific)=0
Method allowing setting or unsetting the 'std::scientific' flag.
virtual String fileType()=0
Method allowing retrieval of the file type that will be written by the implementation....
virtual void clearInternal()=0
Method allowing clearing the content of the SimpleTableInternal object.
virtual void print()=0
Method allowing writing the table to the standard output.
Reference to an instance.
Class containing two static methods useful for implementations.
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.
Unicode character string.
const char * localstr() const
Returns the conversion of the instance into UTF-8 encoding.
@ ReduceMax
Maximum of values.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.