comparison base/StorageAdviser.h @ 169:603991c63ff6

...
author Chris Cannam
date Mon, 25 Sep 2006 20:32:44 +0000
parents 04baa690f90d
children b23eea68357e
comparison
equal deleted inserted replaced
168:04baa690f90d 169:603991c63ff6
37 UseDisc = 2, 37 UseDisc = 2,
38 ConserveSpace = 4, 38 ConserveSpace = 4,
39 UseAsMuchAsYouLike = 8 39 UseAsMuchAsYouLike = 8
40 }; 40 };
41 41
42 // may throw InsufficientDiscSpace exception if it looks like 42 // May throw InsufficientDiscSpace exception if it looks like
43 // minimumSize won't fit on the disc 43 // minimumSize won't fit on the disc.
44 44
45 /**
46 * Recommend where to store some data, given certain storage and
47 * recall criteria. The minimum size is the approximate amount of
48 * data in bytes that will be stored if the recommendation is to
49 * ConserveSpace; the maximum size is approximately the amount
50 * that will be used if UseAsMuchAsYouLike is returned.
51 **!!! sizes should be longer types
52 */
45 static Recommendation recommend(Criteria criteria, 53 static Recommendation recommend(Criteria criteria,
46 int minimumSize, 54 int minimumSize,
47 int maximumSize); 55 int maximumSize);
48 }; 56 };
49 57