From b4cf0a2e71ad2c204925b33f9600dc720e25b827 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sun, 09 Jan 2022 23:22:58 +0000
Subject: [PATCH] Initial shift to rapidjson
---
json.hpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/json.hpp b/json.hpp
index 5d1fc2b..19a4b68 100644
--- a/json.hpp
+++ b/json.hpp
@@ -62,7 +62,7 @@
};
struct AnnounceMessage : public FromExchange {
- std::string stationId;
+ int stationId;
std::string stationName;
std::string unit;
std::chrono::nanoseconds expiry;
@@ -71,7 +71,7 @@
double broFee;
AnnounceMessage(MessageTypes type, std::string product,
- std::string stationId, std::string stationName,
+ int stationId, std::string stationName,
std::string unit, std::chrono::nanoseconds expiry,
double aggFee, double pasFee, double broFee,
uint64_t sequence, double timestamp);
@@ -164,6 +164,5 @@
std::string counterparty, std::string id);
};
-Message* parseSingle(std::string& str);
-std::queue<Message*> parseMany(std::string& str);
+std::queue<Message*> parse(std::string& str);
} // namespace json
--
Gitblit v1.10.0