Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

textstream.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------- //
00002 //
00003 // MODULE  : textstream.h
00004 //
00005 // PURPOSE : CTextStream helper class - Definition
00006 //
00007 // CREATED : 03/27/01
00008 //
00009 // (c) 2001 LithTech, Inc.  All Rights Reserved
00010 //
00011 // ----------------------------------------------------------------------- //
00012 
00013 #ifndef __TEXT_STREAM_H__
00014 #define __TEXT_STREAM_H__
00015 
00016 
00017 #include "ltbasedefs.h"
00018 #include "ltengineobjects.h"
00019 
00020 
00022 #define TEXT_STREAM_BUFFER_SIZE     256
00023 
00024 
00026 class CTextStream
00027 {
00028   public:
00029     CTextStream();
00030     virtual ~CTextStream();
00031 
00032     LTRESULT    Open(char* szFilename);
00033     void        Close();
00034 
00035     LTRESULT    SeekToSection(char* szSection, bool& bFound);
00036     LTRESULT    ReadLine(char *pDest, const uint32 nSize);
00037     LTRESULT    ReadVal(uint32* pVal);
00038     LTRESULT    ReadStringList(char* szSection, char* pDest, 
00039                                uint32 nMaxStrings, uint32 nMaxChars);
00040 
00041 //  LTRESULT    ReadPath(char* pFromNode, char* pToNode, 
00042 //                       EAIMoveType* eMoveType, uint32 nMaxChars);
00043 
00044   protected:
00045     void        TruncateWhitespace(char* pBuffer);
00046 
00047     // Members
00048 
00049     char        m_szFilename[255];
00050     ILTStream*  m_pStream;
00051 
00052     uint32      m_iPos;
00053     char        m_Buffer[TEXT_STREAM_BUFFER_SIZE+1];
00054 };
00055 
00056 
00057 #endif  // __TEXT_STREAM_H__

Generated on Mon Mar 4 08:42:23 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002