33svalue = STRING : [20] /Runinfo/Run number\n\
34sarray = STRING[2] : \n\
47 printf(
"already exists, skipping!\n");
78 printf(
"db_get_record status %d, size %d/%d\n",
status, (
int)
sizeof(s), size);
85 printf(
"test1c - db_get_record1!\n");
95 printf(
"db_get_record1 status %d, size %d/%d\n",
status, (
int)
sizeof(s), size);
102 printf(
"test1d - db_get_record2!\n");
110 int size =
sizeof(s);
112 printf(
"db_get_record2 status %d, size %d/%d\n",
status, (
int)
sizeof(s), size);
131 printf(
"test2_struct: wvalue %d, dwvalue %d, dvalue %f, cvalue %d, dwvalue2 %d, fvalue %f, dvalue2 %f, cvalue2 %d, svalue [%s], dvalue3 %f\n", s->
wvalue, s->
dwvalue, s->
dvalue, s->
cvalue, s->
dwvalue2, s->
fvalue, s->
dvalue2, s->
cvalue2, s->
svalue, s->
dvalue3);
136dwvalue = DWORD : 2\n\
137dvalue = DOUBLE : 3.3\n\
139dwvalue2 = DWORD : 5\n\
140fvalue = FLOAT : 6.6\n\
141dvalue2 = DOUBLE : 7.7\n\
143svalue = STRING : [10] 99999\n\
144dvalue3 = DOUBLE : 10.01\n\
155 printf(
"already exists, skipping!\n");
174 int size =
sizeof(s);
176 printf(
"db_get_record status %d, size %d/%d\n",
status, (
int)
sizeof(s), size);
183 printf(
"test2d - db_get_record2!\n");
191 int size =
sizeof(s);
193 printf(
"db_get_record2 status %d, size %d/%d\n",
status, (
int)
sizeof(s), size);
void print_test2(const test2_struct *s)
void test1c(HNDLE hDB, HNDLE hKey)
void print_test1(const test1_struct *s)
void test1(HNDLE hDB, HNDLE hKey)
void test2(HNDLE hDB, HNDLE hKey)
void test2b(HNDLE hDB, HNDLE hKey)
void test1d(HNDLE hDB, HNDLE hKey)
void test2d(HNDLE hDB, HNDLE hKey)
void test1b(HNDLE hDB, HNDLE hKey)
void test1a(HNDLE hDB, HNDLE hKey)
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 db_get_record1(HNDLE hDB, HNDLE hKey, void *data, INT *buf_size, INT align, const char *rec_str)
INT db_check_record(HNDLE hDB, HNDLE hKey, const char *keyname, const char *rec_str, BOOL correct)
INT db_get_record(HNDLE hDB, HNDLE hKey, void *data, INT *buf_size, INT align)
INT db_find_key(HNDLE hDB, HNDLE hKey, const char *key_name, HNDLE *subhKey)
INT db_create_record(HNDLE hDB, HNDLE hKey, const char *orig_key_name, const char *init_str)
INT db_get_record2(HNDLE hDB, HNDLE hKey, void *data, INT *xbuf_size, INT align, const char *rec_str, BOOL correct)
char host_name[HOST_NAME_LENGTH]
char expt_name[NAME_LENGTH]
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)