Definition at line 449 of file history_schema.cxx.
◆ ~HsSchemaVector()
| HsSchemaVector::~HsSchemaVector |
( |
| ) |
|
|
inline |
◆ add()
| void HsSchemaVector::add |
( |
HsSchema * |
s | ) |
|
Definition at line 504 of file history_schema.cxx.
505{
506
507
508
509
510 bool added = false;
511
512 for (
auto it =
fData.begin(); it !=
fData.end(); it++) {
515
517 delete (*it);
518 (*it) = s;
519 return;
520 }
521 }
522
525 added = true;
526 break;
527 }
528 }
529
530 if (!added) {
532 }
533
534
535
536 time_t time_to = 0;
537
538 for (
auto it =
fData.begin(); it !=
fData.end(); it++) {
541 time_to = (*it)->fTimeFrom;
542
543
544 }
545 }
546}
std::vector< HsSchema * > fData
static int event_name_cmp(const std::string &e1, const char *e2)
◆ clear()
| void HsSchemaVector::clear |
( |
| ) |
|
|
inline |
◆ find_event()
| HsSchema * HsSchemaVector::find_event |
( |
const char * |
event_name, |
|
|
const time_t |
timestamp, |
|
|
int |
debug = 0 |
|
) |
| |
Definition at line 548 of file history_schema.cxx.
549{
551
553 printf(
"find_event: All schema for event %s: (total %zu)\n", event_name,
fData.size());
554 int found = 0;
555 for (
size_t i=0;
i<
fData.size();
i++) {
557 printf(
"find_event: schema %zu name [%s]\n",
i, s->
fEventName.c_str());
558 if (event_name)
560 continue;
562 found++;
563 }
564 printf("find_event: Found %d schemas for event %s\n", found, event_name);
565
566
567
568 }
569
570 for (
size_t i=0;
i<
fData.size();
i++) {
572
573
574 if (event_name)
576 continue;
577
578
580 continue;
581
582 if (!ss)
583 ss = s;
584
585
587 ss = s;
588 }
589
590
591 for (
size_t i=0;
i<
fData.size();
i++) {
593
594
595 if (event_name)
597 continue;
598
599
601 continue;
602
603 if (!ss)
604 ss = s;
605
606
608 ss = s;
609 }
610
612 if (ss) {
613 printf(
"find_event: for time %s, returning:\n",
TimeToString(t).c_str());
615 } else {
616 printf(
"find_event: for time %s, nothing found:\n",
TimeToString(t).c_str());
617 }
618 }
619
620 return ss;
621}
virtual void print(bool print_tags=true) const
static std::string TimeToString(time_t t)
BOOL debug
debug printouts
◆ operator[]()
| HsSchema * HsSchemaVector::operator[] |
( |
int |
index | ) |
const |
|
inline |
◆ print()
| void HsSchemaVector::print |
( |
bool |
print_tags = true | ) |
const |
|
inline |
◆ size()
| size_t HsSchemaVector::size |
( |
| ) |
const |
|
inline |
◆ fData
| std::vector<HsSchema*> HsSchemaVector::fData |
|
protected |
The documentation for this class was generated from the following file: