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

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

added filtertrailingblanks()

File size: 752 bytes
RevLine 
[186]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
[202]22enum RP_ERROR {
[186]23        RP_SUCCESS,
[202]24        RP_FAILURE,
[186]25        RP_ERR_MEM_ALLOC,
26        RP_ERR_NULL_PTR,
[202]27        RP_ERR_TIMEOUT,
[231]28        RP_ERR_INVALID_INDEX,
[223]29        RP_ERR_INVALID_ARRAY,
30        RP_ERR_WRONG_NUM_NODES,
[231]31        RP_ERR_TOO_MANY_NODES,
[223]32        RP_ERR_TOO_MANY_ELEMENTS
[186]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
[286]51extern void filterTrailingBlanks(char* str, int len);
52
[186]53#endif
Note: See TracBrowser for help on using the repository browser.