741{
743 DWORD start_time = 0;
755 std::string event_name;
757
758
760
763
769
771
773
777
780
783
786 return 1;
787 } else {
788
790 start_time = end_time - 3600;
795 event_name = "";
797
801 else if (
argv[
i][0] ==
'-' &&
argv[
i][1] ==
'l')
803 else if (
argv[
i][0] ==
'-') {
805 printf(
"Error: command line switch value after \"%s\" is missing\n",
argv[
i]);
807 }
else if (
argv[
i+1][0] ==
'-') {
808 printf(
"Error: command line switch value after \"%s\" starts with a dash: %s\n",
argv[
i],
argv[
i+1]);
811 event_name =
argv[++
i];
818 } else {
822 }
836 }
837 } else {
838 printf(
"Error: unknown command line switch: %s\n",
argv[
i]);
840 }
841 }
842 }
843
846 return 0;
847 }
848
852
855
859 return 1;
860 }
861 }
862
863
866 }
867
869
871 }
872
875 else
877
879
881
882 return 0;
883}
INT cm_get_experiment_database(HNDLE *hDB, HNDLE *hKeyClient)
INT cm_connect_experiment1(const char *host_name, const char *default_exp_name, const char *client_name, void(*func)(char *), INT odb_size, DWORD watchdog_timeout)
INT cm_disconnect_experiment(void)
INT cm_get_environment(char *host_name, int host_name_size, char *exp_name, int exp_name_size)
INT cm_set_msg_print(INT system_mask, INT user_mask, int(*func)(const char *))
int hs_get_history(HNDLE hDB, HNDLE hKey, int flags, int debug_flag, MidasHistoryInterface **mh)
BOOL debug
debug printouts
char host_name[HOST_NAME_LENGTH]
char expt_name[NAME_LENGTH]
static void display_all_hist(MidasHistoryInterface *mh, const char *event_name, time_t start_time, time_t end_time, time_t interval)
static void display_single_hist(MidasHistoryInterface *mh, const char *event_name, time_t start_time, time_t end_time, time_t interval, const char *var_name, int index)
static DWORD convert_time(char *t)
static INT query_params(MidasHistoryInterface *mh, std::string *event_name, DWORD *start_time, DWORD *end_time, DWORD *interval, char *var_name, DWORD *var_type, INT *var_n_data, DWORD *index)
static INT display_vars(MidasHistoryInterface *mh, time_t t)
static INT hs_fdump(const char *file_name, DWORD id, BOOL binary_time)
static void display_range_hist(MidasHistoryInterface *mh, const char *event_name, time_t start_time, time_t end_time, time_t interval, const char *var_name, int index1, int index2)