#ifndef __IAlertsDaily_h_ #define __IAlertsDaily_h_ #include "DataFormat.h" class IAlertsDaily { private: static IAlertsDaily const *_implementation; public: virtual ~IAlertsDaily() { } // If there is a problem, this will return Record::EMPTY. This will // never return NULL. virtual Record::Ref find(char const *symbol, time_t time) const; // Find or set the implementation. The default implementation will return // EMPTY for every query. An implementation should be thread safe. static IAlertsDaily const *get() { return _implementation; } static void set(IAlertsDaily const *implementation) { _implementation = implementation; } }; #endif