Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template basic_channel_logger

Boost , Chapter 1. Boost.Log v2 , Logging sources

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template basic_channel_logger

boost::log::sources::basic_channel_logger — Channel feature implementation.

Synopsis

// In header: <boost/log/sources/channel_feature.hpp>
template<typename BaseT, typename ChannelT> 
class basic_channel_logger : public BaseT {
public:
  // types
  typedef base_type::char_type                         char_type;          // Character type. 
  typedef base_type::final_type                        final_type;         // Final type. 
  typedef base_type::threading_model                   threading_model;    // Threading model being used. 
  typedef ChannelT                                     channel_type;       // Channel type. 
  typedef attributes::mutable_constant< channel_type > channel_attribute;  // Channel attribute type. 
  typedef unspecified                                  open_record_lock;   // Lock requirement for the open_record_unlocked method. 
  typedef unspecified                                  swap_lock;          // Lock requirement for the swap_unlocked method. 
  // member classes/structs/unions
  // Default channel name generator.
  struct make_default_channel_name {
    // types
    typedef channel_type result_type;
    // public member functions
    result_type operator()() const;
  };
  // construct/copy/destruct
  basic_channel_logger();
  basic_channel_logger(basic_channel_logger const &);
  basic_channel_logger(basic_channel_logger &&);
  template<typename ArgsT> explicit basic_channel_logger(ArgsT const &);
  // public member functions
  channel_type channel() const;
  void channel(channel_type const &);
  // protected member functions
  channel_attribute const & get_channel_attribute() const;
  template<typename ArgsT> record open_record_unlocked(ArgsT const &);
  void swap_unlocked(basic_channel_logger &);
  // private member functions
  template<typename ArgsT, typename T> 
    record open_record_with_channel_unlocked(ArgsT const &, T const &);
  template<typename ArgsT> 
    record open_record_with_channel_unlocked(ArgsT const &, parameter::void_);
};

Description

basic_channel_logger public construct/copy/destruct

  1. Конструктор хранилища. Построенная логера имеет имя канала по умолчанию.

    Default constructor. The constructed logger has the default-constructed channel name.

    [ORIG_END] -->
  2. Конструктор

    Copy constructor

    [ORIG_END] -->
  3. Мощный конструктор

    Move constructor

    [ORIG_END] -->
  4. Конструктор с аргументами. Позволяет зарегистрировать атрибут имени канала при строительстве.

    Параметры:

    args

    Набор названных аргументов. Поддерживаются следующие аргументы:

    • channel - строка, представляющая название канала

      Constructor with arguments. Allows to register a channel name attribute on construction.

      Parameters:

      args

      A set of named arguments. The following arguments are supported:

      • channel - a string that represents the channel name

        [ORIG_END] -->

    basic_channel_logger public member functions

    1. Наблюдатель названия канала

      Возвращение:

      Название канала, которое было установлено регистратором

      The observer of the channel name

      Returns:

      The channel name that was set by the logger

      [ORIG_END] -->
    2. Настройка имени канала

      Параметры:

      ch

      Имя канала для логера

      The setter of the channel name

      Parameters:

      ch

      The channel name to be set for the logger

      [ORIG_END] -->

    basic_channel_logger protected member functions

    1. Дорогие атрибуты

      Channel attribute accessor

      [ORIG_END] -->
    2. Неблокированные open_record

      Unlocked open_record

      [ORIG_END] -->
    3. Неблокированные свопы

      Unlocked swap

      [ORIG_END] -->

    basic_channel_logger private member functions

    1. >>>>>>>>>>>>> >>>>> >>>>>>>>>>>>>>> > >>> >>> >>>>>>>>>>>>>>>.
    2. template<typename ArgsT> запись open_ record_with_channel_unlocked(ArgsT>const & args, параметр.

    PrevUpHomeNext

    Статья Class template basic_channel_logger раздела Chapter 1. Boost.Log v2 Logging sources может быть полезна для разработчиков на c++ и boost.




    Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



    :: Главная :: Logging sources ::


    реклама


    ©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
    Top.Mail.Ru

    Время компиляции файла: 2024-08-30 11:47:00
    2025-05-20 00:20:46/0.0040221214294434/0