MIDAS
|
Public Member Functions | |
SqlHistoryBase () | |
virtual | ~SqlHistoryBase () |
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 | |
HsSchema * | new_event (const char *event_name, time_t timestamp, int ntags, const TAG tags[]) |
int | read_schema (HsSchemaVector *sv, const char *event_name, const time_t timestamp) |
![]() | |
SchemaHistoryBase () | |
virtual | ~SchemaHistoryBase () |
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_clear_cache () |
clear internal cache, returns HS_SUCCESS | |
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 timestamp, int num_var, const char *const event_name[], const char *const var_name[], const int var_index[], time_t last_written[]) |
int | hs_read_buffer (time_t start_time, time_t end_time, int num_var, const char *const event_name[], const char *const var_name[], const int var_index[], MidasHistoryBufferInterface *buffer[], int hs_status[]) |
returns HS_SUCCESS | |
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 var_name[], const int var_index[], int num_entries[], time_t *time_buffer[], double *data_buffer[], int st[]) |
see hs_read(), 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 var_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 st[]) |
returns HS_SUCCESS | |
![]() | |
MidasHistoryInterface () | |
history type: MIDAS, ODBC, SQLITE, etc | |
virtual | ~MidasHistoryInterface () |
Public Attributes | |
SqlBase * | fSql |
![]() | |
char | name [NAME_LENGTH] |
char | type [NAME_LENGTH] |
history channel name | |
Protected Member Functions | |
virtual int | read_table_and_event_names (HsSchemaVector *sv)=0 |
virtual int | read_column_names (HsSchemaVector *sv, const char *table_name, const char *event_name)=0 |
virtual int | create_table (HsSchemaVector *sv, const char *event_name, time_t timestamp)=0 |
virtual int | update_column (const char *event_name, const char *table_name, const char *column_name, const char *column_type, const char *tag_name, const char *tag_type, const time_t timestamp, bool active, bool *have_transaction)=0 |
int | update_schema (HsSqlSchema *s, const time_t timestamp, const int ntags, const TAG tags[], bool write_enable) |
int | update_schema1 (HsSqlSchema *s, const time_t timestamp, const int ntags, const TAG tags[], bool write_enable, bool *have_transaction) |
Additional Inherited Members | |
![]() | |
int | fDebug |
std::string | fConnectString |
HsSchemaVector | fWriterCurrentSchema |
std::vector< HsSchema * > | fEvents |
HsSchemaVector | fSchema |
Definition at line 4617 of file history_schema.cxx.
|
inline |
Definition at line 4622 of file history_schema.cxx.
|
inlinevirtual |
Definition at line 4628 of file history_schema.cxx.
returns HS_SUCCESS
Implements SchemaHistoryBase.
Definition at line 4658 of file history_schema.cxx.
|
virtual |
disconnect from history, returns HS_SUCCESS
Implements SchemaHistoryBase.
Definition at line 4688 of file history_schema.cxx.
set debug level, returns previous debug level
Reimplemented from SchemaHistoryBase.
Definition at line 4636 of file history_schema.cxx.
|
virtual |
Implements SchemaHistoryBase.
Definition at line 4702 of file history_schema.cxx.
|
virtual |
Implements SchemaHistoryBase.
Definition at line 4793 of file history_schema.cxx.
|
protectedpure virtual |
|
protected |
Definition at line 4834 of file history_schema.cxx.
|
protected |
Definition at line 4858 of file history_schema.cxx.
SqlBase* SqlHistoryBase::fSql |
Definition at line 4620 of file history_schema.cxx.