diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-10 21:49:36 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:44 +0100 |
commit | 73c923aed131ccdedc4b6a1a1bd1862960a8aa45 (patch) | |
tree | 36c19d2d9bc82f660c8923d1fa543f23ef415afb /src | |
parent | 05b99652431e3747d0de8c3d4e7b601ad19ecadb (diff) | |
download | usdx-73c923aed131ccdedc4b6a1a1bd1862960a8aa45.tar.gz usdx-73c923aed131ccdedc4b6a1a1bd1862960a8aa45.tar.xz usdx-73c923aed131ccdedc4b6a1a1bd1862960a8aa45.zip |
little refactor of the header
moved get_version and set_version from private to protected
moved friend declaration for test to end of class definition
Diffstat (limited to '')
-rw-r--r-- | src/base/database.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/base/database.hpp b/src/base/database.hpp index c7bb00b8..08087c7f 100644 --- a/src/base/database.hpp +++ b/src/base/database.hpp @@ -94,14 +94,10 @@ namespace usdx static StatDatabase* instance; + protected: int get_version(void); void set_version(int version); -#ifdef STAT_DATABASE_TEST - // for testing private members - friend class StatDatabaseTest; -#endif - public: static StatDatabase* get_instance(); @@ -145,6 +141,11 @@ namespace usdx * - the date string with the terminating '\\0' */ char* format_date(char* time, size_t max, time_t timestamp); + +#ifdef STAT_DATABASE_TEST + // for testing private members + friend class StatDatabaseTest; +#endif }; /* Element for linked list with pointer to next */ |