Boost C++ Libraries

PrevUpHomeNext

Struct template basic_named_scope_entry

boost::log::attributes::basic_named_scope_entry — The structure contains all information about a named scope.

Synopsis

// In header: <boost/log/attributes/named_scope.hpp>

template<typename CharT> 
struct basic_named_scope_entry {
  // types
  typedef CharT char_type;  // Character type. 

  // construct/copy/destruct
  basic_named_scope_entry(basic_string_literal< char_type > const &, 
                          basic_string_literal< char_type > const &, 
                          unsigned int);

  // public data members
  basic_string_literal< char_type > scope_name;
  basic_string_literal< char_type > file_name;
  unsigned int line;
};

Description

The named scope entries are stored as elements of basic_named_scope_list container, which in turn can be acquired either from the basic_named_scope attribute value or from a thread-local instance.

basic_named_scope_entry public construct/copy/destruct

  1. basic_named_scope_entry(basic_string_literal< char_type > const & sn, 
                            basic_string_literal< char_type > const & fn, 
                            unsigned int ln);

    Initializing constructor

    Throws: Nothing.

    Postconditions:

    scope_name == sn && file_name == fn && line == ln

basic_named_scope_entry public public data members

  1. basic_string_literal< char_type > scope_name;

    The scope name (e.g. a function signature)

  2. basic_string_literal< char_type > file_name;

    The source file name

  3. unsigned int line;

    The line number in the source file


PrevUpHomeNext