Inviwo  0.9.10.1
Inviwo documentation
inviwo::Document Class Reference

A helper class to represent a document. More...

#include <document.h>

Classes

class  DocumentHandle
 
class  Element
 
class  PathComponent
 

Public Types

enum  ElementType { Node, Text }
 
using ElemVec = std::vector< std::unique_ptr< Element > >
 

Public Member Functions

 Document (const Document &)=delete
 
Documentoperator= (const Document &)=delete
 
 Document (Document &&)=default
 
Documentoperator= (Document &&)=default
 
DocumentHandle handle () const
 
DocumentHandle get (const std::vector< PathComponent > &path)
 
DocumentHandle insert (PathComponent pos, const std::string &name, const std::string content="", const std::unordered_map< std::string, std::string > &attributes={})
 
DocumentHandle append (const std::string &name, const std::string content="", const std::unordered_map< std::string, std::string > &attributes={})
 
DocumentHandle insert (PathComponent pos, Document doc)
 
DocumentHandle append (Document doc)
 
template<typename BeforVisitor , typename AfterVisitor >
void visit (BeforVisitor before, AfterVisitor after) const
 
 operator std::string () const
 

Friends

template<class Elem , class Traits >
std::basic_ostream< Elem, Traits > & operator<< (std::basic_ostream< Elem, Traits > &ss, const Document &doc)
 

Detailed Description

A helper class to represent a document.


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