
/*
 * This file was generated by the SOM Compiler.
 * FileName: xmscssae.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emith.dll: 2.31.1.64
 */

/*
 *  @(#) 1.3 src/somos/cs/exceptns/xmscssae.idl, somos, som3.0 9/3/96 18:42:16 [12/22/96 22:04:48]
 * 
 *  ModuleName:  exceptions
 * 
 *  Description: This module contians the idl description for the User
 *               Exceptions.  It is based on the definitions from the X/Open
 *               spec.  Two of these exceptions, ExNoMoreMemory and ExFileIO,
 * 	        are not officially X/Open.  They are remnants of the Tivoli
 *               code that is still being used.
 * 
 *   25H7912  (C)  Copyright International Business Machines Corp. 1994,1996
 *  All Rights Reserved
 *  Licensed Materials - Property of IBM
 * 
 *  US Government Users Restricted Rights - Use, duplication or disclosure
 *  restricted by GSA ADP Schedule Contract with IBM Corp.
 * 
 * 
 */


#ifndef SOM_SysAdminException_h
#define SOM_SysAdminException_h


/*
 * The SOM_STRICT_IDL macro means that we can ignore stars
 * in our declarations of objects.
 */
#define SOM_STRICT_IDL 1


#include <som.h>
#ifndef SOM_IMPORTEXPORT_somcslib_xmscssae
#ifdef SOM_DLL_somcslib
	/* export semantics */
	#if defined(SOM_DEFFILE_somcslib)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somcslib))\
	|| !defined(SOM_Module_xmscssae_Source)
	#define SOM_IMPORTEXPORT_somcslib_xmscssae
	#else
	#define SOM_IMPORTEXPORT_somcslib_xmscssae SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somcslib_xmscssae SOMDLLIMPORT
#endif
#endif

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef SysAdminException
#define SysAdminException SOMObject
#endif

/*
 * Include Parent Bindings
 */
#ifndef SOM_SOMObject_h
#ifdef SOMLOCALINCLUDES
#include "somobj.h"
#else
#include <somobj.h>
#endif
#endif

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#define ex_SysAdminException_Exception "::SysAdminException::Exception"
typedef
struct SysAdminException_Exception {
void*  dummy;
} SysAdminException_Exception;
#ifndef _IDL_SEQUENCE_octet_defined
#define _IDL_SEQUENCE_octet_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    octet *_buffer;
} _IDL_SEQUENCE_octet;
#endif /* _IDL_SEQUENCE_octet_defined */ 
typedef
_IDL_SEQUENCE_octet SysAdminException_MsgContext;
#define ex_SysAdminException_ExException "::SysAdminException::ExException"
typedef
struct SysAdminException_ExException {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
} SysAdminException_ExException;
/*
 *  Base exception class with X/Open messages
 */

#define ex_SysAdminException_ExFailed "::SysAdminException::ExFailed"
typedef
struct SysAdminException_ExFailed {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  operation_name;
} SysAdminException_ExFailed;
/*
 *  an operation failure
 */

#define ex_SysAdminException_ExInvalid "::SysAdminException::ExInvalid"
typedef
struct SysAdminException_ExInvalid {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  resource_name;
} SysAdminException_ExInvalid;
/*
 *  failure from an invalid resource
 */

#define ex_SysAdminException_ExNotFound "::SysAdminException::ExNotFound"
typedef
struct SysAdminException_ExNotFound {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  resource_name;
} SysAdminException_ExNotFound;
/*
 *  failures due to missing resource
 */

#define ex_SysAdminException_ExExists "::SysAdminException::ExExists"
typedef
struct SysAdminException_ExExists {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  resource_name;
} SysAdminException_ExExists;
/*
 *  failures resulting from an already existing resource
 */

#define ex_SysAdminException_ExFileIO "::SysAdminException::ExFileIO"
typedef
struct SysAdminException_ExFileIO {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  resource_name;
} SysAdminException_ExFileIO;
/*
 *  can't file I/O problem
 */

#define ex_SysAdminException_ExObjNotFound "::SysAdminException::ExObjNotFound"
typedef
struct SysAdminException_ExObjNotFound {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  resource_name;
} SysAdminException_ExObjNotFound;
/*
 *  failures due to missing object
 */

#define ex_SysAdminException_ExNoMoreMemory "::SysAdminException::ExNoMoreMemory"
typedef
struct SysAdminException_ExNoMoreMemory {
string  type_name;
string  catalog;
long  key;
string  default_msg;
long  time_stamp;
SysAdminException_MsgContext msg_context;
string  message;
long  size;
} SysAdminException_ExNoMoreMemory;
/*
 *  memory used up
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ex_Exception
    #ifdef ex_Exception
        #undef ex_Exception
        #define SOMTGD_ex_Exception 1
    #else
        #define ex_Exception ex_SysAdminException_Exception
    #endif /* ex_Exception */
