#include <string>
#include <exception>
#include <sstream>
#include <iomanip>
#include <thread>
#include <algorithm>
#include "midas.h"
#include "msystem.h"
#include "odbxx.h"
Go to the source code of this file.
◆ get_number_image_history_threads()
int get_number_image_history_threads |
( |
| ) |
|
◆ history_dir()
std::string history_dir |
( |
| ) |
|
Definition at line 28 of file history_image.cxx.
28 {
29 static std::string dir;
30
31 if (dir.empty()) {
33 {"History dir", ""}
34 };
36
37 if (
o[
"History dir"] != std::string(
""))
38 dir =
o[
"History dir"];
39 else {
41 if (l.is_subkey("History dir")) {
42 dir = l["History dir"];
43 if (dir == "")
44 dir = l["Data dir"];
45 } else
46 dir = l["Data dir"];
47 }
48
49 if (dir.empty())
51
52 if (dir.back() != '/')
53 dir += "/";
54 }
55 return dir;
56}
void connect(const std::string &path, const std::string &name, bool write_defaults, bool delete_keys_not_in_defaults=false)
std::string cm_get_path()
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ hs_image_retrieve()
int hs_image_retrieve |
( |
std::string |
image_name, |
|
|
time_t |
start_time, |
|
|
time_t |
stop_time, |
|
|
std::vector< time_t > & |
vtime, |
|
|
std::vector< std::string > & |
vfilename |
|
) |
| |
Definition at line 332 of file history_image.cxx.
334{
335
337
343 std::stringstream s;
344 s <<
345 std::setfill(
'0') << std::setw(2) <<
ltm.tm_year - 100 <<
346 std::setfill(
'0') << std::setw(2) <<
ltm.tm_mon + 1 <<
347 std::setfill(
'0') << std::setw(2) <<
ltm.tm_mday <<
348 "_" << "??????.*";
350 } else {
357 mask =
"??????_??????.*";
358
360 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_year - 100 <<
361 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_mon + 1 <<
362 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_mday <<
363 "_" <<
364 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_hour <<
365 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_min <<
366 std::setfill(
'0') << std::setw(2) <<
ltStart.tm_sec;
369 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_year - 100 <<
370 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_mon + 1 <<
371 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_mday <<
372 "_" <<
373 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_hour <<
374 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_min <<
375 std::setfill(
'0') << std::setw(2) <<
ltStop.tm_sec;
377 for (
int i=0 ;
i<13 ;
i++) {
380 else
381 break;
382 }
383 }
384
386
388
391
392 std::sort(
vfn.begin(),
vfn.end());
393
397
398 for (
unsigned i=0 ;
i<
vfn.size() ;
i++) {
401 &
ti.tm_mday, &
ti.tm_hour, &
ti.tm_min, &
ti.tm_sec);
408
413 }
414
418 }
419 }
420
421
425 }
426
427
428
430}
time_t ss_mktime(struct tm *tms)
INT ss_file_find(const char *path, const char *pattern, char **plist)
std::string history_dir()
std::vector< std::string > STRING_LIST
◆ start_image_history()
void start_image_history |
( |
| ) |
|
◆ stop_image_history()
void stop_image_history |
( |
| ) |
|