#include <BadVersionIssue.h>
Inheritance diagram for eformat::BadVersionIssue:
Public Member Functions | |
void | add_qualifier (const std::string &qualif) |
adds a qualifier to the issue | |
void | add_qualifier (const std::string &qualif) |
adds a qualifier to the issue | |
BadVersionIssue (const ers::Context &context, ers::severity_t severity, uint16_t current, uint16_t supported) | |
BadVersionIssue (const ers::Context &context, ers::severity_t severity, uint16_t current, uint16_t supported) | |
void | cause (const std::exception *cause=0) |
Initialises the cause field. | |
const Issue * | cause () const throw () |
return the cause Issue of this Issue | |
void | cause (const std::exception *cause=0) |
Initialises the cause field. | |
const Issue * | cause () const throw () |
return the cause Issue of this Issue | |
Issue * | clone () const |
Issue * | clone () const |
uint16_t | current () const |
uint16_t | current () const |
virtual int | exit_value () const throw () |
value to pass to exit | |
virtual int | exit_value () const throw () |
value to pass to exit | |
virtual const char * | get_class_name () const throw () |
Get key for class (used for serialisation). | |
virtual const char * | get_class_name () const throw () |
Get key for class (used for serialisation). | |
double | get_double_value (const std::string key, double def) const throw () |
Get a value of the table as double. | |
double | get_double_value (const std::string key, double def) const throw () |
Get a value of the table as double. | |
int | get_int_value (const std::string &key, int def=0) const throw () |
Get a value of the table as an integer. | |
int | get_int_value (const std::string &key, int def=0) const throw () |
Get a value of the table as an integer. | |
long | get_long_value (const std::string &key, long def=0) const throw () |
Get a value of the table as a long integer. | |
long | get_long_value (const std::string &key, long def=0) const throw () |
Get a value of the table as a long integer. | |
const std::string & | get_value (const std::string &key) const throw () |
const std::string & | get_value (const std::string &key, const std::string &def) const throw () |
Reads the property list. | |
const std::string & | get_value (const std::string &key) const throw () |
const std::string & | get_value (const std::string &key, const std::string &def) const throw () |
Reads the property list. | |
const string_map_type * | get_value_table () const |
extract value table | |
const string_map_type * | get_value_table () const |
extract value table | |
const std::string & | human_description () const throw () |
Human description message. | |
const std::string & | human_description () const throw () |
Human description message. | |
bool | is_error () |
is the issue an error (or fatal) | |
bool | is_error () |
is the issue an error (or fatal) | |
const std::string & | message () const throw () |
Message. | |
const std::string & | message () const throw () |
Message. | |
operator std::string () const | |
Converts the issue into a string. | |
operator std::string () const | |
Converts the issue into a string. | |
bool | operator== (const Issue &other) const throw () |
Equality operator. | |
bool | operator== (const Issue &other) const throw () |
Equality operator. | |
const std::string & | operator[] (const std::string &key) const throw () |
const std::string & | operator[] (const std::string &key) const throw () |
std::vector< std::string > | qualifiers () const |
return array of qualifiers | |
std::vector< std::string > | qualifiers () const |
return array of qualifiers | |
responsibility_t | responsibility () const throw () |
get the responsability level of the issue | |
void | responsibility (responsibility_t r) |
set the responsability of the issue | |
responsibility_t | responsibility () const throw () |
get the responsability level of the issue | |
void | responsibility (responsibility_t r) |
set the responsability of the issue | |
void | set_value (const std::string &key, const void *ptr) throw () |
void | set_value (const std::string &key, const char *value) throw () |
Sets a value (c-string). | |
void | set_value (const std::string &key, const std::string &value) throw () |
Sets a value (string). | |
void | set_value (const std::string &key, double value) throw () |
Sets a value (double float). | |
void | set_value (const std::string &key, int64_t value) throw () |
void | set_value (const std::string &key, int32_t value) throw () |
void | set_value (const std::string &key, int16_t value) throw () |
void | set_value (const std::string &key, int8_t value) throw () |
void | set_value (const std::string &key, uint64_t value) throw () |
void | set_value (const std::string &key, uint32_t value) throw () |
void | set_value (const std::string &key, uint16_t value) throw () |
void | set_value (const std::string &key, uint8_t value) throw () |
Sets a value 8 bit unsigned. | |
void | set_value (const std::string &key, const void *ptr) throw () |
void | set_value (const std::string &key, const char *value) throw () |
Sets a value (c-string). | |
void | set_value (const std::string &key, const std::string &value) throw () |
Sets a value (string). | |
void | set_value (const std::string &key, double value) throw () |
Sets a value (double float). | |
void | set_value (const std::string &key, int64_t value) throw () |
void | set_value (const std::string &key, int32_t value) throw () |
void | set_value (const std::string &key, int16_t value) throw () |
void | set_value (const std::string &key, int8_t value) throw () |
void | set_value (const std::string &key, uint64_t value) throw () |
void | set_value (const std::string &key, uint32_t value) throw () |
void | set_value (const std::string &key, uint16_t value) throw () |
void | set_value (const std::string &key, uint8_t value) throw () |
Sets a value 8 bit unsigned. | |
void | severity (severity_t s) |
sets the severity_t of the issue | |
severity_t | severity () const throw () |
severity_t of the issue | |
void | severity (severity_t s) |
sets the severity_t of the issue | |
severity_t | severity () const throw () |
severity_t of the issue | |
std::string | severity_message () const |
message associated with the severity_t of the issue | |
std::string | severity_message () const |
message associated with the severity_t of the issue | |
uint16_t | supported () const |
uint16_t | supported () const |
int | transience () const throw () |
is the issue transient | |
void | transience (bool tr) |
sets if the issue is transient | |
int | transience () const throw () |
is the issue transient | |
void | transience (bool tr) |
sets if the issue is transient | |
int | values_number () const |
How many key / values. | |
int | values_number () const |
How many key / values. | |
const char * | what () const throw () |
Human description message. | |
const char * | what () const throw () |
Human description message. | |
virtual | ~BadVersionIssue () throw () |
virtual | ~BadVersionIssue () throw () |
Static Public Attributes | |
const char *const | CAUSE_PSEUDO_KEY |
key used when serializing the cause issue, this key is not used in the value table | |
const char *const | CAUSE_PSEUDO_KEY = "CAUSE" |
key used when serializing the cause issue, this key is not used in the value table | |
const char *const | CAUSE_TEXT_KEY |
key used to store the cause issue's message | |
const char *const | CAUSE_TEXT_KEY = "CAUSE_TEXT" |
key used to store the cause issue's message | |
const char *const | CLASS_KEY |
key for class information | |
const char *const | CLASS_KEY = "ISSUE_CLASS" |
key for class information | |
const char *const | COMPILATION_DEBUG_LVL_KEY |
const char *const | COMPILATION_DEBUG_LVL_KEY = "COMPILATION_DEBUG_LVL" |
const char *const | COMPILATION_TARGET_KEY |
key for compilation target | |
const char *const | COMPILATION_TARGET_KEY = "COMPILATION_TARGET" |
key for compilation target | |
const char *const | COMPILATION_TIME_KEY |
key for compilation time | |
const char *const | COMPILATION_TIME_KEY = "COMPILATION_TIME" |
key for compilation time | |
const char *const | COMPILER_KEY |
key for compilator type | |
const char *const | COMPILER_KEY = "COMPILER" |
key for compilator type | |
const char *const | CPP_CLASS_KEY |
key for c++ class (might be mangled) | |
const char *const | CPP_CLASS_KEY = "ISSUE_CPP_CLASS" |
key for c++ class (might be mangled) | |
const char *const | ERS_VERSION_KEY |
key for ERS version | |
const char *const | ERS_VERSION_KEY = "ERS_VERSION" |
key for ERS version | |
const char *const | EXIT_VALUE_KEY |
key used to store the exit value | |
const char *const | EXIT_VALUE_KEY = "EXIT_VALUE" |
key used to store the exit value | |
const char *const | HOST_IP_ADDR_KEY |
key for host ip address | |
const char *const | HOST_IP_ADDR_KEY = "HOST_IP" |
key for host ip address | |
const char *const | HOST_NAME_KEY |
key for hostname | |
const char *const | HOST_NAME_KEY = "HOST_NAME" |
key for hostname | |
const char *const | HOST_TYPE_KEY |
key for host type (architecture / os) | |
const char *const | HOST_TYPE_KEY = "HOST_TYPE" |
key for host type (architecture / os) | |
const char *const | ISSUE_CLASS_NAME |
name of the class, used for serialisation | |
const char *const | ISSUE_CLASS_NAME = "ers::issue" |
name of the class, used for serialisation | |
const char *const | MESSAGE_KEY |
key for human readable | |
const char *const | MESSAGE_KEY = "MESSAGE" |
key for human readable | |
const char *const | PROCESS_ID_KEY |
key for the process id (number) | |
const char *const | PROCESS_ID_KEY = "PROCESS_ID" |
key for the process id (number) | |
const char *const | PROCESS_PWD_KEY |
key for the process working directory | |
const char *const | PROCESS_PWD_KEY = "PROCESS_PWD" |
key for the process working directory | |
const char *const | PROGRAM_NAME_KEY |
key for the name of the program | |
const char *const | PROGRAM_NAME_KEY = "PROGRAM_NAME" |
key for the name of the program | |
const char *const | QUALIFIER_LIST_KEY |
key used to store the qualifier list | |
const char *const | QUALIFIER_LIST_KEY = "QUALIFIERS" |
key used to store the qualifier list | |
const char *const | RESPONSIBILITY_KEY |
key for the responsibility of the issue (text) | |
const char *const | RESPONSIBILITY_KEY = "RESPONSIBILITY" |
key for the responsibility of the issue (text) | |
const char *const | SEVERITY_KEY |
key for the severity_t of the issue | |
const char *const | SEVERITY_KEY = "SEVERITY" |
key for the severity_t of the issue | |
const char *const | SOURCE_PACKAGE_KEY |
package name associated with source code | |
const char *const | SOURCE_PACKAGE_KEY = "SOURCE_PACKAGE" |
package name associated with source code | |
const char *const | SOURCE_POSITION_KEY |
key for position in the source code | |
const char *const | SOURCE_POSITION_KEY = "SOURCE_POSITION" |
key for position in the source code | |
const char *const | TIME_KEY |
key for the time of the issue (text) | |
const char *const | TIME_KEY = "TIME" |
key for the time of the issue (text) | |
const char *const | TRANSIENCE_KEY |
key for the transience of the issue (text) | |
const char *const | TRANSIENCE_KEY = "TRANSIENCE" |
key for the transience of the issue (text) | |
const char *const | USER_ID_KEY |
key for the user-id of the owner of the process | |
const char *const | USER_ID_KEY = "USER_ID" |
key for the user-id of the owner of the process | |
const char *const | USER_NAME_KEY |
key for the user-name of the owner of the process | |
const char *const | USER_NAME_KEY = "USER_NAME" |
key for the user-name of the owner of the process | |
Protected Member Functions | |
void | finish_setup (const std::string &message) throw () |
Finishes the setup of the Issue. | |
void | finish_setup (const std::string &message) throw () |
Finishes the setup of the Issue. | |
void | insert (const Context *context) throw () |
Inserts the context. | |
void | insert (const Context *context) throw () |
Inserts the context. | |
void | insert_time () throw () |
Inserts current time. | |
void | insert_time () throw () |
Inserts current time. | |
void | set_values (const string_map_type &values) throw () |
sets the value table | |
void | set_values (const string_map_type &values) throw () |
sets the value table | |
void | setup_common (const Context *context) throw () |
Sets up the common fields. | |
void | setup_common (const Context *context) throw () |
Sets up the common fields. | |
Protected Attributes | |
Issue * | m_cause |
Issue that caused the current issue. | |
Issue * | m_cause |
Issue that caused the current issue. | |
std::string | m_class_name |
class name | |
std::string | m_human_description |
Human readable description (cache). | |
string_map_type | m_value_table |
Optional properties. |
|
Builds a new bad-version exception
00025 : eformat::Issue(context,severity) 00026 { 00027 set_value(CURRENT_VERSION_KEY, current); 00028 set_value(SUPPORTED_VERSION_KEY, supported); 00029 finish_setup("Unsupported eformat version detected"); 00030 }
|
|
Destructor virtualisation 00044 {}
|
|
Builds a new bad-version exception
|
|
Destructor virtualisation 00044 {}
|
|
adds a qualifier to the issue
|
|
adds a qualifier to the issue Add a qualifier to the qualifier list
00702 { 00703 const std::string &qualif_s = get_value(QUALIFIER_LIST_KEY) ; 00704 std::string::size_type pos = qualif_s.find(qualif); 00705 if (pos!=std::string::npos) return ; // already present 00706 std::string n_qualif = qualif_s+qualif + " " ; 00707 set_value(QUALIFIER_LIST_KEY,n_qualif); 00708 } // add_qualifier
|
|
Initialises the cause field.
|
|
return the cause Issue of this Issue
|
|
Initialises the cause field.
Sets the cause of the issue If the cause is an Issue, it is cloned and stored in the
00251 { 00252 if (c==0) { 00253 m_cause = 0 ; 00254 return ; 00255 } // No cause easy. 00256 const Issue *i = dynamic_cast<const Issue *>(c) ; 00257 if (i) { 00258 m_cause = i->clone(); 00259 } else { 00260 m_cause = 0 ; 00261 } // if 00262 set_value(CAUSE_TEXT_KEY,c->what()); 00263 } // cause
|
|
return the cause Issue of this Issue
00239 { 00240 return m_cause ; 00241 } // cause
|
|
|
|
Builds a clone of the object. The object is allocated on the stack, and should be deleted by the caller
00159 { 00160 return IssueFactory::instance()->build(this) ; 00161 } // clone
|
|
Access the current object version |
|
Access the current object version 00033 { 00034 return get_int_value(CURRENT_VERSION_KEY); 00035 }
|
|
value to pass to exit
|
|
value to pass to exit
00692 { 00693 int v = 1 ; 00694 if (transience()==1) v = EX_TEMPFAIL ; 00695 return get_int_value(EXIT_VALUE_KEY,v); 00696 } // exit_value
|
|
Finishes the setup of the Issue.
|
|
Finishes the setup of the Issue. Finishes the setting up of the information fields. In particular, in fills in the human message and the class type fields (those fields are not available until the end of the object construction.
00567 { 00568 // set_value(CPP_CLASS_KEY,class_name); 00569 set_value(CLASS_KEY, get_class_name()) ; 00570 set_value(MESSAGE_KEY,msg); 00571 } // finish_setup
|
|
Get key for class (used for serialisation).
Reimplemented in ers::Assertion, ers::DefaultIssue, ers::EntityNotFoundIssue, ers::InvalidReferenceIssue, ers::IssueFactoryIssue, ers::LogIssue, ers::NotImplemented, ers::ParseIssue, ers::Precondition, ers::RangeIssue, ExampleIssue, ers::Assertion, ers::DefaultIssue, ers::EntityNotFoundIssue, ers::InvalidReferenceIssue, ers::IssueFactoryIssue, ers::LogIssue, ers::NotImplemented, ers::ParseIssue, ers::Precondition, and ers::RangeIssue. |
|
Get key for class (used for serialisation). Returns the key used to describe this particular class when serializing This method tries to build a meaningfull class name out of C++ RTTI. This depends on the compiler providing information in a format similar to gcc. For more safety. If the gcc unmangling fails the default (ers::Issue) is used. Reimplemented in ers::Assertion, ers::DefaultIssue, ers::EntityNotFoundIssue, ers::InvalidReferenceIssue, ers::IssueFactoryIssue, ers::LogIssue, ers::NotImplemented, ers::ParseIssue, ers::Precondition, ers::RangeIssue, ExampleIssue, ers::Assertion, ers::DefaultIssue, ers::EntityNotFoundIssue, ers::InvalidReferenceIssue, ers::IssueFactoryIssue, ers::LogIssue, ers::NotImplemented, ers::ParseIssue, ers::Precondition, and ers::RangeIssue. 00586 { 00587 if (m_class_name.empty()) { 00588 const Issue *p = this ; 00589 m_class_name = ers::Core::umangle_gcc_class_name((typeid(*p)).name()).c_str(); 00590 if (m_class_name.empty()) { 00591 m_class_name=ISSUE_CLASS_NAME ; 00592 } // fall back 00593 } 00594 return m_class_name.c_str() ; 00595 } // get_class_name
|
|
Get a value of the table as double.
|
|
Get a value of the table as double. Get a property of an issue as an double
00343 { 00344 std::string v = get_value(key) ; 00345 if (! v.empty()) { // not empty 00346 std::istringstream in(v) ; 00347 double n ; 00348 in >> n ; 00349 return n ; 00350 // return atoi(v.c_str()); 00351 } else { // empty 00352 return def ; 00353 } // empty 00354 } // get_double_value
|
|
Get a value of the table as an integer.
|
|
Get a value of the table as an integer. Get a property of an issue as an integer
00304 { 00305 std::string v = get_value(key) ; 00306 if (! v.empty()) { // not empty 00307 std::istringstream in(v) ; 00308 int n ; 00309 in >> n ; 00310 return n ; 00311 // return atoi(v.c_str()); 00312 } else { // empty 00313 return def ; 00314 } // empty 00315 } // get_int_value
|
|
Get a value of the table as a long integer.
|
|
Get a value of the table as a long integer. Get a property of an issue as an long
00324 { 00325 std::string v = get_value(key) ; 00326 if (! v.empty()) { // not empty 00327 std::istringstream in(v) ; 00328 long n ; 00329 in >> n ; 00330 return n ; 00331 // return atoi(v.c_str()); 00332 } else { // empty 00333 return def ; 00334 } // empty 00335 } // get_long_value
|
|
|
|
Reads the property list.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00293 { 00294 return get_value(key,Core::empty_string) ; 00295 } // get_value
|
|
Reads the property list. General method for querying properties of the Issue
00282 { 00283 string_map_type::const_iterator pos = m_value_table.find(key); 00284 if (pos!=m_value_table.end()) { 00285 return pos->second ; 00286 } // if 00287 return def ; 00288 } // get_value
|
|
extract value table
|
|
extract value table Returns a read-only pointer to the value table
00273 { 00274 return &m_value_table ; 00275 } // get_value_table
|
|
Human description message.
|
|
Human description message.
00671 { 00672 if (m_human_description.empty()) { 00673 m_human_description = HumanStream::to_string(this) ; 00674 } 00675 return m_human_description ; 00676 } // human_description
|
|
Inserts the context.
|
|
Inserts the context. Inserts the context of the issue into the issue
00480 { 00481 if (context) { 00482 set_value(SOURCE_POSITION_KEY,context->position()) ; 00483 set_value(SOURCE_PACKAGE_KEY,context->package_name()); 00484 set_value(COMPILER_KEY,context->compiler()) ; 00485 set_value(COMPILATION_TIME_KEY,context->compilation()) ; 00486 set_value(COMPILATION_TARGET_KEY,context->host_type()) ; 00487 int lvl = ers::Context::debug_level(); 00488 if (lvl>=0) { 00489 set_value(COMPILATION_DEBUG_LVL_KEY,lvl); 00490 } // if 00491 int frame_number = context->stack_frames(); 00492 for(int i=0;i<frame_number;i++) { 00493 char key_buffer[256] ; 00494 snprintf(key_buffer,sizeof(key_buffer),"SOURCE-STACK-%03x",i); 00495 set_value(key_buffer,context->stack_frame(i)); 00496 } // for 00497 std::vector<std::string> qualifs = context->qualifiers() ; 00498 std::vector<std::string>::const_iterator pos ; 00499 for(pos=qualifs.begin();pos!=qualifs.end();pos++) { 00500 add_qualifier(*pos) ; 00501 } // for 00502 } // if context 00503 } // insert
|
|
Inserts current time.
|
|
Inserts current time. Inserts the current time into the issue 00508 { 00509 time_t now ; 00510 time(&now); 00511 char time_buffer[BUFFER_SIZE] ; 00512 ctime_r(&now,time_buffer) ; 00513 char *cr = strchr(time_buffer,'\n'); 00514 if (cr) { 00515 *cr = '\0' ; 00516 } // carriage return 00517 set_value(TIME_KEY,time_buffer); 00518 } // insert_time
|
|
is the issue an error (or fatal)
|
|
is the issue an error (or fatal) Is the issue either an error or a fatal error
00618 { 00619 severity_t s = severity(); 00620 return (s==ers::error || s== ers::fatal) ; 00621 } // is_error
|
|
Message.
|
|
Message.
00688 { 00689 return get_value(MESSAGE_KEY) ; 00690 } // message
|
|
Converts the issue into a string.
|
|
Converts the issue into a string.
00164 { 00165 std::string s = human_description(); 00166 return s ; 00167 } // std::string()
|
|
Equality operator.
|
|
Equality operator. Comparison operator
00185 { 00186 if (m_value_table != other.m_value_table) return false ; 00187 if (m_cause == other.m_cause) return true ; 00188 return (*m_cause) == *(other.m_cause) ; 00189 } // operator==
|
|
|
|
Array access operator
00197 { 00198 return get_value(key,""); 00199 } // operator[]
|
|
return array of qualifiers
|
|
return array of qualifiers Gets the list of qualifiers
00714 { 00715 const std::string &qualif_s = get_value(QUALIFIER_LIST_KEY) ; 00716 return ers::Core::tokenize(qualif_s,", \t"); 00717 } // qualifiers
|
|
get the responsability level of the issue
|
|
set the responsability of the issue
|
|
get the responsability level of the issue Gets the responsibility type of the Issue
00636 { 00637 std::string value = this->get_value(RESPONSIBILITY_KEY); 00638 return ers::Core::parse_responsibility(value); 00639 } // responsability
|
|
set the responsability of the issue Sets the responsbility of the Issue
00645 { 00646 set_value(RESPONSIBILITY_KEY,ers::Core::to_string(r)) ; 00647 } // responsability
|
|
|
|
Sets a value (c-string).
|
|
Sets a value (string).
|
|
Sets a value (double float).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets a value 8 bit unsigned.
|
|
Sets a pointer in the value table
00456 { 00457 std::ostringstream stream ; 00458 stream.setf(std::ios::hex,std::ios::basefield); 00459 stream << (unsigned long) ptr ; 00460 m_value_table[key] = stream.str(); 00461 } // set_value
|
|
Sets a value (c-string). Sets a string value in the value table
00443 { 00444 if (value) { 00445 std::string value_str = std::string(value) ; 00446 set_value(key,value_str); 00447 } // if 00448 } // set_value
|
|
Sets a value (string). Sets a string value in the value table
00432 { 00433 if (! value.empty()) { 00434 m_value_table[key] = value ; 00435 } 00436 } // set_value
|
|
Sets a value (double float). Set a numerical value in the value table
00421 { 00422 std::ostringstream stream ; 00423 stream << value ; 00424 m_value_table[key] = stream.str(); 00425 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00412 { 00413 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00414 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00406 { 00407 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00408 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00400 { 00401 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00402 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00394 { 00395 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00396 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00388 { 00389 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00390 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00382 { 00383 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00384 } // set_value
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 00376 { 00377 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00378 } // set_value
|
|
Sets a value 8 bit unsigned. Set a numerical value in the value table
00370 { 00371 ISSUE_VALUE_SET_SCALAR(m_value_table,key,value); 00372 } // set_value
|
|
sets the value table
|
|
sets the value table Sets the value table
00361 { 00362 m_value_table = values ; 00363 } // load_values
|
|
Sets up the common fields.
|
|
Sets up the common fields. This method sets up common fields for all Issues. In particular, it inserts all data concerning the Issue's context, this includes
00534 { 00535 const int errno_copy = errno ; // We need to save errno, because it might be changed 00536 insert(context); 00537 insert_time(); 00538 errno = errno_copy ; // we restaure errno 00539 } // setup_common
|
|
sets the severity_t of the issue
|
|
severity_t of the issue
|
|
sets the severity_t of the issue Set the severity_t of the Issue
00610 { 00611 set_value(SEVERITY_KEY,ers::Core::to_string(s)); 00612 } // severity
|
|
severity_t of the issue Gets the severity_t of the Issue
00601 { 00602 std::string value = get_value(SEVERITY_KEY); 00603 return ers::Core::parse_severity(value); 00604 } // severity
|
|
message associated with the severity_t of the issue
|
|
message associated with the severity_t of the issue
00627 { 00628 return get_value(SEVERITY_KEY); 00629 } // severity_message
|
|
Access the supported version |
|
Access the supported version 00038 { 00039 return get_int_value(SUPPORTED_VERSION_KEY); 00040 }
|
|
is the issue transient
|
|
sets if the issue is transient
|
|
is the issue transient
00661 { 00662 std::string value = this->get_value(TRANSIENCE_KEY); 00663 return ers::Core::parse_boolean(value.c_str()); 00664 } // transience
|
|
sets if the issue is transient Sets the transience of the issue
00654 { 00655 set_value(TRANSIENCE_KEY,ers::Core::to_string(tr)) ; 00656 } // transience
|
|
How many key / values.
|
|
How many key / values.
00468 { 00469 return m_value_table.size(); 00470 } // values_number
|
|
Human description message.
|
|
Human description message. This method overides the what method of the std::exception class. As this method is declared const, it has to use a pre-calculated string
00683 { 00684 std::string desr = human_description() ; 00685 return desr.c_str(); 00686 } // what();
|
|
key used when serializing the cause issue, this key is not used in the value table
|
|
key used when serializing the cause issue, this key is not used in the value table
|
|
key used to store the cause issue's message
|
|
key used to store the cause issue's message
|
|
key for class information
|
|
key for class information
|
|
|
|
|
|
key for compilation target
|
|
key for compilation target
|
|
key for compilation time
|
|
key for compilation time
|
|
key for compilator type
|
|
key for compilator type
|
|
key for c++ class (might be mangled)
|
|
key for c++ class (might be mangled)
|
|
key for ERS version
|
|
key for ERS version
|
|
key used to store the exit value
|
|
key used to store the exit value
|
|
key for host ip address
|
|
key for host ip address
|
|
key for hostname
|
|
key for hostname
|
|
key for host type (architecture / os)
|
|
key for host type (architecture / os)
|
|
name of the class, used for serialisation
|
|
name of the class, used for serialisation
|
|
Issue that caused the current issue.
|
|
Issue that caused the current issue.
|
|
class name
|
|
Human readable description (cache).
|
|
Optional properties.
|
|
key for human readable
|
|
key for human readable
|
|
key for the process id (number)
|
|
key for the process id (number)
|
|
key for the process working directory
|
|
key for the process working directory
|
|
key for the name of the program
|
|
key for the name of the program
|
|
key used to store the qualifier list Ê |
|
key used to store the qualifier list Ê |
|
key for the responsibility of the issue (text)
|
|
key for the responsibility of the issue (text)
|
|
key for the severity_t of the issue
|
|
key for the severity_t of the issue
|
|
package name associated with source code
|
|
package name associated with source code
|
|
key for position in the source code
|
|
key for position in the source code
|
|
key for the time of the issue (text)
|
|
key for the time of the issue (text)
|
|
key for the transience of the issue (text)
|
|
key for the transience of the issue (text)
|
|
key for the user-id of the owner of the process
|
|
key for the user-id of the owner of the process
|
|
key for the user-name of the owner of the process
|
|
key for the user-name of the owner of the process
|