DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | List of all members
ERestrictedZone Class Reference

#include <ERestrictedZone.h>

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

Classes

class  DataClass
 

Public Member Functions

 ERestrictedZone ()
 
 ~ERestrictedZone ()
 
bool IsIssueRestrictions ()
 IsIssueRestrictions - indicates if there are any restrictions at all. More...
 
bool IsRestrictedCombinationZone (std::vector< unsigned long > *zoneList)
 IsRestrictedCombinationZone - Checks if provided zone combination is prohibited to sell Requires exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = ok. More...
 
bool IsRestrictedCombinationZoneAlsoAsSubset (std::vector< unsigned long > zoneList)
 IsRestrictedCombinationZoneAlsoAsSubset - Checks if provided zone combination is prohibited to sell Doesn't require exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = restricted. More...
 
bool IsZoneProhibitedToBeSoldAlone (unsigned long zone)
 
bool CheckZonesPermittedOnlyInContinuousSections (std::vector< unsigned long > zoneList)
 CheckZonesPermittedOnlyInContinuousSections. More...
 
bool IsTicketPassRequired (std::vector< unsigned long > *restrictZone)
 
bool IsTariffInterchangeRestricted (std::vector< unsigned long > *restrictZone, unsigned char tariff)
 
bool IsRequiredCombinationZone (std::vector< unsigned long > *requireZone)
 
bool CheckRequiredZones (std::vector< unsigned long > zoneList)
 
bool CheckRestrictedZonesForPresale (std::vector< unsigned long > zoneList, std::vector< unsigned long > &restrictedZonesForPresaleList)
 Checks whether any restricted zones for presale are present in the given zone list. More...
 
bool IsRestrictedZoneForPresale (unsigned long zone)
 
 ERestrictedZone ()
 
 ~ERestrictedZone ()
 
bool IsIssueRestrictions ()
 IsIssueRestrictions - indicates if there are any restrictions at all. More...
 
bool IsRestrictedCombinationZone (std::vector< unsigned long > *zoneList)
 IsRestrictedCombinationZone - Checks if provided zone combination is prohibited to sell Requires exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = ok. More...
 
bool IsRestrictedCombinationZoneAlsoAsSubset (std::vector< unsigned long > zoneList)
 IsRestrictedCombinationZoneAlsoAsSubset - Checks if provided zone combination is prohibited to sell Doesn't require exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = restricted. More...
 
bool IsZoneProhibitedToBeSoldAlone (unsigned long zone)
 
bool CheckZonesPermittedOnlyInContinuousSections (std::vector< unsigned long > zoneList)
 CheckZonesPermittedOnlyInContinuousSections. More...
 
bool IsTicketPassRequired (std::vector< unsigned long > *restrictZone)
 
bool IsTariffInterchangeRestricted (std::vector< unsigned long > *restrictZone, unsigned char tariff)
 
bool IsRequiredCombinationZone (std::vector< unsigned long > *requireZone)
 
bool CheckRequiredZones (std::vector< unsigned long > zoneList)
 
bool CheckRestrictedZonesForPresale (std::vector< unsigned long > zoneList, std::vector< unsigned long > &restrictedZonesForPresaleList)
 Checks whether any restricted zones for presale are present in the given zone list. More...
 
bool IsRestrictedZoneForPresale (unsigned long zone)
 

Constructor & Destructor Documentation

ERestrictedZone::ERestrictedZone ( )
ERestrictedZone::~ERestrictedZone ( )
ERestrictedZone::ERestrictedZone ( )
ERestrictedZone::~ERestrictedZone ( )

Member Function Documentation

bool ERestrictedZone::CheckRequiredZones ( std::vector< unsigned long >  zoneList)
bool ERestrictedZone::CheckRequiredZones ( std::vector< unsigned long >  zoneList)
bool ERestrictedZone::CheckRestrictedZonesForPresale ( std::vector< unsigned long >  zoneList,
std::vector< unsigned long > &  restrictedZonesForPresaleList 
)

Checks whether any restricted zones for presale are present in the given zone list.

This method compares the input list of zones with the internally defined restricted zones for presale. If any restricted zones are found in the input list, they are added to the output parameter restrictedZonesForPresaleList, and the function returns false to indicate the presence of restricted zones.

