 
#ifndef attributevalueset_DEFINED
#define attributevalueset_DEFINED 1
 
#include <class.h>
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from attrvalst.ch and will be
 * overwritten.  Make changes to attrvalst.ch instead.
 */ 
 
/* 
 * The following information was copied, as-is, from attrvalst.ch.
 */ 
 






/* 
 * End of information copied from attrvalst.ch.
 */ 
 
/* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_listkeyset
#include "lstkeyset.ih"
#undef dontDefineRoutinesFor_listkeyset

 
 
/* 
 * Data structure for attributevalueset 
 */ 
struct attributevalueset { 
    union {
	struct basicobject_methods *attributevalueset_methods;
	struct keyset keyset;
	struct listkeyset listkeyset;
    } header;

};

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


#ifndef attributevalueset_PROGRAMMERVERSION
#define attributevalueset_PROGRAMMERVERSION 1
#endif /* attributevalueset_PROGRAMMERVERSION */

#ifdef attributevalueset_VERSION
#undef attributevalueset_VERSION
#endif /* attributevalueset_VERSION */
#define attributevalueset_VERSION ((((attributevalueset_PROGRAMMERVERSION << 16) ^ (12 << 8) ^ sizeof(struct attributevalueset)) & 0x7ffff) + 0x80000 + (1 << 20))

#define attributevalueset_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *attributevalueset__GetClassInfo(); \
  (void) class_EnterInfo(NULL, attributevalueset_classheader.name, attributevalueset__GetClassInfo, NULL, attributevalueset_classheader.namekey); } 
 
#define attributevalueset_StaticLoad()  \
    { \
    listkeyset_StaticLoad(); \
    attributevalueset_StaticLoadOnlyThisClass();  \
    } 
 
#define attributevalueset_StaticEntry  {attributevalueset_StaticLoad()} 
 
static struct classheader attributevalueset_classheader = {
    attributevalueset_VERSION,
    "attributevalueset",
    "attrvalst",
    (struct basicobject_methods *) &class_RoutineStruct,
};


#endif /* attributevalueset_DEFINED */

#if !defined(attributevalueset_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_attributevalueset) && !defined(class_StaticEntriesOnly)
#define attributevalueset_ROUTINESDEFINED

#define attributevalueset_NumberOfElements(self) \
 ((&(self)->header.keyset)->numberOfElements)
#define attributevalueset_SetNumberOfElements(self,value) \
 ((&(self)->header.keyset)->numberOfElements = value)
#define attributevalueset_IncrementNumberOfElements(self) \
 ((&(self)->header.keyset)->numberOfElements++)
#define attributevalueset_DecrementNumberOfElements(self) \
 ((&(self)->header.keyset)->numberOfElements--)
#define attributevalueset_SetCompareFunction(self,comparefunc) \
 ((&(self)->header.keyset)->compare = comparefunc)
#define attributevalueset_SetKeyCopyFunction(self,copyfunc) \
 ((&(self)->header.keyset)->keycopy = copyfunc)
#define attributevalueset_SetKeyFreeFunction(self,freefunc) \
 ((&(self)->header.keyset)->keyfree = freefunc)
#define attributevalueset_SetValueCopyFunction(self,copyfunc) \
 ((&(self)->header.keyset)->valuecopy = copyfunc)
#define attributevalueset_SetValueFreeFunction(self,freefunc) \
 ((&(self)->header.keyset)->valuefree = freefunc)
#define attributevalueset_GetCompareFunction(self) \
 ((&(self)->header.keyset)->compare)
#define attributevalueset_GetKeyCopyFunction(self) \
 ((&(self)->header.keyset)->keycopy)
#define attributevalueset_GetKeyFreeFunction(self) \
 ((&(self)->header.keyset)->keyfree)
#define attributevalueset_GetValueCopyFunction(self) \
 ((&(self)->header.keyset)->valuecopy)
