EpetraExt
Development
|
class XMLReader: A class for reading Epetra objects stored in XML files. More...
#include <EpetraExt_XMLReader.h>
XMLReader (const Epetra_Comm &Comm, const std::string &FileName) | |
ctor More... | |
~XMLReader () | |
dtor More... | |
void | Read (const std::string &Label, Epetra_Map *&Map) |
Reads the Epetra_Map stored with label Label . More... | |
void | Read64 (const std::string &Label, Epetra_Map *&Map) |
Reads the Epetra_Map stored with label Label . Long Long version. More... | |
void | Read (const std::string &Label, Epetra_CrsGraph *&Graph) |
Reads the Epetra_CrsGraph stored with label Label . More... | |
void | Read64 (const std::string &Label, Epetra_CrsGraph *&Graph) |
Reads the Epetra_CrsGraph stored with label Label . Long Long version. More... | |
void | Read (const std::string &Label, Epetra_CrsMatrix *&Matrix) |
Reads the Epetra_CrsMatrix stored with label Label . More... | |
void | Read64 (const std::string &Label, Epetra_CrsMatrix *&Matrix) |
Reads the Epetra_CrsMatrix stored with label Label . Long Long version. More... | |
void | Read (const std::string &Label, Epetra_MultiVector *&MultiVector) |
Reads the Epetra_MultiVector stored with label Label . More... | |
void | Read64 (const std::string &Label, Epetra_MultiVector *&MultiVector) |
Reads the Epetra_MultiVector stored with label Label . Long Long version. More... | |
void | Read (const std::string &Label, std::vector< std::string > &Content) |
Reads a std::vector of strings with label Label . More... | |
void | Read (const std::string &Label, Teuchos::ParameterList &List) |
Reads the Teuchos::ParameterList stored with label Label . More... | |
class XMLReader: A class for reading Epetra objects stored in XML files.
Class EpetraExt::XMLReader allows to read several Trilinos objects stored in XML files. The XML data format is specified in the documentation of class EpetraExt::XMLWriter, which also contains a MATLAB script. A typical usage of this class is reported in file epetraext/example/inout/XML_IO.cpp.
This class requires Teuchos to be configured with the option –enable-teuchos-expat
.
Reading objects from a file requires the following steps. First, we define an XMLReader object,
Then, we define a set of pointers,
Reading simply goes as follows:
In distributed environments, Epetra_MultiVector, Epetra_CrsGraph and Epetra_CrsMatrix objects have a linear distribution. Epetra_Map objects can be read only when using the same number of processors used for writing.
delete
.Definition at line 113 of file EpetraExt_XMLReader.h.
EpetraExt::XMLReader::XMLReader | ( | const Epetra_Comm & | Comm, |
const std::string & | FileName | ||
) |
ctor
Definition at line 96 of file EpetraExt_XMLReader.cpp.
|
inline |
dtor
Definition at line 121 of file EpetraExt_XMLReader.h.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
Epetra_Map *& | Map | ||
) |
Reads the Epetra_Map stored with label Label
.
Definition at line 463 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read64 | ( | const std::string & | Label, |
Epetra_Map *& | Map | ||
) |
Reads the Epetra_Map stored with label Label
. Long Long version.
Definition at line 531 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
Epetra_CrsGraph *& | Graph | ||
) |
Reads the Epetra_CrsGraph stored with label Label
.
Definition at line 114 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read64 | ( | const std::string & | Label, |
Epetra_CrsGraph *& | Graph | ||
) |
Reads the Epetra_CrsGraph stored with label Label
. Long Long version.
Definition at line 163 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
Epetra_CrsMatrix *& | Matrix | ||
) |
Reads the Epetra_CrsMatrix stored with label Label
.
Definition at line 227 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read64 | ( | const std::string & | Label, |
Epetra_CrsMatrix *& | Matrix | ||
) |
Reads the Epetra_CrsMatrix stored with label Label
. Long Long version.
Definition at line 279 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
Epetra_MultiVector *& | MultiVector | ||
) |
Reads the Epetra_MultiVector stored with label Label
.
Definition at line 345 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read64 | ( | const std::string & | Label, |
Epetra_MultiVector *& | MultiVector | ||
) |
Reads the Epetra_MultiVector stored with label Label
. Long Long version.
Definition at line 404 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
std::vector< std::string > & | Content | ||
) |
Reads a std::vector of strings with label Label
.
Definition at line 610 of file EpetraExt_XMLReader.cpp.
void EpetraExt::XMLReader::Read | ( | const std::string & | Label, |
Teuchos::ParameterList & | List | ||
) |
Reads the Teuchos::ParameterList stored with label Label
.
Definition at line 637 of file EpetraExt_XMLReader.cpp.