X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FW1Configure.hh;h=9886193a235f57b4366247022d3d7adc1a2dfa37;hb=d01194ab9275bc97176071089edc2781bb4de51b;hp=0d02eb21e2f1354f41f1ac6bb2e1e8dcd5eac58c;hpb=56242039f27dc5d36117b8d513731c7a9009d4b1;p=lib1wire.git diff --git a/src/W1Configure.hh b/src/W1Configure.hh index 0d02eb2..9886193 100644 --- a/src/W1Configure.hh +++ b/src/W1Configure.hh @@ -8,7 +8,14 @@ #ifndef W1CONFIGURE_HH_ #define W1CONFIGURE_HH_ +enum EnumSummaryPeriod{PERIOD_YEARLY, PERIOD_MONTHLY, PERIOD_DAILY, PERIOD_HOURLY, PERIOD_MINUTELY, PERIOD_SECONDLY}; +const std::string SUMMARY_PERIOD_NAMES_ARRAY[] = {"yearly", "monthly", "daily", "minutely", "secondly"}; + +enum EnumSummaryCalculationType {SUM, DELTA, MIN, MAX, MEAN}; +const std::string CALCULATION_TYPE_NAMES_ARRAY[] = {"sum", "delta", "min", "max", "mean"}; + #define DEFAULT_STORAGE_BASE_DIR "/tmp" #define DATAFILE_SUFFIX ".txt" +#define CACHE_DIR_NAME "cache" #endif /* W1CONFIGURE_HH_ */