source: trunk/src/core/RpEncode.h @ 671

Last change on this file since 671 was 671, checked in by dkearney, 17 years ago

abstracted the encoding module out to a src/core module and linked tcl and python code to the core c++ module.
make small fix to the src/tcl configure script so it correctly finds rappture lib directory.
setup core library module to automatically encode and decode data as needed.
added a missin return value to function in !Ptr.h.

File size: 1.1 KB
Line 
1/*
2 * ======================================================================
3 *  Rappture::encoding
4 *
5 *  AUTHOR:  Derrick Kearney, Purdue University
6 *
7 *  Copyright (c) 2004-2007  Purdue Research Foundation
8 * ----------------------------------------------------------------------
9 *  See the file "license.terms" for information on usage and
10 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11 * ======================================================================
12 */
13
14#ifndef RAPPTURE_ENCODE_H
15#define RAPPTURE_ENCODE_H
16
17// #include "rappture.h"
18#include "RpBuffer.h"
19#include "Outcome.h"
20
21#define RPENC_Z      1
22#define RPENC_B64    2
23#define RPENC_HDR    4
24
25#ifdef __cplusplus
26extern "C" {
27namespace Rappture {
28    namespace encoding {
29#endif // ifdef __cplusplus
30
31int isbinary(const char* buf, int size);
32Rappture::Outcome encode (Rappture::Buffer& buf, int flags);
33Rappture::Outcome decode (Rappture::Buffer& buf, int flags);
34
35#ifdef __cplusplus
36    } // namespace encoding
37} // namespace Rappture
38} // extern C
39#endif // ifdef __cplusplus
40
41#endif // RAPPTURE_ENCODE_H
Note: See TracBrowser for help on using the repository browser.