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

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

added filtertrailingblanks()

File size: 752 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_INVALID_INDEX,
29        RP_ERR_INVALID_ARRAY,
30        RP_ERR_WRONG_NUM_NODES,
31        RP_ERR_TOO_MANY_NODES,
32        RP_ERR_TOO_MANY_ELEMENTS
33};
34
35enum RP_ENCODE_ALG {
36        RP_NO_ENCODING,
37        RP_UUENCODE
38};
39
40enum RP_COMPRESSION {
41        RP_NO_COMPRESSION,
42        RP_ZLIB
43};
44
45using namespace std;
46
47extern string RpErrorStr;
48extern void RpPrintErr();
49extern void RpAppendErr(const char* msg);
50
51extern void filterTrailingBlanks(char* str, int len);
52
53#endif
Note: See TracBrowser for help on using the repository browser.