globals.h

Go to the documentation of this file.
00001 #ifndef __globals_h
00002 #define __globals_h
00003 
00004 #ifdef __cplusplus
00005 #include <assert.h>
00006 #include <cstdlib>
00007 #include <iostream>
00008 #include <string>
00009 #include <sstream>
00010 #endif
00011 
00016 
00017 #ifdef __DEBUG
00018 #define DEBUG_ONLY(x) x
00019 #else
00020 #define DEBUG_ONLY(x)
00021 #endif
00022 
00023 
00025 #ifdef __VERBOSE
00026 #define VERBOSE_ONLY(x) x;
00027 #else 
00028 #define VERBOSE_ONLY(x);
00029 #endif
00030 
00032 #ifdef __LOGGING
00033 #define LOGGING_ONLY(x) x;
00034 #else 
00035 #define LOGGING_ONLY(x);
00036 #endif
00037 
00038 enum storage_manager_type {MAIN_MEMORY_SM, ON_DISK_SM, HYBRID_SM};
00039 
00041 #define CLASSIFICATION_GENERAL_TABLE "hazy_cls_view_catalog"
00042 #define FEATURE_IDS_TABLE_BASE_NAME "featureids"
00043 #define EXTRACTED_FEATURES "extractedfeatures"
00044 #define HAZY_ENTITY_TABLE_BASE_NAME "hazy_entity_table"
00045 #define TRAINING_TABLE "training"
00046 
00048 #define EXTRACTED_FEATURES_FEATURE_VAL_COL "feature_value"
00049 
00051 #define GET_STATS_FEATURES_FUNCTION_NAME "getstatsfeatures"
00052 #define NORMALIZE_GET_M_FACTOR_FUNCTION_NAME "normalizegetm_factor"
00053 #define CREATE_ENTITY_FEATURES_FUNCTION_NAME "create_entity_features"
00054 #define PREPARE_TRAIN_FUNCTION_NAME "prepare_train"
00055 
00057 #define VIEW_ID "view_id"
00058 #define VIEW_NAME "view_name"
00059 #define ENTITY_TABLE_NAME "entity_table_name"
00060 #define LABELS_TABLE_NAME "labels_table"
00061 #define EXAMPLE_TABLE_NAME "examples_table"
00062 #define FEATURE_FUNCTION "feature_function"
00063 
00064 
00065 //TODO: convention for internal table
00066 
00067 
00068 
00069 //POSTGRES_CONSTANTS
00070 //TABLES
00071 #define PG_CLASS_TABLE "pg_class"
00072 
00073 //PG_CLASS_TABLE COL
00074 #define PG_CLASS_RELNAME_COL "relname"
00075 
00076 #define MAX_PATH_LENGTH 1024
00077 
00078 //DIR NAMES
00079 #define INSTALLATION_DIR "installation"
00080 #define TRIGGERS_DIR "triggers"
00081 #define FUNCTIONS_DIR "functions"
00082 #define UPDATE_TRIG_FILE_NAME "update_trig"
00083 #define INPLACE_UPDATE_FNC_FILE_NAME "inplace"
00084 #define SOURCE_CODE_EXT "c"
00085 #define OBJECT_FILE_EXT "o"
00086 #define SHARED_OBJECT_FILE_EXT "so"
00087 #define INCLUDE_DIR "include"
00088 #define COMM_SERVER_DIR "communication_server"
00089 #define SVM_CODE_DIR "svm_code"
00090 #define S_LIBS_DIR "s_libs"
00091 
00092 //executable create view name
00093 #define CREATE_VIEW_EXEC "exec/hazy_create_view"
00094 
00095 //conf file
00096 #define HAZY_CONF_FILE "hazy.conf"
00097 #define POSTGRES_PATH_LINE_IN_CONF_FILE "POSTGRES_PATH"
00098 #define DATABASE_LINE_IN_CONF_FILE "Database"
00099 #define STORAGE_MANAGER_LINE_IN_CONF_FILE "Storage_Manager"
00100 #define USE_EPS_MAP_LINE_IN_CONF_FILE "Use_Eps_Map"
00101 #define HAZY_STRATEGY_LINE_IN_CONF_FILE "Hazy_Strategy"
00102 #define RESERVOIR_SIZE_LINE_IN_CONF_FILE "Reservoir_Size"
00103 #define BUFFER_SIZE_LINE_IN_CONF_FILE "Buffer_Size"
00104 
00105 //storage manager strings
00106 #define MAIN_MEMORY_SM_IN_CONF_FILE "Main_Memory_SM"
00107 #define ON_DISK_SM_IN_CONF_FILE "Ondisk_SM"
00108 #define HYBRID_SM_IN_CONF_FILE "Hybrid_SM"
00109 
00110 //hazy strategy strings
00111 #define LAZY_NAIVE_IN_CONF_FILE "LAZY_NAIVE"
00112 #define EAGER_NAIVE_IN_CONF_FILE "EAGER_NAIVE"
00113 #define LAZY_HAZY_IN_CONF_FILE "LAZY_HAZY"
00114 #define EAGER_HAZY_IN_CONF_FILE "EAGER_HAZY"
00115 
00116 
00117 //postgres dir names
00118 #define POSTGRES_INCLUDE "include"
00119 #define POSTGRES_SERVER "server"
00120 #define POSTGRES_LIB "lib"
00121 
00122 //trigger functions
00123 #define UPDATE_TRIG_FNC "update_trig"
00124 #define UPDATE_TRIG_BIN_FNC "update_trig_bin"
00125 #define UPDATE_TRIG_FNC_ON_TABLE "training_trig"
00126 
00127 //compilers
00128 #define GCC "gcc"
00129 #define GPP "g++"
00130 
00131 #endif

Generated on Wed Dec 15 10:46:15 2010 for Hazy_System by  doxygen 1.4.7