[#BloombergLP-bdlt-TimetableCache-getTimetable] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimetableCache.adoc[TimetableCache]::getTimetable :relfileprefix: ../../../ :mrdocs: Return a shared pointer to the named timetable, loading it if needed. == Synopsis Declared in `<bdlt_timetablecache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<Timetable const>] getTimetable(char const* timetableName); ---- == Description 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. == Return Value shared pointer to the timetable, or empty if loading fails == Parameters [cols="1,4"] |=== | Name| Description | *timetableName* | name of the timetable to retrieve |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#