MCPcopy Create free account
hub / github.com/COVESA/vsomeip / print

Method print

implementation/security/src/policy.cpp:412–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void policy::print() const {
413
414 for (auto its_credential : credentials_) {
415 auto its_uid_interval = its_credential.first;
416 if (its_uid_interval.lower() == (std::numeric_limits<uid_t>::max)()) {
417 VSOMEIP_INFO << "policy::print Security configuration: UID: any";
418 } else {
419 VSOMEIP_INFO << "policy::print Security configuration: UID: " << its_uid_interval.lower();
420 }
421 for (auto its_gid_interval : its_credential.second) {
422 if (its_gid_interval.lower() == (std::numeric_limits<gid_t>::max)()) {
423 VSOMEIP_INFO << " policy::print Security configuration: GID: any";
424 } else {
425 VSOMEIP_INFO << " policy::print Security configuration: GID: " << its_gid_interval.lower();
426 }
427 }
428 }
429
430 VSOMEIP_INFO << "policy::print Security configuration: REQUESTS POLICY SIZE: " << requests_.size();
431 for (auto its_request : requests_) {
432 VSOMEIP_INFO << "policy::print ALLOWED REQUESTS Services:" << its_request.first;
433 for (auto its_instance : its_request.second) {
434 VSOMEIP_INFO << "policy::print Instances: ";
435 VSOMEIP_INFO << "policy::print first: 0x" << hex4(its_instance.first.lower()) << " last: 0x"
436 << hex4(its_instance.first.upper());
437 VSOMEIP_INFO << "policy::print Methods: ";
438 for (auto its_method : its_instance.second) {
439 VSOMEIP_INFO << "policy::print first: 0x" << hex4(its_method.lower()) << " last: 0x" << hex4(its_method.upper());
440 }
441 }
442 }
443
444 VSOMEIP_INFO << "policy::print Security configuration: OFFER POLICY SIZE: " << offers_.size();
445 for (auto its_offer : offers_) {
446 VSOMEIP_INFO << "policy::print ALLOWED OFFERS Services:" << its_offer.first;
447 for (auto its_instance : its_offer.second) {
448 VSOMEIP_INFO << "policy::print Instances: ";
449 VSOMEIP_INFO << "policy::print first: 0x" << hex4(its_instance.lower()) << " last: 0x" << hex4(its_instance.upper());
450 }
451 }
452}
453
454} // namespace vsomeip_v3

Callers 1

print_policyMethod · 0.80

Calls 2

hex4Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected