main/connectivity/source/drivers/dbase/DTable.cxx
//------------------------------------------------------------------
// erzeugt grundsaetzlich dBase III Datei Format
erzeugt grundsaetzlich dBase III Datei Format
erzeugt grundsaetzlich dBase III Datei Format
sal_Bool ODbaseTable::CreateMemoFile(const INetURLObject& aFile)
{
    RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseTable::CreateMemoFile" );
	m_pMemoStream = createStream_simpleError( aFile.GetMainURL(INetURLObject::NO_DECODE),STREAM_READWRITE | STREAM_SHARE_DENYWRITE);
	if (!m_pMemoStream)
		return sal_False;
	char aBuffer[512];              
	memset(aBuffer,0,sizeof(aBuffer));
	m_pMemoStream->SetFiller('\0');
	m_pMemoStream->SetStreamSize(512);
	m_pMemoStream->Seek(0L);
	(*m_pMemoStream) << long(1);                  
	m_pMemoStream->Flush();
	delete m_pMemoStream;
	m_pMemoStream = NULL;
	return sal_True;
}
sal_Bool ODbaseTable :: CreateMemoFile ( const INetURLObject & aFile ) { RTL_LOGFILE_CONTEXT_AUTHOR ( aLogger , " " , " " , " " ) ; m_pMemoStream = createStream_simpleError ( aFile . GetMainURL ( INetURLObject :: NO_DECODE ) , STREAM_READWRITE | STREAM_SHARE_DENYWRITE ) ; if ( ! m_pMemoStream ) return sal_False ; char aBuffer [ 512 ] ; memset ( aBuffer , 0 , sizeof ( aBuffer ) ) ; m_pMemoStream -> SetFiller ( ' \0 ' ) ; m_pMemoStream -> SetStreamSize ( 512 ) ; m_pMemoStream -> Seek ( 0L ) ; ( * m_pMemoStream ) << long ( 1 ) ; m_pMemoStream -> Flush ( ) ; delete m_pMemoStream ; m_pMemoStream = NULL ; return sal_True ; }
erzeugt grundsaetzlich dBase III Datei Format
erzeugt grundsaetzlich dBase III Datei Format
// Makro zum Filehandling fuers Erzeugen von Tabellen // write buffer // Zeiger auf ersten freien Block