Parameters
zoneList- list of zones (unsigned long) to be checked.
[out]restrictedZonesForPresaleList- output list where matching restricted zones will be stored.
Returns
true if no restricted zones for presale are found in the input list, false otherwise.
Note
If the internal list of restricted zones is empty, the method always returns true.
bool ERestrictedZone::CheckRestrictedZonesForPresale ( std::vector< unsigned long >  zoneList,
std::vector< unsigned long > &  restrictedZonesForPresaleList 
)

Checks whether any restricted zones for presale are present in the given zone list.

This method compares the input list of zones with the internally defined restricted zones for presale. If any restricted zones are found in the input list, they are added to the output parameter restrictedZonesForPresaleList, and the function returns false to indicate the presence of restricted zones.

Parameters
zoneList- list of zones (unsigned long) to be checked.
[out]restrictedZonesForPresaleList- output list where matching restricted zones will be stored.
Returns
true if no restricted zones for presale are found in the input list, false otherwise.
Note
If the internal list of restricted zones is empty, the method always returns true.
bool ERestrictedZone::CheckZonesPermittedOnlyInContinuousSections ( std::vector< unsigned long >  zoneList)

CheckZonesPermittedOnlyInContinuousSections.

Note
One neighboring (continuous) zone is sufficient. It doesn't require whole zone list to be continuous.
Introduced for IDS ZSK and zone 99
bool ERestrictedZone::CheckZonesPermittedOnlyInContinuousSections ( std::vector< unsigned long >  zoneList)

CheckZonesPermittedOnlyInContinuousSections.

Note
One neighboring (continuous) zone is sufficient. It doesn't require whole zone list to be continuous.
Introduced for IDS ZSK and zone 99
bool ERestrictedZone::IsIssueRestrictions ( )

IsIssueRestrictions - indicates if there are any restrictions at all.

bool ERestrictedZone::IsIssueRestrictions ( )

IsIssueRestrictions - indicates if there are any restrictions at all.

bool ERestrictedZone::IsRequiredCombinationZone ( std::vector< unsigned long > *  requireZone)
bool ERestrictedZone::IsRequiredCombinationZone ( std::vector< unsigned long > *  requireZone)
bool ERestrictedZone::IsRestrictedCombinationZone ( std::vector< unsigned long > *  zoneList)

IsRestrictedCombinationZone - Checks if provided zone combination is prohibited to sell Requires exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = ok.

See also
IsRestrictedCombinationZoneAlsoAsSubset
bool ERestrictedZone::IsRestrictedCombinationZone ( std::vector< unsigned long > *  zoneList)

IsRestrictedCombinationZone - Checks if provided zone combination is prohibited to sell Requires exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = ok.

See also
IsRestrictedCombinationZoneAlsoAsSubset
bool ERestrictedZone::IsRestrictedCombinationZoneAlsoAsSubset ( std::vector< unsigned long >  zoneList)

IsRestrictedCombinationZoneAlsoAsSubset - Checks if provided zone combination is prohibited to sell Doesn't require exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = restricted.

See also
IsRestrictedCombinationZone
bool ERestrictedZone::IsRestrictedCombinationZoneAlsoAsSubset ( std::vector< unsigned long >  zoneList)

IsRestrictedCombinationZoneAlsoAsSubset - Checks if provided zone combination is prohibited to sell Doesn't require exact match Example: restricted zone combination [100, 99] zoneList [99,100] = restricted zoneList [99,100,101] = restricted.

See also
IsRestrictedCombinationZone
bool ERestrictedZone::IsRestrictedZoneForPresale ( unsigned long  zone)
bool ERestrictedZone::IsRestrictedZoneForPresale ( unsigned long  zone)
bool ERestrictedZone::IsTariffInterchangeRestricted ( std::vector< unsigned long > *  restrictZone,
unsigned char  tariff 
)
bool ERestrictedZone::IsTariffInterchangeRestricted ( std::vector< unsigned long > *  restrictZone,
unsigned char  tariff 
)
bool ERestrictedZone::IsTicketPassRequired ( std::vector< unsigned long > *  restrictZone)
bool ERestrictedZone::IsTicketPassRequired ( std::vector< unsigned long > *  restrictZone)
bool ERestrictedZone::IsZoneProhibitedToBeSoldAlone ( unsigned long  zone)
bool ERestrictedZone::IsZoneProhibitedToBeSoldAlone ( unsigned long  zone)

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