#endif /* SOMTGD_ex_Exception */
#ifndef SOMTGD_Exception
    #ifdef Exception
        #undef Exception
        #define SOMTGD_Exception 1
    #else
        #define Exception SysAdminException_Exception
    #endif /* Exception */
#endif /* SOMTGD_Exception */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_MsgContext
    #ifdef MsgContext
        #undef MsgContext
        #define SOMTGD_MsgContext 1
    #else
        #define MsgContext SysAdminException_MsgContext
    #endif /* MsgContext */
#endif /* SOMTGD_MsgContext */
#endif /* SOM_DONT_USE_SHORT_NAMES */
#ifndef SOMTGD_ex_ExException
    #ifdef ex_ExException
        #undef ex_ExException
        #define SOMTGD_ex_ExException 1
    #else
        #define ex_ExException ex_SysAdminException_ExException
    #endif /* ex_ExException */
#endif /* SOMTGD_ex_ExException */
#ifndef SOMTGD_ExException
    #ifdef ExException
        #undef ExException
        #define SOMTGD_ExException 1
    #else
        #define ExException SysAdminException_ExException
    #endif /* ExException */
#endif /* SOMTGD_ExException */
#ifndef SOMTGD_ex_ExFailed
    #ifdef ex_ExFailed
        #undef ex_ExFailed
        #define SOMTGD_ex_ExFailed 1
    #else
        #define ex_ExFailed ex_SysAdminException_ExFailed
    #endif /* ex_ExFailed */
#endif /* SOMTGD_ex_ExFailed */
#ifndef SOMTGD_ExFailed
    #ifdef ExFailed
        #undef ExFailed
        #define SOMTGD_ExFailed 1
    #else
        #define ExFailed SysAdminException_ExFailed
    #endif /* ExFailed */
#endif /* SOMTGD_ExFailed */
#ifndef SOMTGD_ex_ExInvalid
    #ifdef ex_ExInvalid
        #undef ex_ExInvalid
        #define SOMTGD_ex_ExInvalid 1
    #else
        #define ex_ExInvalid ex_SysAdminException_ExInvalid
    #endif /* ex_ExInvalid */
#endif /* SOMTGD_ex_ExInvalid */
#ifndef SOMTGD_ExInvalid
    #ifdef ExInvalid
        #undef ExInvalid
        #define SOMTGD_ExInvalid 1
    #else
        #define ExInvalid SysAdminException_ExInvalid
    #endif /* ExInvalid */
#endif /* SOMTGD_ExInvalid */
#ifndef SOMTGD_ex_ExNotFound
    #ifdef ex_ExNotFound
        #undef ex_ExNotFound
        #define SOMTGD_ex_ExNotFound 1
    #else
        #define ex_ExNotFound ex_SysAdminException_ExNotFound
    #endif /* ex_ExNotFound */
#endif /* SOMTGD_ex_ExNotFound */
#ifndef SOMTGD_ExNotFound
    #ifdef ExNotFound
        #undef ExNotFound
        #define SOMTGD_ExNotFound 1
    #else
        #define ExNotFound SysAdminException_ExNotFound
    #endif /* ExNotFound */
#endif /* SOMTGD_ExNotFound */
#ifndef SOMTGD_ex_ExExists
    #ifdef ex_ExExists
        #undef ex_ExExists
        #define SOMTGD_ex_ExExists 1
    #else
        #define ex_ExExists ex_SysAdminException_ExExists
    #endif /* ex_ExExists */
#endif /* SOMTGD_ex_ExExists */
#ifndef SOMTGD_ExExists
    #ifdef ExExists
        #undef ExExists
        #define SOMTGD_ExExists 1
    #else
        #define ExExists SysAdminException_ExExists
    #endif /* ExExists */
#endif /* SOMTGD_ExExists */
#ifndef SOMTGD_ex_ExFileIO
    #ifdef ex_ExFileIO
        #undef ex_ExFileIO
        #define SOMTGD_ex_ExFileIO 1
    #else
        #define ex_ExFileIO ex_SysAdminException_ExFileIO
    #endif /* ex_ExFileIO */
#endif /* SOMTGD_ex_ExFileIO */
#ifndef SOMTGD_ExFileIO
    #ifdef ExFileIO
        #undef ExFileIO
        #define SOMTGD_ExFileIO 1
    #else
        #define ExFileIO SysAdminException_ExFileIO
    #endif /* ExFileIO */
#endif /* SOMTGD_ExFileIO */
#ifndef SOMTGD_ex_ExObjNotFound
    #ifdef ex_ExObjNotFound
        #undef ex_ExObjNotFound
        #define SOMTGD_ex_ExObjNotFound 1
    #else
        #define ex_ExObjNotFound ex_SysAdminException_ExObjNotFound
    #endif /* ex_ExObjNotFound */
