forked from global-mesh-labs/lot49
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Utils.hpp
30 lines (21 loc) · 825 Bytes
/
Utils.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "MeshNode.hpp"
#include <fstream>
#pragma once
namespace lot49
{
double Distance(const std::pair<double, double>& inA, const std::pair<double, double>& inB);
void CloseLogs();
std::vector<uint8_t> HexToBytes(const std::string& hex);
std::ostream& operator<< (std::ostream& out, ETransactionType inType);
std::ostream& operator<< (std::ostream& out, EChannelState inType);
std::ostream& operator<<(std::ostream& out, const std::vector<HGID>& v);
std::ostream& operator<<(std::ostream& out, const MeshNode& n);
std::ostream& operator<<(std::ostream& out, const L49Header& i);
std::ostream& operator<<(std::ostream& out, const MeshMessage& m);
std::ofstream& TOPOLOGY();
#define _topology TOPOLOGY()
std::ofstream& LOG();
#define _log LOG()
std::ofstream& STATS();
#define _stats STATS()
}; // namespace lot49