MidasHistoryInterface Class Reference

Inheritance diagram for MidasHistoryInterface:

MidasHistory SqlHistory

Detailed Description

Definition at line 32 of file history.h.

Public Member Functions

virtual ~MidasHistoryInterface ()
virtual int hs_connect (const char *connect_string)=0
virtual int hs_disconnect ()=0
virtual int hs_set_debug (int debug)=0
virtual int hs_clear_cache ()=0
virtual int hs_define_event (const char *event_name, int ntags, const TAG tags[])=0
virtual int hs_write_event (const char *event_name, time_t timestamp, int data_size, const char *data)=0
virtual int hs_get_events (std::vector< std::string > *pevents)=0
virtual int hs_get_tags (const char *event_name, std::vector< TAG > *ptags)=0
virtual int hs_read (time_t start_time, time_t end_time, time_t interval, int num_var, const char *event_name[], const char *tag_name[], const int var_index[], int num_entries[], time_t *time_buffer[], double *data_buffer[], int status[])=0


Constructor & Destructor Documentation

virtual MidasHistoryInterface::~MidasHistoryInterface (  )  [virtual]

Definition at line 35 of file history.h.

00035 { };


Member Function Documentation

virtual int MidasHistoryInterface::hs_clear_cache (  )  [pure virtual]

clear internal cache, returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

Referenced by show_hist_config_page().

virtual int MidasHistoryInterface::hs_connect ( const char *  connect_string  )  [pure virtual]

returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

Referenced by open_history(), and set_history_path().

virtual int MidasHistoryInterface::hs_define_event ( const char *  event_name,
int  ntags,
const TAG  tags[] 
) [pure virtual]

see hs_define_event(), returns HS_SUCCESS or HS_FILE_ERROR

Implemented in MidasHistory, and SqlHistory.

virtual int MidasHistoryInterface::hs_disconnect (  )  [pure virtual]

disconnect from history, returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

virtual int MidasHistoryInterface::hs_get_events ( std::vector< std::string > *  pevents  )  [pure virtual]

get list of all events, returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

Referenced by show_hist_config_page().

virtual int MidasHistoryInterface::hs_get_tags ( const char *  event_name,
std::vector< TAG > *  ptags 
) [pure virtual]

use event names returned by hs_get_events_odbc(), see hs_get_tags(), returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

Referenced by show_hist_config_page().

virtual int MidasHistoryInterface::hs_read ( time_t  start_time,
time_t  end_time,
time_t  interval,
int  num_var,
const char *  event_name[],
const char *  tag_name[],
const int  var_index[],
int  num_entries[],
time_t *  time_buffer[],
double *  data_buffer[],
int  status[] 
) [pure virtual]

see hs_read(), returns HS_SUCCESS

Implemented in MidasHistory, and SqlHistory.

Referenced by generate_hist_graph().

virtual int MidasHistoryInterface::hs_set_debug ( int  debug  )  [pure virtual]

set debug level, returns previous debug level

Implemented in MidasHistory, and SqlHistory.

Referenced by open_history().

virtual int MidasHistoryInterface::hs_write_event ( const char *  event_name,
time_t  timestamp,
int  data_size,
const char *  data 
) [pure virtual]

see hs_write_event(), returns HS_SUCCESS or HS_FILE_ERROR

Implemented in MidasHistory, and SqlHistory.


Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk