vendor_global.h 473 B

123456789101112
  1. #ifndef __VENDOR_GLOBAL_H__
  2. #define __VENDOR_GLOBAL_H__
  3. #define VENDOR_MAX_PATH_SIZE 256
  4. #define VENDOR_RUN_PATH_ENV "DAS_CONFIG_DIR"
  5. #define VENDOR_CONFIG_PATH std::string(getenv(VENDOR_RUN_PATH_ENV)) + "/config
  6. #define VENDOR_LOG_PATH std::string(getenv(VENDOR_RUN_PATH_ENV)) + "/log
  7. #define VENDOR_BIN_PATH std::string(getenv(VENDOR_RUN_PATH_ENV)) + "/bin
  8. #define VENDOR_DB_PATH std::string(getenv(VENDOR_RUN_PATH_ENV)) + "/db
  9. #endif // __VENDOR_GLOBAL_H__