BOSS 7.0.5
BESIII Offline Software System
|
#include <Issue.h>
Public Member Functions | |
Issue () | |
Issue (const Issue &issue) | |
Issue (const string_map_type &values) | |
Issue (const Context &context, severity_t s, const std::string &message) | |
Issue (const Context &context, severity_t s, const std::exception *cause) | |
virtual | ~Issue () throw () |
Issue * | clone () const |
const Issue * | cause () const throw () |
return the cause Issue of this Issue | |
void | cause (const std::exception *cause=0) |
Initialises the cause field. | |
operator std::string () const | |
Converts the issue into a string. | |
Issue | operator= (const Issue &issue) |
Affectation operator. | |
bool | operator== (const Issue &other) const throw () |
Equality operator. | |
const std::string & | operator[] (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 () |
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. | |
double | get_double_value (const std::string key, double def) const throw () |
Get a value of the table as double. | |
void | set_value (const std::string &key, uint8_t value) throw () |
Sets a value 8 bit unsigned. | |
void | set_value (const std::string &key, uint16_t value) throw () |
void | set_value (const std::string &key, uint32_t value) throw () |
void | set_value (const std::string &key, uint64_t value) throw () |
void | set_value (const std::string &key, int8_t value) throw () |
void | set_value (const std::string &key, int16_t value) throw () |
void | set_value (const std::string &key, int32_t value) throw () |
void | set_value (const std::string &key, int64_t value) throw () |
void | set_value (const std::string &key, double value) throw () |
Sets a value (double float) | |
void | set_value (const std::string &key, const std::string &value) throw () |
Sets a value (string) | |
void | set_value (const std::string &key, const char *value) throw () |
Sets a value (c-string) | |
void | set_value (const std::string &key, const void *ptr) throw () |
int | values_number () const |
How many key / values. | |
virtual const char * | get_class_name () const throw () |
Get key for class (used for serialisation) | |
const string_map_type * | get_value_table () const |
extract value table | |
severity_t | severity () const throw () |
severity_t of the issue | |
void | severity (severity_t s) |
sets the severity_t of the issue | |
bool | is_error () |
is the issue an error (or fatal). | |
std::string | severity_message () const |
message associated with the severity_t 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 | transience (bool tr) |
sets if the issue is transient | |
int | transience () const throw () |
is the issue transient | |
const std::string & | human_description () const throw () |
Human description message. | |
const char * | what () const throw () |
Human description message. | |
const std::string & | message () const throw () |
Message. | |
virtual int | exit_value () const throw () |
value to pass to exit | |
void | add_qualifier (const std::string &qualif) |
adds a qualifier to the issue | |
std::vector< std::string > | qualifiers () const |
return array of qualifiers | |
Issue () | |
Issue (const Issue &issue) | |
Issue (const string_map_type &values) | |
Issue (const Context &context, severity_t s, const std::string &message) | |
Issue (const Context &context, severity_t s, const std::exception *cause) | |
virtual | ~Issue () throw () |
Issue * | clone () const |
const Issue * | cause () const throw () |
return the cause Issue of this Issue | |
void | cause (const std::exception *cause=0) |
Initialises the cause field. | |
operator std::string () const | |
Converts the issue into a string. | |
Issue | operator= (const Issue &issue) |
Affectation operator. | |
bool | operator== (const Issue &other) const throw () |
Equality operator. | |
const std::string & | operator[] (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 () |
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. | |
double | get_double_value (const std::string key, double def) const throw () |
Get a value of the table as double. | |
void | set_value (const std::string &key, uint8_t value) throw () |
Sets a value 8 bit unsigned. | |
void | set_value (const std::string &key, uint16_t value) throw () |
void | set_value (const std::string &key, uint32_t value) throw () |
void | set_value (const std::string &key, uint64_t value) throw () |
void | set_value (const std::string &key, int8_t value) throw () |
void | set_value (const std::string &key, int16_t value) throw () |
void | set_value (const std::string &key, int32_t value) throw () |
void | set_value (const std::string &key, int64_t value) throw () |
void | set_value (const std::string &key, double value) throw () |
Sets a value (double float) | |
void | set_value (const std::string &key, const std::string &value) throw () |
Sets a value (string) | |
void | set_value (const std::string &key, const char *value) throw () |
Sets a value (c-string) | |
void | set_value (const std::string &key, const void *ptr) throw () |
int | values_number () const |
How many key / values. | |
virtual const char * | get_class_name () const throw () |
Get key for class (used for serialisation) | |
const string_map_type * | get_value_table () const |
extract value table | |
severity_t | severity () const throw () |
severity_t of the issue | |
void | severity (severity_t s) |
sets the severity_t of the issue | |
bool | is_error () |
is the issue an error (or fatal). | |
std::string | severity_message () const |
message associated with the severity_t 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 | transience (bool tr) |
sets if the issue is transient | |
int | transience () const throw () |
is the issue transient | |
const std::string & | human_description () const throw () |
Human description message. | |
const char * | what () const throw () |
Human description message. | |
const std::string & | message () const throw () |
Message. | |
virtual int | exit_value () const throw () |
value to pass to exit | |
void | add_qualifier (const std::string &qualif) |
adds a qualifier to the issue | |
std::vector< std::string > | qualifiers () const |
return array of qualifiers | |
Static Public Attributes | |
static const char *const | CLASS_KEY = "ISSUE_CLASS" |
key for class information | |
static const char *const | COMPILATION_TIME_KEY = "COMPILATION_TIME" |
key for compilation time | |
static const char *const | COMPILATION_TARGET_KEY = "COMPILATION_TARGET" |
key for compilation target | |
static const char *const | COMPILER_KEY = "COMPILER" |
key for compilator type | |
static const char *const | COMPILATION_DEBUG_LVL_KEY = "COMPILATION_DEBUG_LVL" |
static const char *const | CPP_CLASS_KEY = "ISSUE_CPP_CLASS" |
key for c++ class (might be mangled) | |
static const char *const | ERS_VERSION_KEY = "ERS_VERSION" |
key for ERS version | |
static const char *const | HOST_NAME_KEY = "HOST_NAME" |
key for hostname | |
static const char *const | HOST_TYPE_KEY = "HOST_TYPE" |
key for host type (architecture / os) | |
static const char *const | HOST_IP_ADDR_KEY = "HOST_IP" |
key for host ip address | |
static const char *const | MESSAGE_KEY = "MESSAGE" |
key for human readable | |
static const char *const | PROCESS_ID_KEY = "PROCESS_ID" |
key for the process id (number) | |
static const char *const | PROCESS_PWD_KEY = "PROCESS_PWD" |
key for the process working directory | |
static const char *const | PROGRAM_NAME_KEY = "PROGRAM_NAME" |
key for the name of the program | |
static const char *const | RESPONSIBILITY_KEY = "RESPONSIBILITY" |
key for the responsibility of the issue (text) | |
static const char *const | SEVERITY_KEY = "SEVERITY" |
key for the severity_t of the issue | |
static const char *const | SOURCE_POSITION_KEY = "SOURCE_POSITION" |
key for position in the source code | |
static const char *const | SOURCE_PACKAGE_KEY = "SOURCE_PACKAGE" |
package name associated with source code | |
static const char *const | TIME_KEY = "TIME" |
key for the time of the issue (text) | |
static const char *const | TRANSIENCE_KEY = "TRANSIENCE" |
key for the transience of the issue (text) | |
static const char *const | USER_ID_KEY = "USER_ID" |
key for the user-id of the owner of the process | |
static const char *const | USER_NAME_KEY = "USER_NAME" |
key for the user-name of the owner of the process | |
static const char *const | CAUSE_PSEUDO_KEY = "CAUSE" |
key used when serializing the cause issue, this key is not used in the value table | |
static const char *const | CAUSE_TEXT_KEY = "CAUSE_TEXT" |
key used to store the cause issue's message | |
static const char *const | QUALIFIER_LIST_KEY = "QUALIFIERS" |
key used to store the qualifier list | |
static const char *const | EXIT_VALUE_KEY = "EXIT_VALUE" |
key used to store the exit value | |
static const char *const | ISSUE_CLASS_NAME = "ers::issue" |
name of the class, used for serialisation | |
Protected Member Functions | |
void | insert (const Context *context) throw () |
Inserts the context. | |
void | insert_time () throw () |
Inserts current time. | |
void | setup_common (const Context *context) throw () |
Sets up the common fields. | |
void | finish_setup (const std::string &message) throw () |
Finishes the setup of the Issue. | |
Issue (const Context &context, severity_t s) | |
Constructor for subclasses. | |
void | set_values (const string_map_type &values) throw () |
sets the value table | |
void | insert (const Context *context) throw () |
Inserts the context. | |
void | insert_time () throw () |
Inserts current time. | |
void | setup_common (const Context *context) throw () |
Sets up the common fields. | |
void | finish_setup (const std::string &message) throw () |
Finishes the setup of the Issue. | |
Issue (const Context &context, severity_t s) | |
Constructor for subclasses. | |
void | set_values (const string_map_type &values) throw () |
sets the value table | |
Protected Attributes | |
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. | |
Friends | |
class | Stream |
class | IssueFactory |
Root Issue class.
This class is the root Issue object.
The class does not contain any fields with information, instead everything is stored in a hashmap as key - value paris (both strings). The object contains utility methods to allow the manipulation of those key / values and code to insert common values into it, like time, compilation information, host information etc. For an example of how to build an actual subclass of issue look at the source of ExampleIssue.
Definition at line 40 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
protected |
Constructor for subclasses.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 121 of file ers/ers-00-00-03/src/Issue.cxx.
Issue::Issue | ( | ) |
Empty constructor, should only be used when deserialising issues
Definition at line 74 of file ers/ers-00-00-03/src/Issue.cxx.
Issue::Issue | ( | const Issue & | issue | ) |
Copy constructor The m_human_description
and the m_value_table
fields are simply copied The The issue in the m_cause
pointer if present is cloned.
issue | original for copy |
Definition at line 85 of file ers/ers-00-00-03/src/Issue.cxx.
Issue::Issue | ( | const string_map_type & | values | ) |
Builds an Issue out of a value table
values | table of values for the issue |
Definition at line 99 of file ers/ers-00-00-03/src/Issue.cxx.
Issue::Issue | ( | const Context & | context, |
severity_t | s, | ||
const std::string & | m | ||
) |
Constructor
context | the context of the Issue, e.g where in the code did the issue appear |
s | severity_t of the Issue |
m | message of the Issue |
Definition at line 112 of file ers/ers-00-00-03/src/Issue.cxx.
Issue::Issue | ( | const Context & | context, |
severity_t | s, | ||
const std::exception * | cause_exception | ||
) |
Constructor - takes another exceptions as the cause for the current exception.
context | the context of the Issue, e.g where in the code did the issue appear |
s | the severity_t of the exception |
cause_exception | the exception that caused the current Issue |
Definition at line 133 of file ers/ers-00-00-03/src/Issue.cxx.
|
virtual |
Destructor. If the m_cause
pointer is not null, the pointed Issue is deleted
Reimplemented in eformat::Issue, and eformat::Issue.
Definition at line 145 of file ers/ers-00-00-03/src/Issue.cxx.
|
protected |
Constructor for subclasses.
ers::Issue::Issue | ( | ) |
ers::Issue::Issue | ( | const Issue & | issue | ) |
ers::Issue::Issue | ( | const string_map_type & | values | ) |
ers::Issue::Issue | ( | const Context & | context, |
severity_t | s, | ||
const std::string & | message | ||
) |
ers::Issue::Issue | ( | const Context & | context, |
severity_t | s, | ||
const std::exception * | cause | ||
) |
|
virtual |
Reimplemented in eformat::Issue, and eformat::Issue.
void Issue::add_qualifier | ( | const std::string & | qualif | ) |
adds a qualifier to the issue
Add a qualifier to the qualifier list
qualif | the qualifier to add |
Definition at line 703 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::add_qualifier | ( | const std::string & | qualif | ) |
adds a qualifier to the issue
const Issue * Issue::cause | ( | ) | const | |
throw | ( | |||
) |
void Issue::cause | ( | const std::exception * | c = 0 | ) |
Initialises the cause field.
Sets the cause of the issue If the cause is an Issue, it is cloned and stored in the m_cause
pointer. In all cases, the description of the cause is stored in the value table using the CAUSE_TEXT_KEY
key. If the cause pointer is null, the m_cause
field is simply cleared.
c | pointer to the cause exception |
Definition at line 252 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::cause | ( | const std::exception * | cause = 0 | ) |
Initialises the cause field.
Issue * Issue::clone | ( | ) | const |
Builds a clone of the object. The object is allocated on the stack, and should be deleted by the caller
Definition at line 160 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by cause(), Issue(), and ers::FIFOStream::send().
Issue * ers::Issue::clone | ( | ) | const |
|
virtual |
value to pass to exit
Definition at line 693 of file ers/ers-00-00-03/src/Issue.cxx.
|
virtual |
value to pass to exit
|
protected |
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.
message | human readable message |
Definition at line 568 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by eformat::BadVersionIssue::BadVersionIssue(), ers::EntityNotFoundIssue::EntityNotFoundIssue(), ExampleIssue::ExampleIssue(), ers::InvalidReferenceIssue::InvalidReferenceIssue(), Issue(), eformat::Issue::Issue(), ers::IssueFactoryIssue::IssueFactoryIssue(), ers::LogIssue::LogIssue(), eformat::NoSuchChildIssue::NoSuchChildIssue(), eformat::NotAlignedIssue::NotAlignedIssue(), eformat::OutOfBoundsIssue::OutOfBoundsIssue(), ers::ParseIssue::ParseIssue(), ers::RangeIssue::RangeIssue(), eformat::SizeCheckIssue::SizeCheckIssue(), eformat::TooBigCountIssue::TooBigCountIssue(), eformat::UnboundSourceIdentifierIssue::UnboundSourceIdentifierIssue(), eformat::WrongMarkerIssue::WrongMarkerIssue(), and eformat::WrongSizeIssue::WrongSizeIssue().
|
protected |
Finishes the setup of the Issue.
|
virtual |
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.
Definition at line 587 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::IssueFactory::build().
|
virtual |
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.
double Issue::get_double_value | ( | const std::string | key, |
double | def = nan("") |
||
) | const | ||
throw | ( | ||
) |
Get a value of the table as double.
Get a property of an issue as an double
key | the key to search for |
def | the value to return if key is not found - the default value for this parameter is NaN. |
def
Definition at line 344 of file ers/ers-00-00-03/src/Issue.cxx.
double ers::Issue::get_double_value | ( | const std::string | key, |
double | def | ||
) | const | ||
throw | ( | ||
) |
Get a value of the table as double.
int Issue::get_int_value | ( | const std::string & | key, |
int | def = 0 |
||
) | const | ||
throw | ( | ||
) |
Get a value of the table as an integer.
Get a property of an issue as an integer
key | the key to search for |
def | the value to return if key is not found |
def
Definition at line 305 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by exit_value(), and ExampleIssue::procrastination_level().
int ers::Issue::get_int_value | ( | const std::string & | key, |
int | def = 0 |
||
) | const | ||
throw | ( | ||
) |
Get a value of the table as an integer.
long Issue::get_long_value | ( | const std::string & | key, |
long | def = 0 |
||
) | const | ||
throw | ( | ||
) |
Get a value of the table as a long integer.
Get a property of an issue as an long
key | the key to search for |
def | the value to return if key is not found |
def
Definition at line 325 of file ers/ers-00-00-03/src/Issue.cxx.
long ers::Issue::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 & Issue::get_value | ( | const std::string & | key | ) | const |
throw | ( | ||||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 294 of file ers/ers-00-00-03/src/Issue.cxx.
const std::string & ers::Issue::get_value | ( | const std::string & | key | ) | const |
throw | ( | ||||
) |
const std::string & Issue::get_value | ( | const std::string & | key, |
const std::string & | def | ||
) | const | ||
throw | ( | ||
) |
Reads the property list.
General method for querying properties of the Issue
key | the key to lookup |
Definition at line 283 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by add_qualifier(), get_double_value(), ers::FilterStream::is_accept(), message(), qualifiers(), responsibility(), ers::DefaultStream::send(), ers::HumanStream::send(), severity(), severity_message(), and transience().
const std::string & ers::Issue::get_value | ( | const std::string & | key, |
const std::string & | def | ||
) | const | ||
throw | ( | ||
) |
Reads the property list.
const string_map_type * Issue::get_value_table | ( | ) | const |
extract value table
Returns a read-only pointer to the value table
Definition at line 274 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::IssueFactory::build(), ers::DefaultStream::send(), and ers::HumanStream::send().
const string_map_type * ers::Issue::get_value_table | ( | ) | const |
extract value table
const std::string & Issue::human_description | ( | ) | const | |
throw | ( | |||
) |
Human description message.
Definition at line 672 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::operator<<(), and what().
const std::string & ers::Issue::human_description | ( | ) | const | |
throw | ( | |||
) |
Human description message.
|
protected |
Inserts the context.
Inserts the context of the issue into the issue
context | pointer to context object |
Definition at line 481 of file ers/ers-00-00-03/src/Issue.cxx.
|
protected |
Inserts the context.
|
protected |
Inserts current time.
Inserts the current time into the issue
Definition at line 509 of file ers/ers-00-00-03/src/Issue.cxx.
|
protected |
Inserts current time.
bool Issue::is_error | ( | ) |
is the issue an error (or fatal).
Is the issue either an error or a fatal error
true
if the issue is either an error or a fatal Definition at line 619 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::StreamFactory::dispatch().
bool ers::Issue::is_error | ( | ) |
is the issue an error (or fatal).
const std::string & Issue::message | ( | ) | const | |
throw | ( | |||
) |
Message.
Definition at line 689 of file ers/ers-00-00-03/src/Issue.cxx.
const std::string & ers::Issue::message | ( | ) | const | |
throw | ( | |||
) |
Message.
Issue::operator std::string | ( | ) | const |
Converts the issue into a string.
Definition at line 165 of file ers/ers-00-00-03/src/Issue.cxx.
ers::Issue::operator std::string | ( | ) | const |
Converts the issue into a string.
Affectation operator.
Copy operator
source | the original issue |
m_cause
member, if non null, is cloned Definition at line 176 of file ers/ers-00-00-03/src/Issue.cxx.
Equality operator.
Comparison operator
other | issue to compare to |
true
if this
and other
are equal Definition at line 186 of file ers/ers-00-00-03/src/Issue.cxx.
const std::string & Issue::operator[] | ( | const std::string & | key | ) | const |
throw | ( | ||||
) |
Array access operator
key | the resolve |
Definition at line 198 of file ers/ers-00-00-03/src/Issue.cxx.
const std::string & ers::Issue::operator[] | ( | const std::string & | key | ) | const |
throw | ( | ||||
) |
std::vector< std::string > Issue::qualifiers | ( | ) | const |
return array of qualifiers
Gets the list of qualifiers
Definition at line 715 of file ers/ers-00-00-03/src/Issue.cxx.
std::vector< std::string > ers::Issue::qualifiers | ( | ) | const |
return array of qualifiers
responsibility_t Issue::responsibility | ( | ) | const | |
throw | ( | |||
) |
get the responsability level of the issue
Gets the responsibility type of the Issue
Definition at line 637 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::InvalidReferenceIssue::InvalidReferenceIssue().
responsibility_t ers::Issue::responsibility | ( | ) | const | |
throw | ( | |||
) |
get the responsability level of the issue
void Issue::responsibility | ( | responsibility_t | r | ) |
set the responsability of the issue
Sets the responsbility of the Issue
r | the responsibility type |
Definition at line 646 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::responsibility | ( | responsibility_t | r | ) |
set the responsability of the issue
void Issue::set_value | ( | const std::string & | key, |
const char * | value | ||
) | |||
throw | ( | ||
) |
Sets a value (c-string)
Sets a string value in the value table
key | the key to use for insertion |
value | c-string, null pointer is ignored. |
Definition at line 444 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
const char * | value | ||
) | |||
throw | ( | ||
) |
Sets a value (c-string)
void Issue::set_value | ( | const std::string & | key, |
const std::string & | value | ||
) | |||
throw | ( | ||
) |
Sets a value (string)
Sets a string value in the value table
key | the key to use for insertion |
value | the value to insert |
Definition at line 433 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
const std::string & | value | ||
) | |||
throw | ( | ||
) |
Sets a value (string)
void Issue::set_value | ( | const std::string & | key, |
const void * | ptr | ||
) | |||
throw | ( | ||
) |
Sets a pointer in the value table
key | the key to use for insertion |
ptr | a pointer |
Definition at line 457 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
const void * | ptr | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
double | value | ||
) | |||
throw | ( | ||
) |
Sets a value (double float)
Set a numerical value in the value table
key | the key to use for insertion |
value | the value to insert |
Definition at line 422 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
double | value | ||
) | |||
throw | ( | ||
) |
Sets a value (double float)
void Issue::set_value | ( | const std::string & | key, |
int16_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 401 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
int16_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
int32_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 407 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
int32_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
int64_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 413 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
int64_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
int8_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 395 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
int8_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
uint16_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 377 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
uint16_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
uint32_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 383 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
uint32_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
uint64_t | value | ||
) | |||
throw | ( | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 389 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::set_value | ( | const std::string & | key, |
uint64_t | value | ||
) | |||
throw | ( | ||
) |
void Issue::set_value | ( | const std::string & | key, |
uint8_t | value | ||
) | |||
throw | ( | ||
) |
Sets a value 8 bit unsigned.
Set a numerical value in the value table
key | the key to use for insertion |
value | the value to insert |
Definition at line 371 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by add_qualifier(), eformat::BadVersionIssue::BadVersionIssue(), cause(), ers::EntityNotFoundIssue::EntityNotFoundIssue(), ExampleIssue::ExampleIssue(), insert_time(), eformat::NoSuchChildIssue::NoSuchChildIssue(), eformat::NotAlignedIssue::NotAlignedIssue(), eformat::OutOfBoundsIssue::OutOfBoundsIssue(), ers::RangeIssue::RangeIssue(), responsibility(), ers::RangeIssue::set_range(), severity(), eformat::SizeCheckIssue::SizeCheckIssue(), eformat::TooBigCountIssue::TooBigCountIssue(), transience(), eformat::UnboundSourceIdentifierIssue::UnboundSourceIdentifierIssue(), eformat::WrongMarkerIssue::WrongMarkerIssue(), and eformat::WrongSizeIssue::WrongSizeIssue().
void ers::Issue::set_value | ( | const std::string & | key, |
uint8_t | value | ||
) | |||
throw | ( | ||
) |
Sets a value 8 bit unsigned.
|
protected |
sets the value table
Sets the value table
values | the value table to load |
Definition at line 362 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::IssueFactory::build(), and Issue().
|
protected |
sets the value table
|
protected |
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
context | context where the exception occured, this should be the ERS_HERE macro. |
Definition at line 535 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by Issue().
|
protected |
Sets up the common fields.
severity_t Issue::severity | ( | ) | const | |
throw | ( | |||
) |
severity_t of the issue
Gets the severity_t of the Issue
Definition at line 602 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by ers::StreamFactory::debug(), ers::StreamFactory::dispatch(), ers::StreamFactory::error(), ers::StreamFactory::fatal(), ers::InvalidReferenceIssue::InvalidReferenceIssue(), is_error(), Issue(), ers::DefaultStream::send(), and ers::StreamFactory::warning().
severity_t ers::Issue::severity | ( | ) | const | |
throw | ( | |||
) |
severity_t of the issue
void Issue::severity | ( | severity_t | s | ) |
sets the severity_t of the issue
Set the severity_t of the Issue
s | the severity_t level |
Definition at line 611 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::severity | ( | severity_t | s | ) |
sets the severity_t of the issue
std::string Issue::severity_message | ( | ) | const |
message associated with the severity_t of the issue
Definition at line 628 of file ers/ers-00-00-03/src/Issue.cxx.
std::string ers::Issue::severity_message | ( | ) | const |
message associated with the severity_t of the issue
int Issue::transience | ( | ) | const | |
throw | ( | |||
) |
is the issue transient
Definition at line 662 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by exit_value().
int ers::Issue::transience | ( | ) | const | |
throw | ( | |||
) |
is the issue transient
void Issue::transience | ( | bool | tr | ) |
sets if the issue is transient
Sets the transience of the issue
tr | true if the issue is transient, false if not |
Definition at line 655 of file ers/ers-00-00-03/src/Issue.cxx.
void ers::Issue::transience | ( | bool | tr | ) |
sets if the issue is transient
int Issue::values_number | ( | ) | const |
How many key / values.
Definition at line 469 of file ers/ers-00-00-03/src/Issue.cxx.
int ers::Issue::values_number | ( | ) | const |
How many key / values.
const char * Issue::what | ( | ) | const | |
throw | ( | |||
) |
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
Definition at line 684 of file ers/ers-00-00-03/src/Issue.cxx.
Referenced by EFEventLoopMgr::executeEvent(), and main().
const char * ers::Issue::what | ( | ) | const | |
throw | ( | |||
) |
Human description message.
|
friend |
Definition at line 42 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
friend |
Definition at line 41 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key used when serializing the cause issue, this key is not used in the value table
Definition at line 66 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key used to store the cause issue's message
Definition at line 67 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by cause().
|
static |
key for class information
Definition at line 44 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
Definition at line 48 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for compilation target
Definition at line 46 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for compilation time
Definition at line 45 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for compilator type
Definition at line 47 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for c++ class (might be mangled)
Definition at line 49 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for ERS version
Definition at line 50 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key used to store the exit value
Definition at line 69 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by exit_value().
|
static |
key for host ip address
Definition at line 53 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for hostname
Definition at line 51 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for host type (architecture / os)
Definition at line 52 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
name of the class, used for serialisation
Definition at line 70 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by get_class_name().
|
protected |
|
mutableprotected |
class name
Definition at line 74 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by ers::DefaultIssue::DefaultIssue(), and get_class_name().
|
mutableprotected |
Human readable description (cache)
Definition at line 75 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by human_description(), and Issue().
|
protected |
Optional properties.
Definition at line 76 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by ers::InvalidReferenceIssue::check_reference(), get_value_table(), Issue(), and values_number().
|
static |
key for human readable
Definition at line 54 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by message(), ers::DefaultStream::send(), and ers::HumanStream::send().
|
static |
key for the process id (number)
Definition at line 55 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for the process working directory
Definition at line 56 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for the name of the program
Definition at line 57 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key used to store the qualifier list
�
Definition at line 68 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by add_qualifier(), ers::FilterStream::is_accept(), and qualifiers().
|
static |
key for the responsibility of the issue (text)
Definition at line 58 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by responsibility().
|
static |
key for the severity_t of the issue
Definition at line 59 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by ers::DefaultStream::send(), ers::HumanStream::send(), severity(), and severity_message().
|
static |
package name associated with source code
Definition at line 61 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for position in the source code
�
Definition at line 60 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by ers::DefaultStream::send().
|
static |
key for the time of the issue (text)
Definition at line 62 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by insert_time(), and ers::DefaultStream::send().
|
static |
key for the transience of the issue (text)
Definition at line 63 of file Event/ers/ers-00-00-03/ers/Issue.h.
Referenced by transience().
|
static |
key for the user-id of the owner of the process
Definition at line 64 of file Event/ers/ers-00-00-03/ers/Issue.h.
|
static |
key for the user-name of the owner of the process
Definition at line 65 of file Event/ers/ers-00-00-03/ers/Issue.h.