|
MIDAS
|


Public Member Functions | |
| MidasHistory () | |
| ~MidasHistory () | |
| int | hs_connect (const char *path) |
| returns HS_SUCCESS | |
| int | hs_disconnect () |
| disconnect from history, returns HS_SUCCESS | |
| int | hs_set_debug (int debug) |
| set debug level, returns previous debug level | |
| int | hs_clear_cache () |
| clear internal cache, returns HS_SUCCESS | |
| int | FindEventId (const char *event_name) |
| int | AllocateEventId (const char *event_name) |
| int | CreateOdbTags (int event_id, const char *event_name, int ntags, const TAG tags[]) |
| 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 data_size, const char *data) |
| 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 | GetEventsFromOdbEvents (std::vector< std::string > *events) |
| int | GetEventsFromOdbTags (std::vector< std::string > *events) |
| 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 | GetEventIdFromHS (time_t ltime, const char *evname, const char *tagname) |
| int | GetEventIdFromOdbTags (const char *evname, const char *tagname) |
| int | GetEventId (time_t t, const char *event_name, const char *tag_name, int *pevid) |
| int | GetTagsFromHS (const char *event_name, std::vector< TAG > *ptags) |
| int | GetTagsFromOdb (const char *event_name, std::vector< TAG > *ptags) |
| 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 (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 *data_buffer[], int read_status[]) |
| see hs_read(), returns HS_SUCCESS | |
| 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 read_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 read_status[]) |
| returns HS_SUCCESS | |
Public Member Functions inherited from MidasHistoryInterface | |
| MidasHistoryInterface () | |
| history type: MIDAS, ODBC, SQLITE, etc | |
| virtual | ~MidasHistoryInterface () |
Public Attributes | |
| HNDLE | fDB |
| int | fDebug |
| std::vector< std::string > | fEventsCache |
| std::map< std::string, std::vector< TAG > > | fTagsCache |
| std::map< std::string, int > | fEvidCache |
Public Attributes inherited from MidasHistoryInterface | |
| char | name [NAME_LENGTH] |
| char | type [NAME_LENGTH] |
| history channel name | |
dox dox
Definition at line 2217 of file history.cxx.