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

cScpIterator Class Reference

#include <scp_parser.h>

List of all members.

Public Methods

 cScpIterator (cScpSection *section)
 Creates a new iterator for a given section.

 cScpIterator (cScpSection &section)
 Creates a new iterator for a given section.

 ~cScpIterator ()
void parseLine (std::string &strParam1, std::string &strParam2)
 Parses a splitted script line in two strings.

void parseLine (char *szParam1, char *szParam2)
 Parses a splitted script line in two char*s.

cScpEntrygetEntry ()
 Gets a cScpEntry object from the section.

void rewind ()
 Rewinds the iterator to its first position.


Private Attributes

int m_nPosition
cScpSectionm_section


Constructor & Destructor Documentation

cScpIterator::cScpIterator cScpSection   section [explicit]
 

Creates a new iterator for a given section.

Author:
Xanathar
Parameters:
section  the section to be created

cScpIterator::cScpIterator cScpSection   section [explicit]
 

Creates a new iterator for a given section.

Author:
Xanathar
Parameters:
section  the section to be created

cScpIterator::~cScpIterator  
 


Member Function Documentation

cScpEntry * cScpIterator::getEntry  
 

Gets a cScpEntry object from the section.

Author:
Xanathar
Returns:
pointer to section entry

void cScpIterator::parseLine char *    szParam1,
char *    szParam2
 

Parses a splitted script line in two char*s.

Author:
Xanathar
Parameters:
szParam1  the 1st string to be filled
szParam2  the 2nd string to be filled

void cScpIterator::parseLine std::string &    strParam1,
std::string &    strParam2
 

Parses a splitted script line in two strings.

Author:
Xanathar
Parameters:
strParam1  the 1st string to be filled
strParam2  the 2nd string to be filled

void cScpIterator::rewind  
 

Rewinds the iterator to its first position.

Author:
Xanathar


Member Data Documentation

int cScpIterator::m_nPosition [private]
 

class cScpSection* cScpIterator::m_section [private]
 


The documentation for this class was generated from the following files: SourceForge.net Logo