ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <textsplit.h>

Collaboration diagram for Grim::TextSplitter:

List of all members.

Public Member Functions

 TextSplitter (const Common::String &fname, Common::SeekableReadStream *data)
 ~TextSplitter ()
char * nextLine ()
char * getCurrentLine ()
const char * getCurrentLine () const
bool isEof () const
int getLineNumber ()
void setLineNumber (int line)
bool checkString (const char *needle)
void expectString (const char *expected)
void scanString (const char *fmt, int field_count,...)
void scanStringAtOffset (int offset, const char *fmt, int field_count,...)
void scanStringNoNewLine (const char *fmt, int field_count,...)
void scanStringAtOffsetNoNewLine (int offset, const char *fmt, int field_count,...)

Private Member Functions

void processLine ()

Private Attributes

Common::String _fname
char * _stringData
char * _currLine
int _numLines
int _lineIndex
char ** _lines

Detailed Description

Definition at line 36 of file textsplit.h.


Constructor & Destructor Documentation

Grim::TextSplitter::TextSplitter ( const Common::String fname,
Common::SeekableReadStream data 
)

Definition at line 247 of file textsplit.cpp.

Grim::TextSplitter::~TextSplitter (  ) 

Definition at line 279 of file textsplit.cpp.


Member Function Documentation

bool Grim::TextSplitter::checkString ( const char *  needle  ) 

Definition at line 284 of file textsplit.cpp.

void Grim::TextSplitter::expectString ( const char *  expected  ) 

Definition at line 298 of file textsplit.cpp.

char* Grim::TextSplitter::getCurrentLine (  )  [inline]

Definition at line 46 of file textsplit.h.

const char* Grim::TextSplitter::getCurrentLine (  )  const [inline]

Definition at line 47 of file textsplit.h.

int Grim::TextSplitter::getLineNumber (  )  [inline]

Definition at line 49 of file textsplit.h.

bool Grim::TextSplitter::isEof (  )  const [inline]

Definition at line 48 of file textsplit.h.

char* Grim::TextSplitter::nextLine (  )  [inline]

Definition at line 41 of file textsplit.h.

void Grim::TextSplitter::processLine (  )  [private]

Definition at line 358 of file textsplit.cpp.

void Grim::TextSplitter::scanString ( const char *  fmt,
int  field_count,
  ... 
)

Definition at line 306 of file textsplit.cpp.

void Grim::TextSplitter::scanStringAtOffset ( int  offset,
const char *  fmt,
int  field_count,
  ... 
)

Definition at line 320 of file textsplit.cpp.

void Grim::TextSplitter::scanStringAtOffsetNoNewLine ( int  offset,
const char *  fmt,
int  field_count,
  ... 
)

Definition at line 346 of file textsplit.cpp.

void Grim::TextSplitter::scanStringNoNewLine ( const char *  fmt,
int  field_count,
  ... 
)

Definition at line 334 of file textsplit.cpp.

void Grim::TextSplitter::setLineNumber ( int  line  )  [inline]

Definition at line 50 of file textsplit.h.


Member Data Documentation

Definition at line 78 of file textsplit.h.

Definition at line 76 of file textsplit.h.

Definition at line 79 of file textsplit.h.

char** Grim::TextSplitter::_lines [private]

Definition at line 80 of file textsplit.h.

Definition at line 79 of file textsplit.h.

Definition at line 77 of file textsplit.h.


The documentation for this class was generated from the following files:


Generated on Sat Mar 16 2019 05:06:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge