home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * Generated using:
- * SOM Emitter emitxtm.dll: 2.33
- */
-
- #include "FWFound.hpp"
-
- #ifndef FWSTDDEF_H
- #include "FWStdDef.h"
- #endif
-
- #ifndef PRSTRREP_H
- #include "PRStrRep.h"
- #endif
-
- #ifndef SOM_Module_ODFStringSubsystem_defined
- #include "FWTxtTyp.xh"
- #endif
-
- #ifndef FWODEXCE_H
- #include "FWODExce.h"
- #endif
-
- #define FW_OTextRunReader_Class_Source
- #define FW_OTextRunWriter_Class_Source
- #define FW_OMemoryRunReader_Class_Source
- #define FW_OMemoryRunWriter_Class_Source
- #include "SLTxtRun.xih"
-
- #ifdef FW_BUILD_WIN
- #define corbastring string
- #endif
-
- //========================================================================================
- // FW_OTextRunReader
- //========================================================================================
-
- SOM_Scope corbastring SOMLINK FW_OTextRunReader__GetCurrentRun(FW_OTextRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_UNUSED(locale);
- FW_UNUSED(length);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return 0;
- }
-
- SOM_Scope boolean SOMLINK FW_OTextRunReader__NextRun(FW_OTextRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return false;
- }
-
- SOM_Scope boolean SOMLINK FW_OTextRunReader__PreviousRun(FW_OTextRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return false;
- }
-
- SOM_Scope FW_ByteCount SOMLINK FW_OTextRunReader__GetTotalLength(FW_OTextRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return 0;
- }
-
- //========================================================================================
- // FW_OTextRunWriter
- //========================================================================================
-
- SOM_Scope corbastring SOMLINK FW_OTextRunWriter__GetCurrentRun(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_UNUSED(length);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return 0;
- }
-
- SOM_Scope void SOMLINK FW_OTextRunWriter__FlushRun(FW_OTextRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_UNUSED(buffer);
- FW_UNUSED(bytesToFlush);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- }
-
- SOM_Scope boolean SOMLINK FW_OTextRunWriter__NewRun(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_Locale* locale)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- FW_UNUSED(locale);
- FW_PRIV_ASSERT(Subclass_Responsibility);
- return false;
- }
-
- //========================================================================================
- // FW_OMemoryRunReader
- //========================================================================================
-
- SOM_Scope FW_OMemoryRunReader* SOMLINK FW_OMemoryRunReader__Initialize(FW_OMemoryRunReader *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount length)
- {
- FW_OMemoryRunReaderData *somThis = FW_OMemoryRunReaderGetData(somSelf);
- return FW_OMemoryRunReader__InitWithLocale(somSelf, ev, buffer, length, NULL);
- }
-
- SOM_Scope FW_OMemoryRunReader* SOMLINK FW_OMemoryRunReader__InitWithLocale(FW_OMemoryRunReader *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount length,
- FW_Locale* locale)
- {
- FW_UNUSED(ev);
- FW_OMemoryRunReaderData *somThis = FW_OMemoryRunReaderGetData(somSelf);
- somThis->fBuffer = buffer;
- somThis->fLength = length;
- if (locale)
- somThis->fLocale = *locale;
- else
- {
- // somThis->fLocale.fScriptCode = 0;
- // somThis->fLocale.fLangCode = 0;
- somThis->fLocale = FW_PrivGetDefaultLocale();
- }
- return somSelf;
- }
-
- SOM_Scope void SOMLINK FW_OMemoryRunReader__somInit(FW_OMemoryRunReader *somSelf)
- {
- FW_OMemoryRunReaderData *somThis = FW_OMemoryRunReaderGetData(somSelf);
- // FW_OMemoryRunReader_parent_FW_OTextRunReader_somInit(somSelf);
- somThis->fBuffer = 0;
- somThis->fLength = 0;
- }
-
- SOM_Scope void SOMLINK FW_OMemoryRunReader__somUninit(FW_OMemoryRunReader *somSelf)
- {
- FW_UNUSED(somSelf);
- // FW_OMemoryRunReader_parent_FW_OTextRunReader_somUninit(somSelf);
- }
-
- SOM_Scope corbastring SOMLINK FW_OMemoryRunReader__GetCurrentRun(FW_OMemoryRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale)
- {
- FW_UNUSED(ev);
- FW_OMemoryRunReaderData *somThis = FW_OMemoryRunReaderGetData(somSelf);
- *length = somThis->fLength;
- *locale = somThis->fLocale;
- return somThis->fBuffer;
- }
-
- SOM_Scope boolean SOMLINK FW_OMemoryRunReader__NextRun(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(ev);
- FW_UNUSED(somSelf);
- return false;
- }
-
- SOM_Scope boolean SOMLINK FW_OMemoryRunReader__PreviousRun(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(ev);
- FW_UNUSED(somSelf);
- return false;
- }
-
- SOM_Scope FW_ByteCount SOMLINK FW_OMemoryRunReader__GetTotalLength(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- FW_UNUSED(ev);
- FW_OMemoryRunReaderData *somThis = FW_OMemoryRunReaderGetData(somSelf);
- return somThis->fLength;
- }
-
- //========================================================================================
- // FW_OMemoryRunWriter
- //========================================================================================
-
- SOM_Scope FW_OMemoryRunWriter* SOMLINK FW_OMemoryRunWriter__Initialize(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount capacity)
- {
- FW_UNUSED(ev);
- FW_OMemoryRunWriterData *somThis = FW_OMemoryRunWriterGetData(somSelf);
- somThis->fBuffer = buffer;
- somThis->fCapacity = capacity;
- return somSelf;
- }
-
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__somInit(FW_OMemoryRunWriter *somSelf)
- {
- FW_OMemoryRunWriterData *somThis = FW_OMemoryRunWriterGetData(somSelf);
- // FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somInit(somSelf);
- somThis->fBuffer = 0;
- somThis->fCapacity = 0;
- }
-
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__somUninit(FW_OMemoryRunWriter *somSelf)
- {
- FW_UNUSED(somSelf);
- // FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somUninit(somSelf);
- }
-
- SOM_Scope corbastring SOMLINK FW_OMemoryRunWriter__GetCurrentRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length)
- {
- FW_UNUSED(ev);
- FW_OMemoryRunWriterData *somThis = FW_OMemoryRunWriterGetData(somSelf);
- *length = somThis->fCapacity;
- return somThis->fBuffer;
- }
-
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__FlushRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush)
- {
- FW_UNUSED(ev);
- #ifndef FW_DEBUG
- FW_UNUSED(buffer);
- FW_UNUSED(bytesToFlush);
- #endif
- FW_OMemoryRunWriterData *somThis = FW_OMemoryRunWriterGetData(somSelf);
- FW_PRIV_ASSERT(somThis->fBuffer <= buffer);
- FW_PRIV_ASSERT(buffer+bytesToFlush <= somThis->fBuffer+somThis->fCapacity);
- // Nothing to do
- }
-
- SOM_Scope boolean SOMLINK FW_OMemoryRunWriter__NewRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_Locale* locale)
- {
- FW_UNUSED(ev);
- FW_UNUSED(somSelf);
- FW_UNUSED(locale);
- return false;
- }
-
- SOM_Scope void SOMLINK FW_OTextRunWriter__GetLocale(FW_OTextRunWriter* somSelf, Environment* ev,
- FW_Locale* locale)
- {
- FW_UNUSED(somSelf);
- FW_UNUSED(ev);
- // locale->fScriptCode = 0;
- // locale->fLangCode = 0;
- *locale = FW_PrivGetDefaultLocale();
- }
-