-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonDefines.h
64 lines (52 loc) · 1.17 KB
/
CommonDefines.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* CommonDefines.h
*
* Created on: Nov 4, 2012
* Author: knuthelv
*/
#ifndef DDS_CommonDefines_h_IsIncluded
#define DDS_CommonDefines_h_IsIncluded
#include"DDS/IncludeExtLibs.h"
#define DEFAULT_STATE_BIT_COUNT 32
#define DEFAULT_STATUS_COUNT 32
namespace DDS
{
namespace Core
{
typedef uint16_t DataRepresentationId;
typedef std::vector<DataRepresentationId> DataRepresentationIdSeq;
typedef std::vector<std::string> StringSeq;
typedef std::vector<uint8_t> ByteSeq;
const int32_t LENGTH_UNLIMITED = -1;
}
}
namespace DCPS
{
//struct BuiltinTopicKey_t
//{
// BUILTIN_TOPIC_KEY_TYPE_NATIVE value[3];
//};
// ----------------------------------------------------------------------
// Return codes
// ----------------------------------------------------------------------
namespace ReturnCode
{
enum Type
{
Ok = 0,
Error = 1,
UNSUPPORTED = 2,
BAD_PARAMETER = 3,
PRECONDITION_NOT_MET = 4,
OUT_OF_RESOURCES = 5,
NOT_ENABLED = 6,
IMMUTABLE_POLICY = 7,
INCONSISTENT_POLICY = 8,
ALREADY_DELETED = 9,
TIMEOUT = 10,
NODATA = 11,
ILLEGAL_OPERATION = 12
};
}
}
#endif