1#ifndef _DITTO_DOCUMENT_PATH_
2#define _DITTO_DOCUMENT_PATH_
4#include "AbstractDocumentPath.hpp"
5#include "AttachmentToken.hpp"
7#include "DocumentId.hpp"
11#include "document_path_component.hpp"
31 friend class Document;
45 DocumentPath(CDocument_t *document,
DocumentId id, std::string initial_path);
55 DocumentPath(
const DocumentPath *document_path, std::string key);
65 DocumentPath(
const DocumentPath *document_path, std::size_t index);
68 DocumentPath operator[](std::string key);
69 DocumentPath operator[](std::size_t index);
AbstractDocumentPath(CDocument_t const *document, DocumentId id, std::string initial_path)
Constructs a new initial AbstractDocumentPath for a document.
Definition AbstractDocumentPath.cpp:40
std::shared_ptr< Register > get_register() const
Returns the value at the previously specified key in the document as a std::shared_ptr<Register>....
Definition DocumentPath.cpp:39
std::shared_ptr< Counter > get_counter() const
Returns the value at the previously specified key in the document as a std::shared_ptr<Counter>....
Definition DocumentPath.cpp:34
std::shared_ptr< AttachmentToken > get_attachment_token() const
Returns the value at the previously specified key in the document as a std::shared_ptr<AttachmentToke...
Definition DocumentPath.cpp:29
An identifier for a Document.
Definition DocumentId.hpp:21