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 
std::size_t anchor_t
Definition: anchor.h:12
::std::string string
Definition: gtest.h:1979
virtual void OnSequenceEnd()=0
virtual void OnSequenceStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0
virtual void OnDocumentEnd()=0
virtual void OnNull(const Mark &mark, anchor_t anchor)=0
virtual void OnMapEnd()=0
virtual void OnMapStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0
virtual void OnDocumentStart(const Mark &mark)=0
virtual void OnAlias(const Mark &mark, anchor_t anchor)=0
virtual void OnScalar(const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value)=0


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:36:30