XDRUtils.h

Go to the documentation of this file.
00001 // XDRUtils.h
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 //  These func's moved to xdrutil_ppc.* under the PPC as explained there
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     // xdr_coder is used as an argument to xdr procedures that encode groups
00030     // of things (e.g., xdr_array()). Each leaf class's constructor must set
00031     // this.
00032     static xdrproc_t            xdr_coder( const Type &t ) ;
00033 } ;
00034 
00035 #endif // S_XDRUtils_h
00036 

Generated on Wed Nov 14 03:15:44 2007 for libdap++ by  doxygen 1.5.1