MIDAS
|
Public Member Functions | |
SqlHistory (SqlBase *b) | |
~SqlHistory () | |
int | hs_set_debug (int debug) |
set debug level, returns previous debug level | |
int | hs_connect (const char *connect_string) |
returns HS_SUCCESS | |
int | hs_disconnect () |
disconnect from history, returns HS_SUCCESS | |
int | Reconnect () |
int | hs_clear_cache () |
clear internal cache, returns HS_SUCCESS | |
int | XReadIndex () |
int | hs_define_event (const char *event_name, time_t timestamp, int ntags, const TAG tags[]) |
see hs_define_event(), returns HS_SUCCESS or HS_FILE_ERROR | |
int | hs_write_event (const char *event_name, time_t timestamp, int buffer_size, const char *buffer) |
see hs_write_event(), returns HS_SUCCESS or HS_FILE_ERROR | |
int | hs_flush_buffers () |
flush buffered data to storage where it is visible to mhttpd | |
int | hs_get_events (time_t t, std::vector< std::string > *pevents) |
get list of events that exist(ed) at given time and later (value 0 means "return all events from beginning of time"), returns HS_SUCCESS | |
int | hs_get_tags (const char *event_name, time_t t, std::vector< TAG > *ptags) |
get list of history variables for given event (use event names returned by hs_get_events()) that exist(ed) at given time and later (value 0 means "all variables for this event that ever existed"), also see hs_get_tags(), returns HS_SUCCESS | |
int | hs_get_last_written (time_t start_time, int num_var, const char *const event_name[], const char *const tag_name[], const int var_index[], time_t last_written[]) |
int | hs_read_old_style (double start_time, double end_time, double interval, const char *event_name, const char *tag_name, int var_index, int *num_entries, time_t **time_buffer, double **data_buffer) |
int | hs_read (double start_time, double end_time, double interval, const char *event_name, const char *tag_name, int tag_index, int *num_entries, time_t **time_buffer, double **data_buffer) |
int | hs_read (time_t start_time, time_t end_time, time_t interval, int num_var, const char *const event_name[], const char *const tag_name[], const int tag_index[], int num_entries[], time_t *time_buffer[], double *data_buffer[], int st[]) |
see hs_read(), returns HS_SUCCESS | |
int | hs_read2 (time_t start_time, time_t end_time, time_t interval, int num_var, const char *const event_name[], const char *const tag_name[], const int var_index[], int num_entries[], time_t *time_buffer[], double *mean_buffer[], double *rms_buffer[], double *min_buffer[], double *max_buffer[], int read_status[]) |
int | hs_read_buffer (time_t start_time, time_t end_time, int num_var, const char *const event_name[], const char *const tag_name[], const int var_index[], MidasHistoryBufferInterface *buffer[], int status[]) |
returns HS_SUCCESS | |
int | hs_read_binned (time_t start_time, time_t end_time, int num_bins, int num_var, const char *const event_name[], const char *const tag_name[], const int var_index[], int num_entries[], int *count_bins[], double *mean_bins[], double *rms_bins[], double *min_bins[], double *max_bins[], time_t *bins_first_time[], double *bins_first_value[], time_t *bins_last_time[], double *bins_last_value[], time_t last_time[], double last_value[], int status[]) |
returns HS_SUCCESS | |
![]() | |
MidasHistoryInterface () | |
history type: MIDAS, ODBC, SQLITE, etc | |
virtual | ~MidasHistoryInterface () |
Public Attributes | |
SqlBase * | fSql |
int | fDebug |
std::string | fConnectString |
int | fConnectRetry |
int | fNextConnect |
std::vector< Event * > | fEvents |
std::vector< std::string > | fIndexEvents |
bool | fHaveIndex |
bool | fHaveXIndex |
![]() | |
char | name [NAME_LENGTH] |
char | type [NAME_LENGTH] |
history channel name | |
Definition at line 1169 of file history_odbc.cxx.
|
inline |
Definition at line 1182 of file history_odbc.cxx.
|
inline |
Definition at line 1192 of file history_odbc.cxx.
|
inlinevirtual |
clear internal cache, returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 1276 of file history_odbc.cxx.
returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 1208 of file history_odbc.cxx.
|
inlinevirtual |
see hs_define_event(), returns HS_SUCCESS or HS_FILE_ERROR
Implements MidasHistoryInterface.
Definition at line 1357 of file history_odbc.cxx.
|
inlinevirtual |
disconnect from history, returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 1246 of file history_odbc.cxx.
|
inlinevirtual |
flush buffered data to storage where it is visible to mhttpd
Implements MidasHistoryInterface.
Definition at line 1668 of file history_odbc.cxx.
|
inlinevirtual |
get list of events that exist(ed) at given time and later (value 0 means "return all events from beginning of time"), returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 1679 of file history_odbc.cxx.
|
inlinevirtual |
Implements MidasHistoryInterface.
Definition at line 1795 of file history_odbc.cxx.
|
inlinevirtual |
get list of history variables for given event (use event names returned by hs_get_events()) that exist(ed) at given time and later (value 0 means "all variables for this event that ever existed"), also see hs_get_tags(), returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 1719 of file history_odbc.cxx.
|
inline |
Definition at line 1875 of file history_odbc.cxx.
|
inlinevirtual |
see hs_read(), returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 2054 of file history_odbc.cxx.
|
inline |
Definition at line 2086 of file history_odbc.cxx.
|
inlinevirtual |
returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 2127 of file history_odbc.cxx.
|
inlinevirtual |
returns HS_SUCCESS
Implements MidasHistoryInterface.
Definition at line 2117 of file history_odbc.cxx.
|
inline |
Definition at line 1802 of file history_odbc.cxx.
set debug level, returns previous debug level
Implements MidasHistoryInterface.
Definition at line 1199 of file history_odbc.cxx.
|
inlinevirtual |
see hs_write_event(), returns HS_SUCCESS or HS_FILE_ERROR
Implements MidasHistoryInterface.
Definition at line 1585 of file history_odbc.cxx.
|
inline |
Definition at line 1258 of file history_odbc.cxx.
|
inline |
Definition at line 1296 of file history_odbc.cxx.
int SqlHistory::fConnectRetry |
Definition at line 1175 of file history_odbc.cxx.
std::string SqlHistory::fConnectString |
Definition at line 1174 of file history_odbc.cxx.
int SqlHistory::fDebug |
Definition at line 1173 of file history_odbc.cxx.
std::vector<Event*> SqlHistory::fEvents |
Definition at line 1177 of file history_odbc.cxx.
bool SqlHistory::fHaveIndex |
Definition at line 1179 of file history_odbc.cxx.
bool SqlHistory::fHaveXIndex |
Definition at line 1180 of file history_odbc.cxx.
std::vector<std::string> SqlHistory::fIndexEvents |
Definition at line 1178 of file history_odbc.cxx.
int SqlHistory::fNextConnect |
Definition at line 1176 of file history_odbc.cxx.
SqlBase* SqlHistory::fSql |
Definition at line 1172 of file history_odbc.cxx.