/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/eformat/eformat-00-00-04/src/NoSuchChildIssue.cxx

Go to the documentation of this file.
00001 //Dear emacs, this is -*- c++ -*-
00002 
00013 #include "eformat/NoSuchChildIssue.h"
00014 
00018 static const char* REQUESTED_CHILD_KEY = "Number of the requested child";
00019 static const char* NUMBER_OF_CHILDREN_KEY = "Total number of children";
00020 
00021 eformat::NoSuchChildIssue::NoSuchChildIssue(const ers::Context& context,
00022                                             ers::severity_t severity,
00023                                             size_t req, size_t total)
00024   : eformat::Issue(context,severity)
00025 {
00026   set_value(REQUESTED_CHILD_KEY, req);
00027   set_value(NUMBER_OF_CHILDREN_KEY, total);
00028   finish_setup("Requested child is out of bounds");
00029 }
00030 
00031 size_t eformat::NoSuchChildIssue::requested () const
00032 {
00033   return get_int_value(REQUESTED_CHILD_KEY);
00034 }
00035 
00036 size_t eformat::NoSuchChildIssue::total () const
00037 {
00038   return get_int_value(NUMBER_OF_CHILDREN_KEY);
00039 }

Generated on Tue Nov 29 22:58:25 2016 for BOSS_7.0.2 by  doxygen 1.4.7