Inheritance diagram for class svt_message_manager:
This class provides access to the methodology specific reporting facility. The class provides SVC specific interpretations of the reporting capabilities, and provides support for SVC specific methods.
Public Member Functions | |
| static function int | calc_format_count ( string message ) |
| static function int | facilitate_get_client_verbosity_level ( string pref_mgr_id, string def_mgr_id ) |
| static function bit | facilitate_is_supported_client_verbosity ( string pref_mgr_id, string def_mgr_id, int client_verbosity ) |
| static function void | facilitate_report_message ( string pref_mgr_id, string def_mgr_id, int client_verbosity, int client_severity, string message, int message_id = -1, string filename = "", int line = 0 ) |
| static function svt_message_manager | find_message_manager ( string pref_mgr_id, string def_mgr_id ) |
| function void | get_client_verbosity ( int methodology_verbosity, int methodology_severity, ref int client_verbosity, ref int client_severity ) |
| function int | get_client_verbosity_level ( ) |
| function void | get_methodology_id_and_message ( string client_message, ref string message_id, ref string message ) |
| function string | get_methodology_message ( string client_message ) |
| function void | get_methodology_verbosity ( int client_verbosity, int client_severity, ref int methodology_verbosity, ref int methodology_severity, ref bit include_prefix, ref bit include_newline ) |
| function string | get_name ( ) |
| static function bit | is_string_var ( string var_typename ) |
| function bit | is_supported_client_verbosity ( int client_verbosity ) |
| static function svt_message_manager | localized_report_message ( svt_message_manager msg_mgr, string pref_mgr_id, string def_mgr_id, int client_verbosity, int client_severity, string message, int message_id = -1, string filename = "", int line = 0 ) |
| function void | new ( string name = "", vmm_log log = null ) |
| static function void | replace_percent_m ( ref string message, input string percent_m_replacement ) |
| function void | report_message ( int client_verbosity, int client_severity, string message, int message_id = -1, string filename = "", int line = 0 ) |
Public Attributes | |
| vmm_log | log |
| int | m_client_verbosity = -1; |
| static svt_message_manager | preferred_msg_mgr [string] |
| static svt_message_manager | shared_msg_mgr = new; |
Protected Attributes | |
| protected string | name = ""; |
|
||
Utility method which calculates how many format specifiers (e.g., %s) are included in the string.
message - The string to be processed.
Return values - Indicates how many format specifiers were found. |
|
||
Static method used to get the current message level. Useful for controlling output generation.
pref_mgr_id - Used to find the preferred message manager to retrieve the client verbosity level from. def_mgr_id - Used to find default message manager if cannot find message manager for pref_mgr_id.
Return values - The current client specified verbosity level associated with the indicated message manager. |
|
||
Utility method that can be used to decide if the client verbosity can be supported.
client_verbosity - Client specified verbosity value that is to be evaluated.
Return values - Indicates whether the client_verbosity corresponds to a support verbosity level (1) or not (0). |
|
||
Static method used to find the right message manager and report information to the transcript.
pref_mgr_id - Used to find the preferred message manager to report the message. def_mgr_id - Used to find default message manager if cannot find message manager for pref_mgr_id. client_verbosity - Client specified verbosity which defines the output level. client_severity - Client specified severity which helps define the output level. message - Text to be reported. message_id - Optional ID associated with the text to be reported. filename - Optional argument identifying the source file for the message. line - Optional argument identifying the source line number for the message. |
|
||
Utility method which can be used to find the most appropriate message manager based on the pref_mgr_id and def_mgr_id.
pref_mgr_id - Used to find the preferred message manager. def_mgr_id - Used to find default message manager if cannot find message manager for pref_mgr_id.
Return values - Handle to the message manager which was found. |
|
||||
Method used to convert from methodology verbosity/severity to client technology verbosity/severity.
methodology_verbosity - Methodology verbosity value that is to be converted. methodology_severity - Methodology severity value that is to be converted. client_verbosity - The client verbosity value corresponding to the methodology verbosity. client_severity - The client severity value corresponding to the methodology severity. | ||||
|
|
||
Method used to get the current client specified verbosity level. Useful for controlling output generation.
Return values - The current client specified verbosity level associated with this message manager. |
|
||||
Method used to remove client specific text or add methodology specific text to an 'in process' display message,
and also to pull out the messageID if provided in the message.
client_message - Client provided message which is to be converted to a methodology message. message_id - The ID extracted from the client message. message - The final message extracted from the client message. | ||||
|
|
||||
Method used to remove client specific text or add methodology specific text to an 'in process' display message.
client_message - Client provided message which is to be converted to a methodology message.
Return values - Message after it has been converted to the current methodology. | ||||
|
|
||||
Method used to convert from client technology verbosity/severity to methodology verbosity/severity.
client_verbosity - Client specified verbosity value that is to be converted. client_severity - Client specified severity value that is to be converted. methodology_verbosity - The methodology verbosity value corresponding to the client provided technology verbosity. methodology_severity - The methodology severity value corresponding to the client provided technology severity. include_prefix - Indicates whether the resulting message should include a prefix. include_newline - Indicates whether the resulting message should be preceded by a carriage return. | ||||
|
|
||
Utility method for getting the name of the message manager.
Return values - The name associated with this message manager. |
|
||
Utility method that can be used to recognize a string argument.
var_typename - The '$typename' value for the argument.
Return values - Indicates whether the var_typename reflects the variable is of type string (1) or not (0). |
|
||||
Utility method that can be used to decide if the client verbosity can be supported.
client_verbosity - Client specified verbosity value that is to be evaluated.
Return values - Indicates whether the client_verbosity corresponds to a support verbosity level (1) or not (0). | ||||
|
|
||
Method used to report information to the transcript through a local message manager.
If the supplied message manager is non-null then this method dispatches the message through that. If the the supplied message manager is null then a message manager is first obtained using find_message_manager, and then the message is dispatched through that. The message manager used is returned through the return value of the function. This can then be used to update the local reference so that the lookup does not need to be performed again.
msg_mgr - Reference to the local message manager pref_mgr_id - ID of the preferred message manager def_mgr_id - ID of the default message manager client_verbosity - Client specified verbosity which defines the output level. client_severity - Client specified severity which helps define the output level. message - Text to be reported. message_id - Optional ID associated with the text to be reported. filename - Optional argument identifying the source file for the message. line - Optional argument identifying the source line number for the message. |
|
||||
|
|
||
Utility method that can be used to replace all '%m' references in the string with an alternative string.
message - Reference to the message including the '%m' values to be replaced. percent_m_replacement - Ths string that is supposed to replace all of the '%m' values in message. |
|
||||
Method used to report information to the transcript.
client_verbosity - Client specified verbosity which defines the output level. client_severity - Client specified severity which helps define the output level. message - Text to be reported. message_id - Optional ID associated with the text to be reported. filename - Optional argument identifying the source file for the message. line - Optional argument identifying the source line number for the message. | ||||
|
|
|
The log associated with this message manager resource. Public so it can be set after message manager creation.
|
|
|
Verbosity level of the associated reporter/log object. This value is set to
the client's default severity when the class is constructed, and then it is
updated when the client's verbosity changes.
|
|
|
Name given to the message manager at construction.
|
|
|
Static svt_message_manager associative array which can be used to access
preferred svt_message_manager instances.
|
|
|
Static default svt_message_manager which can be used when no preferred svt_message_manager is
available.
|