Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Document Class Reference

A class to represent a structured document, usually some html. More...

#include <document.h>

Classes

class  DocumentHandle
class  Element
class  PathComponent

Public Types

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

Public Member Functions

 Document (std::string_view text)
 Document (const Document &)
Documentoperator= (const Document &)
 Document (Document &&)=default
Documentoperator= (Document &&)=default
bool empty () const
DocumentHandle handle () const
DocumentHandle get (const std::vector< PathComponent > &path)
DocumentHandle insert (PathComponent pos, std::string_view name, std::string_view content="", const UnorderedStringMap< std::string > &attributes={})
DocumentHandle append (std::string_view name, std::string_view content="", const UnorderedStringMap< std::string > &attributes={})
DocumentHandle insertText (PathComponent pos, std::string_view text)
DocumentHandle appendText (std::string_view text)
DocumentHandle insert (PathComponent pos, Document doc)
DocumentHandle append (Document doc)
template<typename BeforVisitor, typename AfterVisitor>
void visit (BeforVisitor before, AfterVisitor after) const
std::string str () const
 operator std::string () const
void serialize (Serializer &s) const
void deserialize (Deserializer &d)

Friends

IVW_CORE_API friend std::ostream & operator<< (std::ostream &ss, const Document &doc)
void swap (Document &lhs, Document &rhs)

Detailed Description

A class to represent a structured document, usually some html.


The documentation for this class was generated from the following file:
  • document.h