00001 //Dear emacs, this is -*- c++ -*- 00002 00013 #include "eformat/old/UnboundSourceIdentifierIssue.h" 00014 00018 static const char* SOURCE_ID_KEY = "Unbound source identifier"; 00019 static const char* CONTEXT_KEY = "Context"; 00020 00021 eformat::UnboundSourceIdentifierIssue::UnboundSourceIdentifierIssue 00022 (const ers::Context& context, 00023 ers::severity_t severity, 00024 uint32_t source_id, 00025 const std::string& my_context) 00026 : eformat::Issue(context,severity) 00027 { 00028 set_value(SOURCE_ID_KEY, source_id); 00029 set_value(CONTEXT_KEY, my_context); 00030 finish_setup("Unbound (old) source identifier detected"); 00031 } 00032 00033 uint32_t eformat::UnboundSourceIdentifierIssue::source_id () const 00034 { 00035 return get_int_value(SOURCE_ID_KEY); 00036 } 00037 00038 const std::string& eformat::UnboundSourceIdentifierIssue::my_context () const 00039 { 00040 return get_value(CONTEXT_KEY); 00041 }