44 #ifndef EPETRAEXT_XMLWRITER_H
45 #define EPETRAEXT_XMLWRITER_H
179 void Create(
const std::string& Label);
197 void Write(
const std::string& Label,
const std::vector<std::string>& Content);
200 void Write(
const std::string& Label,
const std::string& Text)
202 std::vector<std::string> Content;
203 Content.push_back(Text);
204 Write(Label, Content);
std::string FileName_
Name of the file.
class XMLWriter: A class for writing Trilinos objects to XML files.
XMLWriter(const Epetra_Comm &Comm, const std::string &FileName)
ctor
void Write(const std::string &Label, const std::string &Text)
Writes input std::string using label Label.
void Create(const std::string &Label)
Creates the file, giving Label to the whole object.
bool IsOpen_
If true, the file has been successfully opened.
const Epetra_Comm & Comm_
Epetra communicator.
void Close()
Closes the file. No Write operations can follow.
void Write(const std::string &Label, const Epetra_Map &Map)
Writes an Epetra_Map using label Label.