Public Member Functions | List of all members
XMLReader Class Reference

The XMLReader class implements interface for input data reading from XML-file with a specific structure. More...

#include <XMLReader.h>

Inheritance diagram for XMLReader:
Inheritance graph
[legend]

Public Member Functions

XMLReaderClone () const override
 Method for cloning objects. Create copy of object in memmory and return pointer to copy. More...
 
bool GetAgents (std::vector< Agent * > &agents, const int &numThreshold) override
 Creates object for all agents. More...
 
bool GetEnvironmentOptions (EnvironmentOptions **envOpt) override
 Creates object with algorithms and environment parameters. More...
 
bool GetMap (Map **map) override
 Creates object with static environment data. More...
 
XMLReaderoperator= (const XMLReader &obj)
 Assignment operator. More...
 
bool ReadData () override
 Starts input data reading from XML-file. More...
 
 XMLReader ()
 XMLReader default constructor. More...
 
 XMLReader (const std::string &fileName)
 XMLReader constructor. More...
 
 XMLReader (const XMLReader &obj)
 XMLReader copy constructor. More...
 
 ~XMLReader () override
 XMLReader destructor. More...
 
- Public Member Functions inherited from Reader
virtual ~Reader ()
 Reader virtual destructor. More...
 

Detailed Description

The XMLReader class implements interface for input data reading from XML-file with a specific structure.

Input file should contain:

Definition at line 73 of file XMLReader.h.

Constructor & Destructor Documentation

XMLReader::XMLReader ( )

XMLReader default constructor.

Definition at line 25 of file XMLReader.cpp.

XMLReader::XMLReader ( const std::string &  fileName)

XMLReader constructor.

Parameters
fileNamePath to input XML-file

Definition at line 10 of file XMLReader.cpp.

XMLReader::XMLReader ( const XMLReader obj)

XMLReader copy constructor.

Parameters
objObject to copy.

Definition at line 40 of file XMLReader.cpp.

XMLReader::~XMLReader ( )
override

XMLReader destructor.

Definition at line 69 of file XMLReader.cpp.

Member Function Documentation

XMLReader * XMLReader::Clone ( ) const
overridevirtual

Method for cloning objects. Create copy of object in memmory and return pointer to copy.

Returns
Pointer to copy of object

Implements Reader.

Definition at line 242 of file XMLReader.cpp.

bool XMLReader::GetAgents ( std::vector< Agent * > &  agents,
const int &  numThreshold 
)
overridevirtual

Creates object for all agents.

Parameters
[out]agentsVector of all agents of system. Objects in vector contain full information about each agent.
[in]numThresholdMaximum number of agents in system.
Returns
Success of objects creating and transfer process.

Implements Reader.

Definition at line 135 of file XMLReader.cpp.

bool XMLReader::GetEnvironmentOptions ( EnvironmentOptions **  envOpt)
overridevirtual

Creates object with algorithms and environment parameters.

Parameters
[out]envOptAlgorithms and environment parameters.
Returns
Success of object creating and transfer process.

Implements Reader.

Definition at line 123 of file XMLReader.cpp.

bool XMLReader::GetMap ( Map **  map)
overridevirtual

Creates object with static environment data.

Parameters
[out]mapStatic environment data
Returns
Success of object creating and transfer process.

Implements Reader.

Definition at line 110 of file XMLReader.cpp.

XMLReader & XMLReader::operator= ( const XMLReader obj)

Assignment operator.

Parameters
objObject to assign.
Returns
Reference to assigned object.

Definition at line 185 of file XMLReader.cpp.

bool XMLReader::ReadData ( )
overridevirtual

Starts input data reading from XML-file.

Returns
Success of file reading.

Implements Reader.

Definition at line 159 of file XMLReader.cpp.


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


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14