HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_uuencode.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Stream methods to uuencode & uudecode a stream (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UT_uuencode_h__
13 #define __UT_uuencode_h__
14 
15 #include "UT_API.h"
16 #include <iosfwd>
17 
18 class UT_IStream;
19 class UT_String;
20 
21 //
22 // Encode a binary istream and write the uuencoded data to os.
23 // The file permissions are defined by mode.
24 // This will read from is until it's out of data...
25 UT_API extern bool UTuuencode(UT_IStream &is, std::ostream &os,
26  const char *name, int mode = 0666);
27 
28 //
29 // Take a uuencoded istream and write the uudecoded data to os
30 // the filename is returned in the UT_String. If the mode
31 // is not a null pointer, it will be set to the mode of the
32 // file. This will terminate when the "end" statement is reached
33 UT_API extern bool UTuudecode(UT_IStream &is, std::ostream &os,
34  UT_String &name, int *mode = 0);
35 
36 #endif
#define UT_API
Definition: UT_API.h:14
GLuint const GLchar * name
Definition: glcorearb.h:786
GLenum mode
Definition: glcorearb.h:99
UT_API bool UTuuencode(UT_IStream &is, std::ostream &os, const char *name, int mode=0666)
UT_API bool UTuudecode(UT_IStream &is, std::ostream &os, UT_String &name, int *mode=0)