// $Id: IDbiServices.hxx,v 1.1 2011/01/18 05:49:20 finch Exp $ #ifndef DBISERVICES #define DBISERVICES /** * * $Id: IDbiServices.hxx,v 1.1 2011/01/18 05:49:20 finch Exp $ * * \class COMET::IDbiServices * * * \brief * Concept Register of support services. * * \brief * Purpose To break dependency loops and to simplify communication of * some elements of the global environment, IDbiDatabaseManager registers * some support services and environment with IDbiServices, a class COMET::which * only contains static methods. Other IDbi classes can then obtain the * necessary information from IDbiServices and avoids having those classes ask * IDbiDatabaseManager directly. * * Contact: A.Finch@lancaster.ac.uk * * */ namespace COMET { class IDbiServices { friend class IDbiDatabaseManager; public: static bool AsciiDBConectionsTemporary() { return fAsciiDBConectionsTemporary; } static bool OrderContextQuery() { return fOrderContextQuery; } private: // Data members static bool fAsciiDBConectionsTemporary; static bool fOrderContextQuery; }; }; #endif // DBISERVICES