#endif /* SOMTGD_ex_ExObjNotFound */
#ifndef SOMTGD_ExObjNotFound
    #ifdef ExObjNotFound
        #undef ExObjNotFound
        #define SOMTGD_ExObjNotFound 1
    #else
        #define ExObjNotFound SysAdminException_ExObjNotFound
    #endif /* ExObjNotFound */
#endif /* SOMTGD_ExObjNotFound */
#ifndef SOMTGD_ex_ExNoMoreMemory
    #ifdef ex_ExNoMoreMemory
        #undef ex_ExNoMoreMemory
        #define SOMTGD_ex_ExNoMoreMemory 1
    #else
        #define ex_ExNoMoreMemory ex_SysAdminException_ExNoMoreMemory
    #endif /* ex_ExNoMoreMemory */
#endif /* SOMTGD_ex_ExNoMoreMemory */
#ifndef SOMTGD_ExNoMoreMemory
    #ifdef ExNoMoreMemory
        #undef ExNoMoreMemory
        #define SOMTGD_ExNoMoreMemory 1
    #else
        #define ExNoMoreMemory SysAdminException_ExNoMoreMemory
    #endif /* ExNoMoreMemory */
#endif /* SOMTGD_ExNoMoreMemory */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of bindings for IDL types.
 */

/*
 * Passthru lines: File: "C.h", "after"
 */
#define XPG_FIELDS_PARAMS string type_name, string catalog, long key,  string default_msg, long time_stamp, MsgContext *msg_context

#define SysAdminException_MajorVersion 3
#define SysAdminException_MinorVersion 0

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOM_IMPORTEXPORT_somcslib_xmscssae SOMClass  SOMLINK SysAdminExceptionNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct SysAdminExceptionClassDataStructure {
	SOMClass classObject;
} SOM_IMPORTEXPORT_somcslib_xmscssae SOMDLINK SysAdminExceptionClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct SysAdminExceptionCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_somcslib_xmscssae SOMDLINK SysAdminExceptionCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SysAdminException (SysAdminExceptionClassData.classObject)
#ifndef SOMGD_SysAdminException
    #if (defined(_SysAdminException) || defined(__SysAdminException))
        #undef _SysAdminException
        #undef __SysAdminException
        #define SOMGD_SysAdminException 1
    #else
        #define _SysAdminException _SOMCLASS_SysAdminException
    #endif /* _SysAdminException */
#endif /* SOMGD_SysAdminException */
#define SysAdminException_classObj _SOMCLASS_SysAdminException
#define _SOMMTOKEN_SysAdminException(method) ((somMToken)SysAdminExceptionClassData.method)

/*
 * New and Renew macros for SysAdminException
 */
#define SysAdminExceptionNew() \
   ( _SysAdminException ? \
	_somNew(_SysAdminException) \
	: ( SysAdminExceptionNewClass(\
		SysAdminException_MajorVersion, \
		SysAdminException_MinorVersion),\
	   _somNew(_SysAdminException)))
#define SysAdminExceptionRenew(buf) \
   ( _SysAdminException ? \
	_somRenew(_SysAdminException, buf) \
	: ( SysAdminExceptionNewClass(\
		SysAdminException_MajorVersion, \
		SysAdminException_MinorVersion),\
	   _somRenew(_SysAdminException, buf)))

/*
 * Full Names for Inherited Methods
 */

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SysAdminException_somDefaultInit SOMObject_somDefaultInit
#define SysAdminException_somDestruct SOMObject_somDestruct
#define SysAdminException_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SysAdminException_somDefaultAssign SOMObject_somDefaultAssign
#define SysAdminException_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SysAdminException_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SysAdminException_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SysAdminException_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SysAdminException_somDefaultVAssign SOMObject_somDefaultVAssign
#define SysAdminException_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SysAdminException_somInit SOMObject_somInit
#define SysAdminException_somUninit SOMObject_somUninit
#define SysAdminException_somFree SOMObject_somFree
#define SysAdminException_somGetClass SOMObject_somGetClass
#define SysAdminException_somGetClassName SOMObject_somGetClassName
#define SysAdminException_somGetSize SOMObject_somGetSize
#define SysAdminException_somIsA SOMObject_somIsA
#define SysAdminException_somIsInstanceOf SOMObject_somIsInstanceOf
#define SysAdminException_somRespondsTo SOMObject_somRespondsTo
#define SysAdminException_somDispatch SOMObject_somDispatch
#define SysAdminException_somClassDispatch SOMObject_somClassDispatch
#define SysAdminException_somCastObj SOMObject_somCastObj
#define SysAdminException_somResetObj SOMObject_somResetObj
#define SysAdminException_somPrintSelf SOMObject_somPrintSelf
#define SysAdminException_somDumpSelf SOMObject_somDumpSelf
#define SysAdminException_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_SysAdminException_h */
