44 #ifndef EPETRAEXT_XMLWRITER_H
45 #define EPETRAEXT_XMLWRITER_H
47 #if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS)
49 #warning "The EpetraExt package is deprecated"
185 void Create(
const std::string& Label);
203 void Write(
const std::string& Label,
const std::vector<std::string>& Content);
206 void Write(
const std::string& Label,
const std::string& Text)
208 std::vector<std::string> Content;
209 Content.push_back(Text);
210 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.