Interface of the input/output manager. More...
#include <arcane/core/IIOMng.h>
Public Member Functions | |
| virtual | ~IIOMng ()=default |
| Frees resources. | |
| virtual IXmlDocumentHolder * | parseXmlFile (const String &filename, const String &schemaname=String{})=0 |
| Reads and parses the XML file filename. | |
| virtual IXmlDocumentHolder * | parseXmlFile (const String &filename, const String &schemaname, ConstArrayView< Byte > schema_data)=0 |
| Reads and parses the XML file filename. | |
| virtual IXmlDocumentHolder * | parseXmlBuffer (Span< const Byte > buffer, const String &name)=0 |
| Reads and parses the XML file contained in the buffer buffer. | |
| virtual IXmlDocumentHolder * | parseXmlBuffer (Span< const std::byte > buffer, const String &name)=0 |
| Reads and parses the XML file contained in the buffer buffer. | |
| virtual IXmlDocumentHolder * | parseXmlString (const String &str, const String &name)=0 |
| Reads and parses the XML file contained in the string str. | |
| virtual bool | writeXmlFile (IXmlDocumentHolder *doc, const String &filename, const bool indented=false)=0 |
| Writes the XML tree of the document doc to the file filename. | |
| virtual bool | collectiveRead (const String &filename, ByteArray &bytes)=0 |
| Collective reading of a file. | |
| virtual bool | collectiveRead (const String &filename, ByteArray &bytes, bool is_binary)=0 |
| Collective reading of a file. | |
| virtual bool | localRead (const String &filename, ByteArray &bytes)=0 |
| Local reading of a file. | |
| virtual bool | localRead (const String &filename, ByteArray &bytes, bool is_binary)=0 |
| Local reading of a file. | |
|
pure virtual |
Collective reading of a file.
Collectively reads the file filename and returns its content in bytes. The file is considered a binary file. Collective reading means that all processors call this operation and will read the same file. The implementation can then optimize disk access by grouping the actual reading on one or more processors and then sending the file content to the others.
| true | in case of an error |
| false | if everything is okay. |
|
pure virtual |
Collective reading of a file.
Collectively reads the file filename and returns its content in bytes. The file is considered a binary file if is_binary is true. Collective reading means that all processors call this operation and will read the same file. The implementation can then optimize disk access by grouping the actual reading on one or more processors and then sending the file content to the others.
| true | in case of an error |
| false | if everything is okay. |
Local reading of a file.
Locally reads the file filename and returns its content in bytes. The file is considered a binary file. This operation is not collective.
| true | in case of an error. |
| false | if everything is okay. |
|
pure virtual |
Local reading of a file.
Locally reads the file filename and returns its content in bytes. This operation is not collective.
| true | in case of an error. |
| false | if everything is okay. |
|
pure virtual |
Reads and parses the XML file contained in the buffer buffer.
In case of an error, returns 0. The caller owns the returned instance and must destroy it using the delete operator. The argument name associates a name with the memory area that is used for displaying error messages.
Referenced by Arcane::Hdf5VariableReaderHelper2::open().
|
pure virtual |
Reads and parses the XML file contained in the buffer buffer.
In case of an error, returns 0. The caller owns the returned instance and must destroy it using the delete operator. The argument name associates a name with the memory area that is used for displaying error messages.
|
pure virtual |
Reads and parses the XML file filename.
In case of an error, returns 0. The caller owns the returned instance and must destroy it using the delete operator. The consistency of the file relative to the schema is checked; The schema name is provided only for error message processing.
|
pure virtual |
Reads and parses the XML file filename.
In case of an error, returns 0. The caller owns the returned instance and must destroy it using the delete operator. If a schema name is specified, the consistency of the file relative to the schema is checked.
Referenced by Arcane::Hdf5VariableReaderHelper::open().
|
pure virtual |
Reads and parses the XML file contained in the string str.
In case of an error, returns 0. The caller owns the returned instance and must destroy it using the delete operator. The argument name associates a name with the memory area that is used for displaying error messages.
|
pure virtual |
Writes the XML tree of the document doc to the file filename.
| true | in case of an error, |
Referenced by Arcane::ManualHdf5VariableWriter::notifyEndWrite().