source: trunk/src/mesh/rp_defs.h @ 177

Last change on this file since 177 was 177, checked in by cxsong, 18 years ago

updated enums for encoding and compression options

File size: 567 bytes
Line 
1#ifndef __RP_DEFS_H__
2#define __RP_DEFS_H__
3
4#include <iostream>
5
6#ifndef FALSE
7#define FALSE 0
8#endif
9
10#ifndef TRUE
11#define TRUE    1
12#endif
13
14enum DATA_VALUE_TYPE {
15        TYPE_UNKNOWN,
16        TYPE_INT,
17        TYPE_UINT,
18        TYPE_FLOAT,
19        TYPE_DOUBLE
20};
21
22enum RP_ERROR_CODES {
23        RP_SUCCESS,
24        RP_ERR_MEM_ALLOC,
25        RP_ERR_NULL_PTR,
26        RP_ERR_TIMEOUT
27};
28
29enum RP_ENCODE_ALG {
30        RP_NO_ENCODING,
31        RP_UUENCODE
32}
33
34enum RP_COMPRESSION {
35        RP_NO_COMPRESSION,
36        RP_ZLIB
37}
38
39using namespace std;
40
41extern string RpErrorStr;
42
43extern void RpPrintErr();
44extern void RpAppendErr(const char* msg);
45
46#endif
Note: See TracBrowser for help on using the repository browser.