Inviwo
0.9.10.1
Inviwo documentation
|
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 | |
Document & | operator= (const Document &)=delete |
Document (Document &&)=default | |
Document & | operator= (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) |
A helper class to represent a document.