Pass version and tag directives to HandleDocumentStart
This commit is contained in:
parent
dfe4d6f721
commit
db6fe5af8b
1 changed files with 10 additions and 4 deletions
|
@ -32,8 +32,12 @@ struct Parser
|
||||||
typedef std::shared_ptr<Parser> Ptr;
|
typedef std::shared_ptr<Parser> Ptr;
|
||||||
typedef std::stack<Ptr> Stack;
|
typedef std::stack<Ptr> Stack;
|
||||||
|
|
||||||
|
typedef yaml_version_directive_t VersionDirective;
|
||||||
typedef yaml_mark_t Mark;
|
typedef yaml_mark_t Mark;
|
||||||
|
|
||||||
|
struct TagDirective;
|
||||||
|
typedef std::list<TagDirective> TagDirectiveList;
|
||||||
|
|
||||||
struct TagDirective {
|
struct TagDirective {
|
||||||
std::string handle;
|
std::string handle;
|
||||||
std::string prefix;
|
std::string prefix;
|
||||||
|
@ -108,8 +112,10 @@ struct Parser
|
||||||
/**
|
/**
|
||||||
* Handle a DOCUMENT-START event.
|
* Handle a DOCUMENT-START event.
|
||||||
*
|
*
|
||||||
* @param [in] versionDirective TODO
|
* @param [in] versionDirective The YAML version of this document
|
||||||
* @param [in] tagDirectives TODO
|
* @param [in] tagDirectives A list of tag directives defined for
|
||||||
|
* this document. Currently unimplemented;
|
||||||
|
* this should be an empty list.
|
||||||
* @param [in] implicit Is the start of the document implicitly
|
* @param [in] implicit Is the start of the document implicitly
|
||||||
* specified?
|
* specified?
|
||||||
* @param [in] startMark The start of the event
|
* @param [in] startMark The start of the event
|
||||||
|
@ -117,8 +123,8 @@ struct Parser
|
||||||
* @returns `true` or `false` indicating whether the event was successfully
|
* @returns `true` or `false` indicating whether the event was successfully
|
||||||
* handled
|
* handled
|
||||||
*/
|
*/
|
||||||
virtual bool HandleDocumentStart(/* TODO: Version directive ,*/
|
virtual bool HandleDocumentStart(const VersionDirective versionDirective,
|
||||||
/* TODO: Tag directive list ,*/
|
const TagDirectiveList& tagDirectives,
|
||||||
bool implicit,
|
bool implicit,
|
||||||
const Mark& startMark,
|
const Mark& startMark,
|
||||||
const Mark& endMark);
|
const Mark& endMark);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue