#pragma once #include "common.h" class AFX_CLASS_EXPORT T2RoutingTableElem { public: T2RoutingTableElem(); ~T2RoutingTableElem(); BOOL IsStopFloor() const; void SetTable(unsigned int inNextFloorID, int inFinalHPos); BOOL IsSetTable(unsigned int inNextFloorID, unsigned int inScore, int inTime, int inFinalHPos); BOOL HasRoute() const; BOOL HasNextRoute(unsigned int inFloorID) const; unsigned int GetNextFloorID() const; unsigned int GetScore() const; int GetTime() const; int GetFinalHPos() const; protected: unsigned int mNextFloorID; unsigned int mScore; int mTime; int mFinalHPos; }; inline unsigned int T2RoutingTableElem::GetNextFloorID() const { return mNextFloorID; } inline unsigned int T2RoutingTableElem::GetScore() const { return mScore; } inline int T2RoutingTableElem::GetTime() const { return mTime; } inline int T2RoutingTableElem::GetFinalHPos() const { return mFinalHPos; } inline BOOL T2RoutingTableElem::HasRoute() const { return (mNextFloorID != 0); }