Quick Links: |
#include <bdlt_timetableloader.h>
Public Member Functions | |
virtual | ~TimetableLoader () |
virtual int | load (Timetable *result, const char *timetableName)=0 |
This class defines a protocol used to load timetables from a specific source. Each repository of timetable information can be supported by a distinct implementation of this protocol.
See Component bdlt_timetableloader
virtual bdlt::TimetableLoader::~TimetableLoader | ( | ) | [virtual] |
Destroy this object.
virtual int bdlt::TimetableLoader::load | ( | Timetable * | result, | |
const char * | timetableName | |||
) | [pure virtual] |
Load, into the specified result
, the timetable identified by the specified timetableName
. Return 0 on success, and a non-zero value otherwise. If the timetable corresponding to timetableName
is not found, 1 is returned with no effect on *result
. If a non-zero value other than 1 is returned (indicating a different error), *result
is valid, but its value is undefined.