source: trunk/src/mesh/util.h @ 202

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

additions to makefile, error codes, changes to element.

File size: 625 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 {
23        RP_SUCCESS,
24        RP_FAILURE,
25        RP_ERR_MEM_ALLOC,
26        RP_ERR_NULL_PTR,
27        RP_ERR_TIMEOUT,
28        RP_ERR_OUTOFBOUND_INDEX,
29        RP_ERR_INVALID_ARRAY
30};
31
32enum RP_ENCODE_ALG {
33        RP_NO_ENCODING,
34        RP_UUENCODE
35};
36
37enum RP_COMPRESSION {
38        RP_NO_COMPRESSION,
39        RP_ZLIB
40};
41
42using namespace std;
43
44extern string RpErrorStr;
45
46extern void RpPrintErr();
47extern void RpAppendErr(const char* msg);
48
49#endif
Note: See TracBrowser for help on using the repository browser.