<< err_area_t
 Top   Types   Functions   Classes   Index   Sources 
err_msg_info_t >>

struct err_location_t / err_location_t

Concrete Class


Members

err_location_t(err_area_t const &)
err_location_t(err_position_t const &)
err_location_t(err_address_t)
err_location_t(err_ext_address_t const &)
err_location_t(err_ext_address_t const *)
err_location_t(char const * = NULL, int, int)
err_location_t(err_position_t const &, err_position_t const &)
err_location_t(err_area_t const &, err_area_t const &)
err_location_t(err_location_t const &)
~err_location_t()
operator err_area_t const &() const
operator err_area_t const *() const
operator err_location_t const *() const
operator err_position_t const &() const
operator err_position_t const *() const
voidoperator=(err_position_t const &)
voidoperator=(err_area_t const &)
voidoperator=(err_location_t const &)
err_position_t &free_orig()
err_area_t &free_upto()
err_area_there
err_location_t *next_loc
err_area_torig
err_location_t &originally(char const * a, int b, int c)
err_location_t &originally(int a, int b)
err_location_t &originally(err_address_t a)
ErrLocationPrinterprint_next
err_location_t &set_next(err_location_t const *, ErrLocationPrinter)
err_location_t &upto(char const * a, int b, int c)
err_location_t &upto(int a, int b)
err_location_t &upto(err_address_t a)
boolvalid() const


Detailed Descriptions


err_area_t here

C++: err_area_t err_location_t::here
Declaration  ]


err_area_t orig

C++: err_area_t err_location_t::orig

original position (e.g. found by #line directives)

more complex error locations have to be modelled by several invocations of eprintf(C_TAG_MORE, ...) or by the extension mechanism using next_loc and print_next. See set_next().

Declaration  ]


err_location_t * next_loc

C++: err_location_t * err_location_t::next_loc
Declaration  ]


ErrLocationPrinter print_next

C++: ErrLocationPrinter err_location_t::print_next

extension mechanism: if next_loc is != NULL, if is appended to messages and print_next is invoked to print a text that describes that other location.

Always use set_next() to set these.

Note that next_loc is automatically properly copied.

Declaration  ]


[constructor] err_location_t (err_area_t const &)

C++: err_location_t::err_location_t (err_area_t const &)

To set the primary position (either an address or an explicit area):

Declaration  ]


[constructor] err_location_t (err_position_t const &)

C++: err_location_t::err_location_t (err_position_t const &)
Declaration  ]


[constructor] err_location_t (err_address_t)

C++: err_location_t::err_location_t (ERWIN_UNSIGNED_LONG_LONG)
Declaration  ]


[constructor] err_location_t (err_ext_address_t const &)

C++: err_location_t::err_location_t (err_ext_address_t const &)
Declaration  ]


[constructor] err_location_t (err_ext_address_t const *)

C++: err_location_t::err_location_t (err_ext_address_t const *)
Declaration  ]


[constructor] err_location_t (char const * = NULL, int, int)

C++: err_location_t::err_location_t (char const * = NULL, int, int)

An error location is actually an error area. You can define the start here and add the end using upto(). Further, you can add the original position by using originally(...).upto().

Declaration  ]


[constructor] err_location_t (err_position_t const &, err_position_t const &)

C++: err_location_t::err_location_t (err_position_t const &, err_position_t const &)

To set both at the same time, start and end, use this.

Declaration  ]


[constructor] err_location_t (err_area_t const &, err_area_t const &)

C++: err_location_t::err_location_t (err_area_t const &, err_area_t const &)

To set both, the normal and the original position.

Declaration  ]


err_area_t & free_upto ()

C++: err_area_t & err_location_t::free_upto ()

The following upto() functions change the original location if that is valid, and the normal location otherwise. Therefore, you can use a sequence of member calls like the following: ErrLocation(...).upto(...).originally(...).upto(...) this also works: ErrLocation(...).originally(...).upto(...).originally() If that scheme is not enough for your application, you need to add more calls to eprintf(C_TAG_MORE, ...).

Declaration & Source  ]


err_position_t & free_orig ()

C++: err_position_t & err_location_t::free_orig ()
Declaration & Source  ]


err_location_t & upto (char const * a, int b, int c)

C++: err_location_t & err_location_t::upto (char const * a, int b, int c)
Declaration & Source  ]


err_location_t & upto (int a, int b)

C++: err_location_t & err_location_t::upto (int a, int b)

Upto in the same file (pos must be given so that this constructor can be distinguished from the following one

Declaration & Source  ]


err_location_t & upto (err_address_t a)

C++: err_location_t & err_location_t::upto (ERWIN_UNSIGNED_LONG_LONG a)
Declaration & Source  ]


err_location_t & originally (char const * a, int b, int c)

C++: err_location_t & err_location_t::originally (char const * a, int b, int c)
Declaration & Source  ]


err_location_t & originally (int a, int b)

C++: err_location_t & err_location_t::originally (int a, int b)
Declaration & Source  ]


err_location_t & originally (err_address_t a)

C++: err_location_t & err_location_t::originally (ERWIN_UNSIGNED_LONG_LONG a)
Declaration & Source  ]


err_location_t & set_next (err_location_t const *, ErrLocationPrinter)

C++: err_location_t & err_location_t::set_next (err_location_t const *, ErrLocationPrinter)

returns the pointer to the internal copy

Declaration  ]


[constructor] err_location_t (err_location_t const &)

C++: err_location_t::err_location_t (err_location_t const &)
Declaration  ]


void operator= (err_position_t const &)

C++: void err_location_t::operator= (err_position_t const &)

for msvc 6.0 which does not find the conversion

Declaration  ]


void operator= (err_area_t const &)

C++: void err_location_t::operator= (err_area_t const &)

for msvc 6.0 which does not find the conversion

Declaration  ]


void operator= (err_location_t const &)

C++: void err_location_t::operator= (err_location_t const &)
Declaration  ]


[destructor] ~err_location_t ()

C++: err_location_t::~err_location_t ()
Declaration  ]


operator err_position_t const * () const

C++: err_location_t::operator err_position_t const * () const
Declaration & Source  ]


operator err_position_t const & () const

C++: err_location_t::operator err_position_t const & () const
Declaration & Source  ]


operator err_area_t const * () const

C++: err_location_t::operator err_area_t const * () const
Declaration & Source  ]


operator err_area_t const & () const

C++: err_location_t::operator err_area_t const & () const
Declaration & Source  ]


operator err_location_t const * () const

C++: err_location_t::operator err_location_t const * () const
Declaration & Source  ]


bool valid () const

C++: bool err_location_t::valid () const
Declaration & Source  ]


Occurrences of err_location_t

voiderr_abort(int tag, int orig_tag, int number, err_location_t const *, char const * text)
err_location_t *err_at_address(err_address_t)
err_location_t *err_at_ext_address(err_ext_address_t const *)
err_location_t *err_at_position(char const *, int, int)
voiderr_exit_1(int tag, int orig_tag, int number, err_location_t const *, char const * text)
err_location_t *err_in_file(char const *)
err_location_t *err_in_line(char const *, int)
err_location_t *err_location_copy(err_location_t const *)
voiderr_location_delete(err_location_t *)
err_location_t *err_originally_at_address(err_location_t *, err_address_t)
err_location_t *err_originally_at_ext_address(err_location_t *, err_ext_address_t const *)
err_location_t *err_originally_at_position(err_location_t *, char const *, int, int)
err_location_t *err_originally_in_file(err_location_t *, err_location_t *, char const *)
err_location_t *err_originally_in_line(err_location_t *, char const *, int)
err_location_t const *err_resolve_address(int tag, int orig_tag, int number, err_location_t const *)
err_location_t *err_set_next_loc(err_location_t *, err_location_t const *, err_location_printer_t)
voiderr_set_next_location(err_location_t const *)
voiderr_style_colon_format(err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
interr_style_colon_format_address_range(err_markup_t * markup, err_formatted_stream_t * stream, err_v_char_t *, int tag, int orig_tag, err_location_t const *)
voiderr_style_colon_format_marked_up(err_markup_t * markup, err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
voiderr_style_default_format(err_formatted_stream_t *, err_v_char_t *, int, int, int, err_msg_info_t, err_location_t const *, char const *, char const *, int, char const *)
voiderr_style_none_format(err_formatted_stream_t *, err_v_char_t *, int, int, int, err_msg_info_t, err_location_t const *, char const *, char const *, int, char const *)
voiderr_style_plain_format(err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
voiderr_style_plain_format_marked_up(err_markup_t * markup, err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
voiderr_style_qt3_format(err_formatted_stream_t *, err_v_char_t *, int, int, int, err_msg_info_t, err_location_t const *, char const *, char const *, int, char const *)
voiderr_style_qt_format(err_formatted_stream_t *, err_v_char_t *, int, int, int, err_msg_info_t, err_location_t const *, char const *, char const *, int, char const *)
voiderr_style_quotes_format(err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
interr_style_quotes_format_address_range(err_markup_t * markup, err_formatted_stream_t * stream, err_v_char_t *, int tag, int orig_tag, err_location_t const *)
voiderr_style_quotes_format_marked_up(err_markup_t * markup, err_formatted_stream_t *, err_v_char_t * target, int tag, int orig_tag, int orig_number, err_msg_info_t, err_location_t const * location, char const * progname, char const * hostname, int pid, char const * text)
voiderr_style_simple_format(err_formatted_stream_t *, err_v_char_t *, int, int, int, err_msg_info_t, err_location_t const *, char const *, char const *, int, char const *)
err_location_t *err_upto_address(err_location_t *, err_address_t)
err_location_t *err_upto_ext_address(err_location_t *, err_ext_address_t const *)
err_location_t *err_upto_file(err_location_t *, char const *)
err_location_t *err_upto_line(err_location_t *, char const *, int)
err_location_t *err_upto_position(err_location_t *, char const *, int, int)
intleprintf(int tag, int number, err_location_t const *, char const *, ...)
voidleprintf_devel(int tag, int number, err_location_t const *, char const *, ...)
intoleprintf(int tag, int number, int options, err_location_t const *, char const *, ...)
voidoleprintf_devel(int tag, int number, int options, err_location_t const *, char const *, ...)
intqleprintf(int tag, int number, err_location_t const *, char const *, ...)
voidqleprintf_devel(int tag, int number, err_location_t const *, char const *, ...)
intvleprintf(int tag, int number, err_location_t const *, char const *, va_list)
voidvleprintf_devel(int tag, int number, err_location_t const *, char const *, va_list)
intvoleprintf(int tag, int number, int options, err_location_t const *, char const *, va_list)
voidvoleprintf_devel(int tag, int number, int options, err_location_t const *, char const *, va_list)
intvqleprintf(int tag, int number, err_location_t const *, char const *, va_list)
voidvqleprintf_devel(int tag, int number, err_location_t const *, char const *, va_list)
err_location_t::err_location_t(err_area_t const &)
err_location_t::err_location_t(err_position_t const &)
err_location_t::err_location_t(err_address_t)
err_location_t::err_location_t(err_ext_address_t const &)
err_location_t::err_location_t(err_ext_address_t const *)
err_location_t::err_location_t(char const * = NULL, int, int)
err_location_t::err_location_t(err_position_t const &, err_position_t const &)
err_location_t::err_location_t(err_area_t const &, err_area_t const &)
err_location_t::err_location_t(err_location_t const &)
err_position_t::operator err_location_t const *() const
err_area_t::operator err_location_t const *() const
err_location_t::operator err_location_t const *() const
voiderr_position_t::operator=(err_location_t const &)
voiderr_area_t::operator=(err_location_t const &)
voiderr_location_t::operator=(err_location_t const &)
void(* err_style_t::format)(err_formatted_stream_t * stream, err_v_char_t * target, int tag, int orig_tag, int orig_num, err_msg_info_t info, err_location_t const * loc, char const * progname, char const * hostname, int pid, char const * text)
err_location_t *err_location_t::next_loc
err_location_t &err_location_t::originally(char const * a, int b, int c)
err_location_t &err_location_t::originally(int a, int b)
err_location_t &err_location_t::originally(err_address_t a)
err_location_t &err_location_t::set_next(err_location_t const *, ErrLocationPrinter)
err_location_t &err_location_t::upto(char const * a, int b, int c)
err_location_t &err_location_t::upto(int a, int b)
err_location_t &err_location_t::upto(err_address_t a)

Index

Stoppt die Vorratsdatenspeicherung
November 26th, 2007
Comments? Suggestions? Corrections? You can drop me a line.
zpentrabvagiktu@theiling.de
Schwerpunktpraxis