Inviwo 0.9.12-pre
Inviwo documentation
|
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 &) | |
Document & | operator= (const Document &) |
Document (Document &&)=default | |
Document & | operator= (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) |
A class to represent a structured document, usually some html.