#define attributevalueset_GetValueFreeFunction(self) \
 ((&(self)->header.keyset)->valuefree)
#define attributevalueset_Lookup(self,key,element) \
    ((* ((boolean (*)())((self)->header.attributevalueset_methods->routines[0]))) (self,key,element))
#define attributevalueset_Insert(self,key,element) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[1]))) (self,key,element))
#define attributevalueset_Remove(self,key,retKey,retValue) \
    ((* ((boolean (*)())((self)->header.attributevalueset_methods->routines[2]))) (self,key,retKey,retValue))
#define attributevalueset_Delete(self,key) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[3]))) (self,key))
#define attributevalueset_GetList(self,include,rock) \
    ((* ((struct extendedlist * (*)())((self)->header.attributevalueset_methods->routines[4]))) (self,include,rock))
#define attributevalueset_ForEach(self,stopfunc,rock) \
    ((* ((void * (*)())((self)->header.attributevalueset_methods->routines[5]))) (self,stopfunc,rock))
#define attributevalueset_Prune(self,include,rock) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[6]))) (self,include,rock))
#define attributevalueset_Clear(self) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[7]))) (self))
#define attributevalueset_SetString(self,copyKey,copyValue) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[8]))) (self,copyKey,copyValue))
#define attributevalueset_GetInternalList(self) \
 ((&(self)->header.listkeyset)->list)
#define attributevalueset_FindItem(self,key,findRock) \
    ((* ((long (*)())((self)->header.attributevalueset_methods->routines[9]))) (self,key,findRock))
#define attributevalueset_InsertItem(self,item,findRock) \
    ((* ((void (*)())((self)->header.attributevalueset_methods->routines[10]))) (self,item,findRock))
#define attributevalueset_ParseString(self,str,startBracket,endBracket) \
    ((* ((char * (*)())((self)->header.attributevalueset_methods->routines[11]))) (self,str,startBracket,endBracket))

#define attributevalueset_NewFromObject(self) \
    ((* ((struct attributevalueset * (*)())((self)->header.attributevalueset_methods->info->procs->routines[0]))) (&attributevalueset_classheader, (self)->header.attributevalueset_methods->info->versionnumber))
#define attributevalueset_New() \
    (attributevalueset__New(NULL, attributevalueset_VERSION))
#define attributevalueset_Initialize(self) \
    (attributevalueset__Initialize(NULL, self, attributevalueset_VERSION))

#define attributevalueset_Destroy(self) \
    ((* ((void (*)()) ((self)->header.attributevalueset_methods->info->procs->routines[1]))) (&attributevalueset_classheader, self))
#define attributevalueset_Finalize(self) \
    (attributevalueset__Finalize(NULL, self))

#define attributevalueset_InitializeObject(self) \
    ((boolean) attributevalueset__InitializeObject(NULL, self))
#define attributevalueset_FinalizeObject(self) \
    ((void) attributevalueset__FinalizeObject(NULL, self))


#endif /* !defined(attributevalueset_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_attributevalueset ) && !defined(class_StaticEntriesOnly)*/

#define super_NumberOfElements(self)  \
	   listkeyset_NumberOfElements((struct listkeyset *)self)
#define super_SetNumberOfElements(self,value)  \
	   listkeyset_SetNumberOfElements((struct listkeyset *)self,value)
#define super_IncrementNumberOfElements(self)  \
	   listkeyset_IncrementNumberOfElements((struct listkeyset *)self)
#define super_DecrementNumberOfElements(self)  \
	   listkeyset_DecrementNumberOfElements((struct listkeyset *)self)
#define super_SetCompareFunction(self,comparefunc)  \
	   listkeyset_SetCompareFunction((struct listkeyset *)self,comparefunc)
#define super_SetKeyCopyFunction(self,copyfunc)  \
	   listkeyset_SetKeyCopyFunction((struct listkeyset *)self,copyfunc)
