KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::XmlOStreamWriter Class Referenceabstract

#include <xml_ostream_writer.h>

Inheritance diagram for Kratos::XmlOStreamWriter:
Collaboration diagram for Kratos::XmlOStreamWriter:

Public Member Functions

Public operations
void WriteElement (const XmlExpressionElement &rElement, const IndexType Level=0)
 Writes an XML expression element. More...
 

Protected Member Functions

Protected operations
virtual void WriteExpressions (const std::vector< Expression::ConstPointer > &rExpressions, const std::string &rTabbing)=0
 Writes generic lazy type expressions. More...
 

Protected Attributes

Protected member variables
std::ostream & mrOStream
 

Life cycle

using IndexType = std::size_t
 
 XmlOStreamWriter (std::ostream &rOStream)
 Constructor. More...
 
virtual ~XmlOStreamWriter ()=default
 

Member Typedef Documentation

◆ IndexType

Constructor & Destructor Documentation

◆ XmlOStreamWriter()

Kratos::XmlOStreamWriter::XmlOStreamWriter ( std::ostream &  rOStream)

Constructor.

Parameters
rOStreamThe output stream to write to.

◆ ~XmlOStreamWriter()

virtual Kratos::XmlOStreamWriter::~XmlOStreamWriter ( )
virtualdefault

Member Function Documentation

◆ WriteElement()

void Kratos::XmlOStreamWriter::WriteElement ( const XmlExpressionElement rElement,
const IndexType  Level = 0 
)

Writes an XML expression element.

Parameters
XmlExpressionElementExpression xml element to be written.
LevelThe indentation level.

◆ WriteExpressions()

virtual void Kratos::XmlOStreamWriter::WriteExpressions ( const std::vector< Expression::ConstPointer > &  rExpressions,
const std::string &  rTabbing 
)
protectedpure virtual

Writes generic lazy type expressions.

Parameters
rExpressionsExpressions list to write.
rTabbingTabbing used for expression writing.

Implemented in Kratos::XmlOStreamBase64BinaryWriter, and Kratos::XmlOStreamAsciiWriter.

Member Data Documentation

◆ mrOStream

std::ostream& Kratos::XmlOStreamWriter::mrOStream
protected

The documentation for this class was generated from the following files: