#include <zorba/internal/diagnostic.h>

Public Types | |
| typedef params_type::size_type | size_type |
| typedef params_type::value_type | value_type |
Public Member Functions | |
| template<typename T > | |
| parameters & | operator, (T const &t) |
| Adds the string representation of the given object as the next parameter. More... | |
| value_type const & | operator[] (size_type i) const |
| Gets the i'th parameter value. More... | |
| parameters () | |
| Constructs a parameters object. More... | |
| void | substitute (value_type *s) const |
| Substitutes substrings of the given string. More... | |
Static Public Attributes | |
| static parameters const | empty |
| A empty instance for convenience. More... | |
Definition at line 211 of file internal/diagnostic.h.
| typedef params_type::size_type zorba::internal::diagnostic::parameters::size_type |
Definition at line 215 of file internal/diagnostic.h.
| typedef params_type::value_type zorba::internal::diagnostic::parameters::value_type |
Definition at line 214 of file internal/diagnostic.h.
| zorba::internal::diagnostic::parameters::parameters | ( | ) |
Constructs a parameters object.
|
inline |
Adds the string representation of the given object as the next parameter.
| T | The object type. |
| t | The object. |
*this. Definition at line 235 of file internal/diagnostic.h.
References zorba::internal::ztd::to_string().
|
inline |
Gets the i'th parameter value.
Parameter numbers start at 1.
| i | The parameter to get. |
Definition at line 247 of file internal/diagnostic.h.
| void zorba::internal::diagnostic::parameters::substitute | ( | value_type * | s | ) | const |
Substitutes substrings of the given string.
There are two forms:
$i${chars i chars}where i is an integer in the range [1,9] and chars are any characters except [1-9}].
The second form elides the addition characacters if the value of the ith parameter is empty. For example, ${"1"} will substitute the value of the 1st parameter quoted if non-empty; if empty, the entire substitution set of characters (everything from the $ to the }) will be elided.
| s | The string to perform the substitutions on. |
|
static |
A empty instance for convenience.
Definition at line 220 of file internal/diagnostic.h.