#define super_SetKeyFreeFunction(self,freefunc)  \
	   listkeyset_SetKeyFreeFunction((struct listkeyset *)self,freefunc)
#define super_SetValueCopyFunction(self,copyfunc)  \
	   listkeyset_SetValueCopyFunction((struct listkeyset *)self,copyfunc)
#define super_SetValueFreeFunction(self,freefunc)  \
	   listkeyset_SetValueFreeFunction((struct listkeyset *)self,freefunc)
#define super_GetCompareFunction(self)  \
	   listkeyset_GetCompareFunction((struct listkeyset *)self)
#define super_GetKeyCopyFunction(self)  \
	   listkeyset_GetKeyCopyFunction((struct listkeyset *)self)
#define super_GetKeyFreeFunction(self)  \
	   listkeyset_GetKeyFreeFunction((struct listkeyset *)self)
#define super_GetValueCopyFunction(self)  \
	   listkeyset_GetValueCopyFunction((struct listkeyset *)self)
#define super_GetValueFreeFunction(self)  \
	   listkeyset_GetValueFreeFunction((struct listkeyset *)self)
#define super_Lookup(self,key,element)  \
    ((* ((boolean (*)()) (attributevalueset_supermethods->routines[0]))) (self,key,element))
#define super_Insert(self,key,element)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[1]))) (self,key,element))
#define super_Remove(self,key,retKey,retValue)  \
    ((* ((boolean (*)()) (attributevalueset_supermethods->routines[2]))) (self,key,retKey,retValue))
#define super_Delete(self,key)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[3]))) (self,key))
#define super_GetList(self,include,rock)  \
    ((* ((struct extendedlist * (*)()) (attributevalueset_supermethods->routines[4]))) (self,include,rock))
#define super_ForEach(self,stopfunc,rock)  \
    ((* ((void * (*)()) (attributevalueset_supermethods->routines[5]))) (self,stopfunc,rock))
#define super_Prune(self,include,rock)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[6]))) (self,include,rock))
#define super_Clear(self)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[7]))) (self))
#define super_SetString(self,copyKey,copyValue)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[8]))) (self,copyKey,copyValue))
#define super_GetInternalList(self)  \
	   listkeyset_GetInternalList((struct listkeyset *)self)
#define super_FindItem(self,key,findRock)  \
    ((* ((long (*)()) (attributevalueset_supermethods->routines[9]))) (self,key,findRock))
#define super_InsertItem(self,item,findRock)  \
    ((* ((void (*)()) (attributevalueset_supermethods->routines[10]))) (self,item,findRock))

extern struct basicobject_methods *attributevalueset_supermethods;

#ifndef AUXMODULE

struct basicobject_methods *attributevalueset_supermethods;

struct attributevalueset_methods {
    struct classinfo *info;
    long (*routines[12])();
};

struct attributevalueset_classprocedures {
    struct classinfo *info;
    long (*routines[6])();
};

char * attributevalueset__ParseString();

static struct attributevalueset_methods attributevalueset_methodtable = {
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    (long (*)()) attributevalueset__ParseString
};

struct attributevalueset *attributevalueset__New();
void attributevalueset__Destroy();
boolean attributevalueset__Initialize();
void attributevalueset__Finalize();
boolean attributevalueset__InitializeObject();
void attributevalueset__FinalizeObject();

static struct attributevalueset_classprocedures attributevalueset_classproceduretable = {
    NULL,
    (long (*)()) attributevalueset__New,
    (long (*)()) attributevalueset__Destroy,
    (long (*)()) attributevalueset__Initialize,
    (long (*)()) attributevalueset__Finalize,
    (long (*)()) attributevalueset__InitializeObject,
    (long (*)()) attributevalueset__FinalizeObject
};


