lichao
2021-04-23 02ba913dc7bb5d711471b27f2ea23a897d0f2e28
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * =====================================================================================
 *
 *       Filename:  defs.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2021年03月26日 19时26分17秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Li Chao (), 
 *   Organization:  
 *
 * =====================================================================================
 */
 
#ifndef DEFS_KP8LKGD0
#define DEFS_KP8LKGD0
 
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <string>
 
typedef boost::uuids::uuid MQId;
 
const MQId &BHTopicBusAddress();
const MQId &BHTopicCenterAddress();
const MQId &BHUniCenterAddress();
 
const int kBHCenterPort = 24287;
const char kTopicSep = '.';
namespace bhome_shm
{
class SharedMemory;
} // namespace bhome_shm
 
bhome_shm::SharedMemory &BHomeShm();
typedef std::string Topic;
void SetLastError(const int ec, const std::string &msg);
void GetLastError(int &ec, std::string &msg);
//TODO center can check shm for previous crash.
 
#endif // end of include guard: DEFS_KP8LKGD0