Class interface allowing reading a file and writing a file with or from a SimpleTableInternal. More...
#include <arcane/core/ISimpleTableReaderWriter.h>
Public Member Functions | |
| virtual bool | writeTable (const Directory &dst, const String &file_name)=0 |
| Method allowing writing a simple table to a file. | |
| virtual bool | readTable (const Directory &src, const String &file_name)=0 |
| Method allowing reading a file containing a simple table. | |
| 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. | |
| virtual Integer | precision ()=0 |
| Method allowing retrieval of the precision currently used for writing values. | |
| virtual void | setPrecision (Integer precision)=0 |
| Method allowing modification of the print precision. | |
| virtual bool | isFixed ()=0 |
| Method allowing checking if the 'std::fixed' flag is active or not for writing values. | |
| virtual void | setFixed (bool fixed)=0 |
| Method allowing setting or unsetting the 'std::fixed' flag. | |
| virtual bool | isForcedToUseScientificNotation ()=0 |
| Method allowing checking if the 'std::scientific' flag is active or not for writing values. | |
| 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. ("csv" will be returned for the csv implementation). | |
| virtual Ref< SimpleTableInternal > | internal ()=0 |
| Method allowing retrieval of a reference to the SimpleTableInternal object used. | |
| virtual void | setInternal (const Ref< SimpleTableInternal > &simple_table_internal)=0 |
| Method allowing setting a reference to a SimpleTableInternal. | |
Class interface allowing reading a file and writing a file with or from a SimpleTableInternal.
The file read must preferably have been written by an implementation of this same interface.
Imperatively, a file written by an implementation of this interface must be readable by this same implementation.
The implementation must not destroy the SimpleTableInternal object pointed to by the pointer used. The caller is responsible for managing this.
Definition at line 98 of file ISimpleTableReaderWriter.h.
|
pure virtual |
Method allowing clearing the content of the SimpleTableInternal object.
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing retrieval of the file type that will be written by the implementation. ("csv" will be returned for the csv implementation).
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing retrieval of a reference to the SimpleTableInternal object used.
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing checking if the 'std::fixed' flag is active or not for writing values.
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing checking if the 'std::scientific' flag is active or not for writing values.
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing retrieval of the precision currently used for writing values.
Implemented in Arcane::SimpleCsvReaderWriter.
Referenced by setPrecision().
|
pure virtual |
Method allowing writing the table to the standard output.
The writing format is free (for the csv implementation, the writing is done the same way as in a csv file).
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing reading a file containing a simple table.
The extension will be added by the implementation.
A call to SimpleTableInternal::clear() must be performed before reading.
The elements that must be retrieved are:
The elements that must be deduced if not retrieved are:
Default deduction for m_row_sizes:
Default deduction for m_column_sizes:
| src | The source directory. |
| file_name | The file name (without extension). |
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing setting or unsetting the 'std::fixed' flag.
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)' was called, and 'setFixed(true)' is called, the print of '6.1' will yield '6.1000'.
| fixed | Whether the 'std::fixed' flag should be set or not. |
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing setting or unsetting the 'std::scientific' flag.
For both the 'print()' method and the 'writetable()' method.
This flag allows 'forcing' the display of values in scientific notation during writing.
| use_scientific | Whether the 'std::scientific' flag should be set or not. |
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing setting a reference to a SimpleTableInternal.
| simple_table_internal | The reference to a SimpleTableInternal. |
Implemented in Arcane::SimpleCsvReaderWriter.
|
pure virtual |
Method allowing modification of the print precision.
For both the 'print()' method and the 'writetable()' method.
| precision | The new precision. |
Implemented in Arcane::SimpleCsvReaderWriter.
References precision().
|
pure virtual |
Method allowing writing a simple table to a file.
The extension will be added by the implementation.
The destination directory will be created by the implementation if it does not exist.
The SimpleTableInternal elements that must be written are:
Other SimpleTableInternal elements are not mandatory.
| dst | The destination directory. |
| file_name | The file name (without extension). |
Implemented in Arcane::SimpleCsvReaderWriter.