~ubuntu-branches/ubuntu/utopic/mongodb/utopic

« back to all changes in this revision

Viewing changes to src/third_party/yaml-cpp-0.5.1/include/yaml-cpp/eventhandler.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-07-03 09:23:46 UTC
  • mfrom: (1.3.10) (44.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20140703092346-c5bvt46wnzougyly
Tags: 1:2.6.3-0ubuntu1
* New upstream stable release:
  - Dropped patches, included upstream:
    + 0003-All-platforms-but-Windows-find-hash-in-std-tr1.patch
    + 0008-Use-system-libstemmer.patch
    + 0011-Use-a-signed-char-to-store-BSONType-enumerations.patch
    + 0001-SERVER-12064-Atomic-operations-for-gcc-non-Intel-arc.patch
    + 0002-SERVER-12065-Support-ARM-and-AArch64-builds.patch
  - d/p/*: Refreshed/rebased remaining patches.
  - Use system provided libyaml-cpp:
    + d/control: Add libyaml-cpp-dev to BD's.
    + d/rules: Enable --with-system-yaml option.
    + d/p/fix-yaml-detection.patch: Fix detection of libyaml-cpp library.
  - d/mongodb-server.mongodb.upstart: Sync changes from upstream.
  - d/control,mongodb-dev.*: Drop mongodb-dev package; it has no reverse
    dependencies and upstream no longer install header files.
  - d/NEWS: Point users to upstream upgrade documentation for upgrades
    from 2.4 to 2.6.
* Merge from Debian unstable.
* d/control: BD on libv8-3.14-dev to ensure that transitioning to new v8
  versions is a explicit action due to changes in behaviour in >= 3.25
  (LP: #1295723).
* d/mongodb-server.prerm: Dropped debug echo call from maintainer script
  (LP: #1294455).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
 
2
#define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
 
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/anchor.h"
 
9
#include <string>
 
10
 
 
11
namespace YAML
 
12
{
 
13
        struct Mark;
 
14
        
 
15
        class EventHandler
 
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
 
36