aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/common/defs.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/json/common/defs.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/common/defs.h')
-rw-r--r--library/cpp/json/common/defs.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/library/cpp/json/common/defs.h b/library/cpp/json/common/defs.h
index d3c8761bcc..8e0e6923fc 100644
--- a/library/cpp/json/common/defs.h
+++ b/library/cpp/json/common/defs.h
@@ -1,38 +1,38 @@
-#pragma once
-
-#include <util/generic/strbuf.h>
-#include <util/generic/yexception.h>
-
-namespace NJson {
- class TJsonException: public yexception {
- };
-
- class TJsonCallbacks {
- public:
- explicit TJsonCallbacks(bool throwException = false)
- : ThrowException(throwException)
- {
- }
-
- virtual ~TJsonCallbacks();
-
- virtual bool OnNull();
- virtual bool OnBoolean(bool);
- virtual bool OnInteger(long long);
- virtual bool OnUInteger(unsigned long long);
- virtual bool OnDouble(double);
- virtual bool OnString(const TStringBuf&);
- virtual bool OnOpenMap();
- virtual bool OnMapKey(const TStringBuf&);
- virtual bool OnCloseMap();
- virtual bool OnOpenArray();
- virtual bool OnCloseArray();
- virtual bool OnStringNoCopy(const TStringBuf& s);
- virtual bool OnMapKeyNoCopy(const TStringBuf& s);
- virtual bool OnEnd();
- virtual void OnError(size_t off, TStringBuf reason);
-
- protected:
- bool ThrowException;
- };
-}
+#pragma once
+
+#include <util/generic/strbuf.h>
+#include <util/generic/yexception.h>
+
+namespace NJson {
+ class TJsonException: public yexception {
+ };
+
+ class TJsonCallbacks {
+ public:
+ explicit TJsonCallbacks(bool throwException = false)
+ : ThrowException(throwException)
+ {
+ }
+
+ virtual ~TJsonCallbacks();
+
+ virtual bool OnNull();
+ virtual bool OnBoolean(bool);
+ virtual bool OnInteger(long long);
+ virtual bool OnUInteger(unsigned long long);
+ virtual bool OnDouble(double);
+ virtual bool OnString(const TStringBuf&);
+ virtual bool OnOpenMap();
+ virtual bool OnMapKey(const TStringBuf&);
+ virtual bool OnCloseMap();
+ virtual bool OnOpenArray();
+ virtual bool OnCloseArray();
+ virtual bool OnStringNoCopy(const TStringBuf& s);
+ virtual bool OnMapKeyNoCopy(const TStringBuf& s);
+ virtual bool OnEnd();
+ virtual void OnError(size_t off, TStringBuf reason);
+
+ protected:
+ bool ThrowException;
+ };
+}