TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
IMapParser Class Referenceabstract

Abstract base class for all map parsers. More...

#include <IMapParser.h>

Inheritance diagram for IMapParser:
Inheritance graph
[legend]
Collaboration diagram for IMapParser:
Collaboration graph
[legend]

Public Member Functions

virtual void readFile (std::string m_fileName)=0
 
virtual void parse (Manager &manager, std::function< void(Entity &, glm::vec3)> addNodeFunc, std::function< void(Entity &)> addLinkFunc)=0
 
virtual void closeFile ()=0
 
void setThreader (Threader &mthreader)
 

Public Attributes

Threader_threader = nullptr
 

Detailed Description

Abstract base class for all map parsers.

Additionally, parsers can use a Threader to enhance performance with multithreaded parsing.

(see Supported File Formats)

Member Function Documentation

◆ parse()

virtual void IMapParser::parse ( Manager manager,
std::function< void(Entity &, glm::vec3)>  addNodeFunc,
std::function< void(Entity &)>  addLinkFunc 
)
pure virtual

Implemented in TextMapParser.


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