| Revision 2415,
904 bytes
checked in by chris, 3 years ago
(diff) |
|
Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as
well (e.g. wxWidgets) and it causes conflicts which are difficult to
resolve.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: StoreStructure.h |
|---|
| 5 | // Purpose: Functions for placing files in the store |
|---|
| 6 | // Created: 11/12/03 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef STORESTRUCTURE__H |
|---|
| 11 | #define STORESTRUCTURE__H |
|---|
| 12 | |
|---|
| 13 | #include <string> |
|---|
| 14 | |
|---|
| 15 | #ifdef BOX_RELEASE_BUILD |
|---|
| 16 | #define STORE_ID_SEGMENT_LENGTH 8 |
|---|
| 17 | #define STORE_ID_SEGMENT_MASK 0xff |
|---|
| 18 | #else |
|---|
| 19 | // Debug we'll use lots and lots of directories to stress things |
|---|
| 20 | #define STORE_ID_SEGMENT_LENGTH 2 |
|---|
| 21 | #define STORE_ID_SEGMENT_MASK 0x03 |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | namespace StoreStructure |
|---|
| 26 | { |
|---|
| 27 | void MakeObjectFilename(int64_t ObjectID, const std::string &rStoreRoot, int DiscSet, std::string &rFilenameOut, bool EnsureDirectoryExists); |
|---|
| 28 | void MakeWriteLockFilename(const std::string &rStoreRoot, int DiscSet, std::string &rFilenameOut); |
|---|
| 29 | }; |
|---|
| 30 | |
|---|
| 31 | #endif // STORESTRUCTURE__H |
|---|
| 32 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.