00001 // $Id: TDbiServices.hxx,v 1.1 2011/01/18 05:49:20 finch Exp $ 00002 00003 #ifndef DBISERVICES 00004 #define DBISERVICES 00005 00006 /** 00007 * 00008 * $Id: TDbiServices.hxx,v 1.1 2011/01/18 05:49:20 finch Exp $ 00009 * 00010 * \class TDbiServices 00011 * 00012 * 00013 * \brief 00014 * <b>Concept</b> Register of support services. 00015 * 00016 * \brief 00017 * <b>Purpose</b> To break dependency loops and to simplify communication of 00018 * some elements of the global environment, TDbiDatabaseManager registers 00019 * some support services and environment with TDbiServices, a class which 00020 * only contains static methods. Other TDbi classes can then obtain the 00021 * necessary information from TDbiServices and avoids having those classes ask 00022 * TDbiDatabaseManager directly. 00023 * 00024 * Contact: A.Finch@lancaster.ac.uk 00025 * 00026 * 00027 */ 00028 00029 00030 class TDbiServices 00031 { 00032 00033 friend class TDbiDatabaseManager; 00034 00035 public: 00036 00037 static bool AsciiDBConectionsTemporary() { return fAsciiDBConectionsTemporary; } 00038 static bool OrderContextQuery() { return fOrderContextQuery; } 00039 00040 private: 00041 00042 // Data members 00043 00044 static bool fAsciiDBConectionsTemporary; 00045 static bool fOrderContextQuery; 00046 00047 }; 00048 00049 00050 00051 #endif // DBISERVICES 00052 00053