emitfromevents.h
Go to the documentation of this file.
1 #ifndef EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
2 #define EMITFROMEVENTS_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 
9 #include <stack>
10 
11 namespace YAML_PM
12 {
13  class Emitter;
14 
16  {
17  public:
18  EmitFromEvents(Emitter& emitter);
19 
20  virtual void OnDocumentStart(const Mark& mark);
21  virtual void OnDocumentEnd();
22 
23  virtual void OnNull(const Mark& mark, anchor_t anchor);
24  virtual void OnAlias(const Mark& mark, anchor_t anchor);
25  virtual void OnScalar(const Mark& mark, const std::string& tag, anchor_t anchor, const std::string& value);
26 
27  virtual void OnSequenceStart(const Mark& mark, const std::string& tag, anchor_t anchor);
28  virtual void OnSequenceEnd();
29 
30  virtual void OnMapStart(const Mark& mark, const std::string& tag, anchor_t anchor);
31  virtual void OnMapEnd();
32 
33  private:
34  void BeginNode();
35  void EmitProps(const std::string& tag, anchor_t anchor);
36 
37  private:
39 
41  std::stack<State::value> m_stateStack;
42  };
43 }
44 
45 #endif // EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
std::size_t anchor_t
Definition: anchor.h:12
virtual void OnDocumentEnd()
virtual void OnMapStart(const Mark &mark, const std::string &tag, anchor_t anchor)
::std::string string
Definition: gtest.h:1979
EmitFromEvents(Emitter &emitter)
void EmitProps(const std::string &tag, anchor_t anchor)
virtual void OnScalar(const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value)
std::stack< State::value > m_stateStack
virtual void OnSequenceEnd()
virtual void OnDocumentStart(const Mark &mark)
virtual void OnAlias(const Mark &mark, anchor_t anchor)
virtual void OnNull(const Mark &mark, anchor_t anchor)
virtual void OnSequenceStart(const Mark &mark, const std::string &tag, anchor_t anchor)


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