Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

PathStructure Class Reference

#include <pathstructure.h>

Inheritance diagram for PathStructure:

Structure Persistence List of all members.

Public Member Functions

 PathStructure ()
 PathStructure (const OPENCITY_STRUCTURE_CODE &enumStructCode)
void SaveTo (std::fstream &rfs)
void LoadFrom (std::fstream &rfs)
void AddNeighbour (const PathStructure &rcNeighbour, const OPENCITY_DIRECTION &enumDir)
void RemoveNeighbour (const PathStructure &rcNeighbour, const OPENCITY_DIRECTION &enumDir)
const OC_UBYTE & GetTraffic () const
void SetTraffic (const OC_UBYTE &rubTraffic)
const uint & GetLength () const
void SetLength (const uint &rcuiValue)

Private Attributes

OC_UBYTE ubNumberNeighbour
OC_UBYTE ubTraffic
uint uiLength

Detailed Description

This is a specialization of Structure. It regroups all structures like Road, Rails, WaterPipe, GasPipe, HighWay, ElecLine etc...

Definition at line 28 of file pathstructure.h.

Constructor & Destructor Documentation

PathStructure::PathStructure  ) 

Should not be used

Definition at line 27 of file pathstructure.cpp.

Member Function Documentation

void PathStructure::LoadFrom std::fstream &  rfs  )  [virtual]

Overload the Structure::LoadFrom

rfs A reference to a file stream which is ready for reading
See also:

Reimplemented from Structure.

Definition at line 77 of file pathstructure.cpp.

References Structure::LoadFrom().

void PathStructure::SaveTo std::fstream &  rfs  )  [virtual]

Overload the Structure::SaveTo

rfs A reference to a file stream which is ready for writing
See also:

Reimplemented from Structure.

Definition at line 66 of file pathstructure.cpp.

References Structure::SaveTo().

The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2