static struct classinfo attributevalueset_classinfo = {
    (struct basicobject_methods *) &attributevalueset_methodtable,
    (struct basicobject_methods *) &attributevalueset_classproceduretable,
    "attributevalueset",
    "attrvalst",
    attributevalueset_VERSION,
    "listkeyset",
    "lstkeyset",
    NULL,
    NULL,
    &attributevalueset_classheader,
    NULL,
    0
};

static int classinitialized = FALSE;

boolean attributevalueset__Initialize(classID, self, versionnumber)
struct classheader *classID;
struct attributevalueset *self;
unsigned long versionnumber;
{
    /* listkeyset_Initialize(self); */
    if(!(*((boolean (*)()) (listkeyset_classheader.classprocedures->routines[2])))(&listkeyset_classheader,self, listkeyset_VERSION))
	return FALSE;
    if (! classinitialized)  {
	classinitialized = TRUE;
	attributevalueset_supermethods =self->header.attributevalueset_methods;
	{
	    long (**p)() = &(attributevalueset_methodtable.routines[0]);
	    long (**q)() = &(self->header.attributevalueset_methods->routines[0]);
	    long i;

	    for (i = 0; i < 11; i++)  {
		if (*p == NULL)
		    *p = *q;
		p++;
		q++;
	    }
	}
	attributevalueset_classinfo.superclass = attributevalueset_supermethods->info;
	attributevalueset_methodtable.info = &attributevalueset_classinfo;
    }
    self->header.attributevalueset_methods = (struct basicobject_methods *) &attributevalueset_methodtable;
    if(!attributevalueset__InitializeObject(classID, self)){
	/* listkeyset_Finalize(self); */
	(*((void (*)()) (listkeyset_classheader.classprocedures->routines[3])))(&listkeyset_classheader,self);
	return FALSE;
    }
    return TRUE;
}

struct attributevalueset *attributevalueset__New(classID, versionnumber)
struct classheader *classID;
unsigned long versionnumber;
{
    struct attributevalueset *self;
    if (versionnumber != class_VERSIONNOTKNOWN && versionnumber != attributevalueset_VERSION)  {
	(void) fprintf(stderr, "Incompatible version of attributevalueset requested!\n");
    }
    self = (struct attributevalueset *) malloc (sizeof(struct attributevalueset));
    if (! self)  {
	(void) fprintf(stderr, "Could not allocate attributevalueset object!\n");
	return NULL;
    }
    if(!attributevalueset__Initialize(classID, self, versionnumber)){
	free((char *)self);
	return NULL;
    }
    return self;
}

void attributevalueset__Finalize(classID, self)
struct classheader *classID;
struct attributevalueset *self;
{
    attributevalueset__FinalizeObject(classID, self);
    /* listkeyset_Finalize(self); */
    (*((void (*)()) (listkeyset_classheader.classprocedures->routines[3])))(&listkeyset_classheader,self);
}

void attributevalueset__Destroy(classID, self)
struct classheader *classID;
struct attributevalueset *self;
{
    attributevalueset__Finalize(classID, self);
    free(self);
}

struct classinfo *attributevalueset__GetClassInfo(classID, versionnumber)
struct classheader *classID;
unsigned long versionnumber;
{
    if (versionnumber != class_VERSIONNOTKNOWN && versionnumber != attributevalueset_VERSION)  {
	(void) fprintf(stderr, "Incompatible version of attributevalueset requested!\n");
    }
    attributevalueset_classproceduretable.info = &attributevalueset_classinfo;
    return &attributevalueset_classinfo;
}

/* 
 * THIS IS NEEDED BECAUSE OF THE WAY makedo WORKS.
 * HOPEFULLY, IT CAN BE REMOVED SOON.
 */ 
 
struct classinfo *attrvalst__GetClassInfo(classID, versionnumber)
struct classheader *classID;
unsigned long versionnumber;
{
    return attributevalueset__GetClassInfo(classID, versionnumber);
}
 
/* 
 * END OF THIS PATCH. 
 */ 
 
#endif /* AUXMODULE */
