 
#ifndef xbm_DEFINED
#define xbm_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from xbm.ch and will be
 * overwritten.  Make changes to xbm.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from xbm.ch.
 */ 
 
 /*  ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


 
/*  xbm.H

        xbm package

        Routines for reading and writing rasters in X Bitmap format.


 */



#include <pixelimg.ih>

#define  xbm_PROGRAMMERVERSION    1

#define BUFBITS (1<<17)







/* 
 * End of information copied from xbm.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
/* xbm has no super class */ 
 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for xbm 
 */ 
/* xbm is a package.  Packages don't have any data */ 

 
/* 
 * End of data structure for xbm.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef xbm_PROGRAMMERVERSION
#define xbm_PROGRAMMERVERSION 1
#endif /* xbm_PROGRAMMERVERSION */

#ifdef xbm_VERSION
#undef xbm_VERSION
#endif /* xbm_VERSION */
#define xbm_VERSION ((((xbm_PROGRAMMERVERSION << 16) ^ (2 << 8)) & 0x7ffff) + (1 << 20))


#endif /* class_StaticInfoOnly */
#define xbm_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *xbm__GetClassInfo(); \
 extern struct classheader *xbm_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, xbm_classheader_StaticExport->name, xbm__GetClassInfo, NULL, xbm_classheader_StaticExport->namekey); } 
 
#define xbm_StaticLoad()  \
    { \
    xbm_StaticLoadOnlyThisClass();  \
    } 
 
#define xbm_StaticEntry  {xbm_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader xbm_classheader = {
    xbm_VERSION,
    "xbm",
    "xbm",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define xbm_CLASSPROCEDURES (xbm_classheader.classprocedures)
int xbm_classref_;
#endif /* class_StaticInfoOnly */

#endif /* xbm_DEFINED */

#if !defined(xbm_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_xbm) && !defined(class_StaticEntriesOnly)
#define xbm_ROUTINESDEFINED


#define xbm_ReadImage(file,pix) \
    (*((long (*)()) (xbm_CLASSPROCEDURES->routines[0])))(&xbm_classheader,file,pix)
#define xbm_WriteImage(file,pix,sub) \
    (*((void (*)()) (xbm_CLASSPROCEDURES->routines[1])))(&xbm_classheader,file,pix,sub)


#endif /* !defined(xbm_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_xbm ) && !defined(class_StaticEntriesOnly)*/

