00001
00002
00003 #ifndef S_XDRUtils_h
00004 #define S_XDRUtils_h 1
00005
00006 #include <stdio.h>
00007 #include "xdr-datatypes.h"
00008 #include "BaseType.h"
00009
00010 #define xdr_proc_t int *
00011
00012
00013 #ifdef __POWERPC__
00014 extern "C" XDR *new_xdrstdio(FILE *stream, enum xdr_op xop);
00015 extern "C" XDR *set_xdrstdio(XDR *xdr, FILE *stream, enum xdr_op xop);
00016 extern "C" void delete_xdrstdio(XDR *xdr);
00017 #else
00018 XDR *new_xdrstdio(FILE *stream, enum xdr_op xop);
00019 XDR *set_xdrstdio(XDR *xdr, FILE *stream, enum xdr_op xop);
00020 void delete_xdrstdio(XDR *xdr);
00021 #endif
00022
00023 extern "C" bool_t xdr_str(XDR *xdrs, string &buf);
00024
00025 class XDRUtils
00026 {
00027 private: XDRUtils() {}
00028 public:
00029
00030
00031
00032 static xdrproc_t xdr_coder( const Type &t ) ;
00033 } ;
00034
00035 #endif // S_XDRUtils_h
00036