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
YAML_PM::EmitFromEvents::OnScalar
virtual void OnScalar(const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value)
Definition: emitfromevents.cpp:42
YAML_PM
Definition: aliasmanager.h:11
YAML_PM::EmitFromEvents::State::value
value
Definition: emitfromevents.h:40
YAML_PM::EmitFromEvents::OnSequenceEnd
virtual void OnSequenceEnd()
Definition: emitfromevents.cpp:57
YAML_PM::EventHandler
Definition: eventhandler.h:15
eventhandler.h
YAML_PM::EmitFromEvents::OnDocumentEnd
virtual void OnDocumentEnd()
Definition: emitfromevents.cpp:25
testing::internal::string
::std::string string
Definition: gtest.h:1979
YAML_PM::EmitFromEvents::State
Definition: emitfromevents.h:40
YAML_PM::EmitFromEvents::State::WaitingForKey
@ WaitingForKey
Definition: emitfromevents.h:40
YAML_PM::EmitFromEvents::OnDocumentStart
virtual void OnDocumentStart(const Mark &mark)
Definition: emitfromevents.cpp:21
YAML_PM::EmitFromEvents
Definition: emitfromevents.h:15
YAML_PM::EmitFromEvents::State::WaitingForValue
@ WaitingForValue
Definition: emitfromevents.h:40
YAML_PM::EmitFromEvents::m_emitter
Emitter & m_emitter
Definition: emitfromevents.h:38
YAML_PM::EmitFromEvents::OnMapEnd
virtual void OnMapEnd()
Definition: emitfromevents.cpp:72
YAML_PM::EmitFromEvents::OnMapStart
virtual void OnMapStart(const Mark &mark, const std::string &tag, anchor_t anchor)
Definition: emitfromevents.cpp:64
YAML_PM::EmitFromEvents::State::WaitingForSequenceEntry
@ WaitingForSequenceEntry
Definition: emitfromevents.h:40
YAML_PM::EmitFromEvents::OnSequenceStart
virtual void OnSequenceStart(const Mark &mark, const std::string &tag, anchor_t anchor)
Definition: emitfromevents.cpp:49
YAML_PM::EmitFromEvents::EmitFromEvents
EmitFromEvents(Emitter &emitter)
Definition: emitfromevents.cpp:17
YAML_PM::Emitter
Definition: emitter.h:23
YAML_PM::Mark
Definition: mark.h:13
YAML_PM::EmitFromEvents::EmitProps
void EmitProps(const std::string &tag, anchor_t anchor)
Definition: emitfromevents.cpp:98
YAML_PM::EmitFromEvents::OnNull
virtual void OnNull(const Mark &mark, anchor_t anchor)
Definition: emitfromevents.cpp:29
YAML_PM::EmitFromEvents::OnAlias
virtual void OnAlias(const Mark &mark, anchor_t anchor)
Definition: emitfromevents.cpp:36
YAML_PM::EmitFromEvents::m_stateStack
std::stack< State::value > m_stateStack
Definition: emitfromevents.h:41
YAML_PM::anchor_t
std::size_t anchor_t
Definition: anchor.h:12
YAML_PM::EmitFromEvents::BeginNode
void BeginNode()
Definition: emitfromevents.cpp:79


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