home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 17.5 KB | 735 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLTxtRun.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- *
- * File: SLTxtRun.idl
- *
- * Contains: Interface for OTextRunReader and OTextRunWriter classes
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- *
- */
-
-
- #ifndef SOM_FW_OTextRunReader_xh
- #define SOM_FW_OTextRunReader_xh
-
- class FW_OTextRunReader;
-
- #define FW_OTextRunReader_MajorVersion 1
- #define FW_OTextRunReader_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_SOMObject_xh
- #include <somobj.xh>
- #endif
-
- #ifndef FW_OTextRunReader_API
- #define FW_OTextRunReader_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class FW_OTextRunReader;
- class FW_OTextRunWriter;
- class FW_OMemoryRunReader;
- class FW_OMemoryRunWriter;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OTextRunReaderCClassData FW_OTextRunReaderClassData
- #define FW_OTextRunReaderNewClass(major,minor) somNewVersionedClassReference(FW_OTextRunReader,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OTextRunReaderMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OTextRunReader class object, and the methods it introduces. */
- SOMEXTERN struct FW_OTextRunReaderClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken GetCurrentRun;
- somMToken NextRun;
- somMToken PreviousRun;
- somMToken GetTotalLength;
- } SOMDLINK FW_OTextRunReaderClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OTextRunReader_Class_Source) && !defined(SOM_Module_sltxtrun_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OTextRunReaderClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OTextRunReader Method Procedures
- */
- SOMEXTERN {
- typedef corbastring (* SOMLINK somTD_FW_OTextRunReader_GetCurrentRun)(FW_OTextRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale);
- typedef boolean (* SOMLINK somTD_FW_OTextRunReader_NextRun)(FW_OTextRunReader *somSelf, Environment *ev);
- typedef boolean (* SOMLINK somTD_FW_OTextRunReader_PreviousRun)(FW_OTextRunReader *somSelf, Environment *ev);
- typedef FW_ByteCount (* SOMLINK somTD_FW_OTextRunReader_GetTotalLength)(FW_OTextRunReader *somSelf, Environment *ev);
- }
-
- #endif /* FW_OTextRunReader_API */
-
-
- /*
- * -- 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))
-
- /*
- * -- The C++ Wrapper Class for FW_OTextRunReader
- */
- class FW_OTextRunReader : public SOMObject
- {
- public:
-
- // FW_OTextRunReader::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OTextRunReader, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OTextRunReader);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OTextRunReader);
- #endif
- }
-
- // FW_OTextRunReader::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: GetCurrentRun */
- corbastring GetCurrentRun(Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale)
- {
- #ifdef SOMCHKEXCEPT
- corbastring __somResult =
- SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,GetCurrentRun)
- (this,ev,length,locale);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,GetCurrentRun)
- (this,ev,length,locale);
- #endif
- }
-
- /* method: NextRun */
- boolean NextRun(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somResult =
- SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,NextRun)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,NextRun)
- (this,ev);
- #endif
- }
-
- /* method: PreviousRun */
- boolean PreviousRun(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somResult =
- SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,PreviousRun)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,PreviousRun)
- (this,ev);
- #endif
- }
-
- /* method: GetTotalLength */
- FW_ByteCount GetTotalLength(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_ByteCount __somResult =
- SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,GetTotalLength)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunReader,FW_OTextRunReader,GetTotalLength)
- (this,ev);
- #endif
- }
-
- }; /* FW_OTextRunReader */
-
-
-
- #endif /* SOM_FW_OTextRunReader_xh */
-
- #ifndef SOM_FW_OTextRunWriter_xh
- #define SOM_FW_OTextRunWriter_xh
-
- class FW_OTextRunWriter;
-
- #define FW_OTextRunWriter_MajorVersion 1
- #define FW_OTextRunWriter_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_SOMObject_xh
- #include <somobj.xh>
- #endif
-
- #ifndef FW_OTextRunWriter_API
- #define FW_OTextRunWriter_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OTextRunWriterCClassData FW_OTextRunWriterClassData
- #define FW_OTextRunWriterNewClass(major,minor) somNewVersionedClassReference(FW_OTextRunWriter,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OTextRunWriterMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OTextRunWriter class object, and the methods it introduces. */
- SOMEXTERN struct FW_OTextRunWriterClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken GetCurrentRun;
- somMToken FlushRun;
- somMToken NewRun;
- } SOMDLINK FW_OTextRunWriterClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OTextRunWriter_Class_Source) && !defined(SOM_Module_sltxtrun_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OTextRunWriterClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OTextRunWriter Method Procedures
- */
- SOMEXTERN {
- typedef corbastring (* SOMLINK somTD_FW_OTextRunWriter_GetCurrentRun)(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length);
- typedef void (* SOMLINK somTD_FW_OTextRunWriter_FlushRun)(FW_OTextRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush);
- typedef boolean (* SOMLINK somTD_FW_OTextRunWriter_NewRun)(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_Locale* locale);
- }
-
- #endif /* FW_OTextRunWriter_API */
-
-
- /*
- * -- 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))
-
- /*
- * -- The C++ Wrapper Class for FW_OTextRunWriter
- */
- class FW_OTextRunWriter : public SOMObject
- {
- public:
-
- // FW_OTextRunWriter::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OTextRunWriter, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OTextRunWriter);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OTextRunWriter);
- #endif
- }
-
- // FW_OTextRunWriter::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: GetCurrentRun */
- corbastring GetCurrentRun(Environment *ev,
- FW_ByteCount* length)
- {
- #ifdef SOMCHKEXCEPT
- corbastring __somResult =
- SOM_ResolveD(this,FW_OTextRunWriter,FW_OTextRunWriter,GetCurrentRun)
- (this,ev,length);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunWriter,FW_OTextRunWriter,GetCurrentRun)
- (this,ev,length);
- #endif
- }
-
- /* method: FlushRun */
- void FlushRun(Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush)
- {
- SOM_ResolveD(this,FW_OTextRunWriter,FW_OTextRunWriter,FlushRun)
- (this,ev,buffer,bytesToFlush);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: NewRun */
- boolean NewRun(Environment *ev,
- FW_Locale* locale)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somResult =
- SOM_ResolveD(this,FW_OTextRunWriter,FW_OTextRunWriter,NewRun)
- (this,ev,locale);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OTextRunWriter,FW_OTextRunWriter,NewRun)
- (this,ev,locale);
- #endif
- }
-
- }; /* FW_OTextRunWriter */
-
-
-
- #endif /* SOM_FW_OTextRunWriter_xh */
-
- #ifndef SOM_FW_OMemoryRunReader_xh
- #define SOM_FW_OMemoryRunReader_xh
-
- class FW_OMemoryRunReader;
-
- #define FW_OMemoryRunReader_MajorVersion 1
- #define FW_OMemoryRunReader_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_OTextRunReader_xh
- #include <SLTxtRun.xh>
- #endif
-
- #ifndef FW_OMemoryRunReader_API
- #define FW_OMemoryRunReader_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OMemoryRunReaderCClassData FW_OMemoryRunReaderClassData
- #define FW_OMemoryRunReaderNewClass(major,minor) somNewVersionedClassReference(FW_OMemoryRunReader,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OMemoryRunReaderMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OMemoryRunReader class object, and the methods it introduces. */
- SOMEXTERN struct FW_OMemoryRunReaderClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken somInit;
- somMToken somUninit;
- somMToken GetCurrentRun;
- somMToken NextRun;
- somMToken PreviousRun;
- somMToken GetTotalLength;
- somMToken Initialize;
- } SOMDLINK FW_OMemoryRunReaderClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OMemoryRunReader_Class_Source) && !defined(SOM_Module_sltxtrun_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OMemoryRunReaderClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OMemoryRunReader Method Procedures
- */
- SOMEXTERN {
- typedef FW_OMemoryRunReader* (* SOMLINK somTD_FW_OMemoryRunReader_Initialize)(FW_OMemoryRunReader *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount length);
- }
-
- #endif /* FW_OMemoryRunReader_API */
-
-
- /*
- * -- 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))
-
- /*
- * -- The C++ Wrapper Class for FW_OMemoryRunReader
- */
- class FW_OMemoryRunReader : public FW_OTextRunReader
- {
- public:
-
- // FW_OMemoryRunReader::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OMemoryRunReader, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OMemoryRunReader);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OMemoryRunReader);
- #endif
- }
-
- // FW_OMemoryRunReader::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: Initialize */
- FW_OMemoryRunReader* Initialize(Environment *ev,
- corbastring buffer,
- FW_ByteCount length)
- {
- #ifdef SOMCHKEXCEPT
- FW_OMemoryRunReader* __somResult =
- SOM_ResolveD(this,FW_OMemoryRunReader,FW_OMemoryRunReader,Initialize)
- (this,ev,buffer,length);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OMemoryRunReader,FW_OMemoryRunReader,Initialize)
- (this,ev,buffer,length);
- #endif
- }
-
- }; /* FW_OMemoryRunReader */
-
-
-
- #endif /* SOM_FW_OMemoryRunReader_xh */
-
- #ifndef SOM_FW_OMemoryRunWriter_xh
- #define SOM_FW_OMemoryRunWriter_xh
-
- class FW_OMemoryRunWriter;
-
- #define FW_OMemoryRunWriter_MajorVersion 1
- #define FW_OMemoryRunWriter_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_OTextRunWriter_xh
- #include <SLTxtRun.xh>
- #endif
-
- #ifndef FW_OMemoryRunWriter_API
- #define FW_OMemoryRunWriter_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OMemoryRunWriterCClassData FW_OMemoryRunWriterClassData
- #define FW_OMemoryRunWriterNewClass(major,minor) somNewVersionedClassReference(FW_OMemoryRunWriter,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OMemoryRunWriterMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OMemoryRunWriter class object, and the methods it introduces. */
- SOMEXTERN struct FW_OMemoryRunWriterClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken somInit;
- somMToken somUninit;
- somMToken GetCurrentRun;
- somMToken FlushRun;
- somMToken NewRun;
- somMToken Initialize;
- } SOMDLINK FW_OMemoryRunWriterClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OMemoryRunWriter_Class_Source) && !defined(SOM_Module_sltxtrun_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OMemoryRunWriterClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OMemoryRunWriter Method Procedures
- */
- SOMEXTERN {
- typedef FW_OMemoryRunWriter* (* SOMLINK somTD_FW_OMemoryRunWriter_Initialize)(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount capacity);
- }
-
- #endif /* FW_OMemoryRunWriter_API */
-
-
- /*
- * -- 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))
-
- /*
- * -- The C++ Wrapper Class for FW_OMemoryRunWriter
- */
- class FW_OMemoryRunWriter : public FW_OTextRunWriter
- {
- public:
-
- // FW_OMemoryRunWriter::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OMemoryRunWriter, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OMemoryRunWriter);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OMemoryRunWriter);
- #endif
- }
-
- // FW_OMemoryRunWriter::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: Initialize */
- FW_OMemoryRunWriter* Initialize(Environment *ev,
- corbastring buffer,
- FW_ByteCount capacity)
- {
- #ifdef SOMCHKEXCEPT
- FW_OMemoryRunWriter* __somResult =
- SOM_ResolveD(this,FW_OMemoryRunWriter,FW_OMemoryRunWriter,Initialize)
- (this,ev,buffer,capacity);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OMemoryRunWriter,FW_OMemoryRunWriter,Initialize)
- (this,ev,buffer,capacity);
- #endif
- }
-
- }; /* FW_OMemoryRunWriter */
-
-
-
- #endif /* SOM_FW_OMemoryRunWriter_xh */
-