eventhandler.h
Go to the documentation of this file.
1 #ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
2 #define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
3 
4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
5 #pragma once
6 #endif
7 
8 #include "yaml-cpp-pm/anchor.h"
9 #include <string>
10 
11 namespace YAML_PM
12 {
13  struct Mark;
14 
16  {
17  public:
18  virtual ~EventHandler() {}
19 
20  virtual void OnDocumentStart(const Mark& mark) = 0;
21  virtual void OnDocumentEnd() = 0;
22 
23  virtual void OnNull(const Mark& mark, anchor_t anchor) = 0;
24  virtual void OnAlias(const Mark& mark, anchor_t anchor) = 0;
25  virtual void OnScalar(const Mark& mark, const std::string& tag, anchor_t anchor, const std::string& value) = 0;
26 
27  virtual void OnSequenceStart(const Mark& mark, const std::string& tag, anchor_t anchor) = 0;
28  virtual void OnSequenceEnd() = 0;
29 
30  virtual void OnMapStart(const Mark& mark, const std::string& tag, anchor_t anchor) = 0;
31  virtual void OnMapEnd() = 0;
32  };
33 }
34 
35 #endif // EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
36 
YAML_PM::EventHandler::~EventHandler
virtual ~EventHandler()
Definition: eventhandler.h:18
YAML_PM
Definition: aliasmanager.h:11
YAML_PM::EventHandler
Definition: eventhandler.h:15
YAML_PM::EventHandler::OnSequenceStart
virtual void OnSequenceStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0
anchor.h
testing::internal::string
::std::string string
Definition: gtest.h:1979
YAML_PM::EventHandler::OnDocumentStart
virtual void OnDocumentStart(const Mark &mark)=0
YAML_PM::EventHandler::OnSequenceEnd
virtual void OnSequenceEnd()=0
YAML_PM::EventHandler::OnScalar
virtual void OnScalar(const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value)=0
YAML_PM::EventHandler::OnAlias
virtual void OnAlias(const Mark &mark, anchor_t anchor)=0
YAML_PM::Mark
Definition: mark.h:13
YAML_PM::EventHandler::OnNull
virtual void OnNull(const Mark &mark, anchor_t anchor)=0
YAML_PM::anchor_t
std::size_t anchor_t
Definition: anchor.h:12
YAML_PM::EventHandler::OnDocumentEnd
virtual void OnDocumentEnd()=0
YAML_PM::EventHandler::OnMapEnd
virtual void OnMapEnd()=0
YAML_PM::EventHandler::OnMapStart
virtual void OnMapStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:45:57