Return a shared pointer to the named timetable, loading it if needed.
Declared in <bdlt_timetablecache.h>
bsl::shared_ptr<Timetable const>
getTimetable(char const* timetableName);
Return a shared pointer providing non-modifiable access to the timetable having the specified timetableName in this timetable cache, loading the timetable into the cache using the loader that was supplied at construction if the timetable is not already present in the cache or if the timetable has expired (i.e., per a timeout optionally supplied at construction). If the loader fails, whether in loading a timetable for the first time or in reloading a timetable that has expired, return an empty shared pointer.
shared pointer to the timetable, or empty if loading fails
| Name | Description |
|---|---|
| timetableName | name of the timetable to retrieve |