Definition at line 448 of file history_schema.cxx.
◆ ~HsSchemaVector()
| HsSchemaVector::~HsSchemaVector |
( |
| ) |
|
|
inline |
◆ add()
| void HsSchemaVector::add |
( |
HsSchema * |
s | ) |
|
Definition at line 503 of file history_schema.cxx.
504{
505
506
507
508
509 bool added = false;
510
511 for (
auto it =
fData.begin(); it !=
fData.end(); it++) {
514
516 delete (*it);
517 (*it) = s;
518 return;
519 }
520 }
521
524 added = true;
525 break;
526 }
527 }
528
529 if (!added) {
531 }
532
533
534
535 time_t time_to = 0;
536
537 for (
auto it =
fData.begin(); it !=
fData.end(); it++) {
540 time_to = (*it)->fTimeFrom;
541
542
543 }
544 }
545}
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 547 of file history_schema.cxx.
548{
550
552 printf(
"find_event: All schema for event %s: (total %zu)\n", event_name,
fData.size());
553 int found = 0;
554 for (
size_t i=0;
i<
fData.size();
i++) {
556 printf(
"find_event: schema %zu name [%s]\n",
i, s->
fEventName.c_str());
557 if (event_name)
559 continue;
561 found++;
562 }
563 printf("find_event: Found %d schemas for event %s\n", found, event_name);
564
565
566
567 }
568
569 for (
size_t i=0;
i<
fData.size();
i++) {
571
572
573 if (event_name)
575 continue;
576
577
579 continue;
580
581 if (!ss)
582 ss = s;
583
584
586 ss = s;
587 }
588
589
590 for (
size_t i=0;
i<
fData.size();
i++) {
592
593
594 if (event_name)
596 continue;
597
598
600 continue;
601
602 if (!ss)
603 ss = s;
604
605
607 ss = s;
608 }
609
611 if (ss) {
612 printf(
"find_event: for time %s, returning:\n",
TimeToString(t).c_str());
614 } else {
615 printf(
"find_event: for time %s, nothing found:\n",
TimeToString(t).c_str());
616 }
617 }
618
619 return ss;
620}
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: