![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
UtilitiesBoost , Chapter 1. Boost.Log v2 , Reference
|
![]() | Note |
---|---|
В случае, если аргументы являются интегральными, преобразование выполняется согласно стандартным правилам C++, чтобы избежать предупреждений от компилятора. |
namespace boost { namespace log { struct equal_to; struct not_equal_to; struct less; struct greater; struct less_equal; struct greater_equal; } }
Андрей Семашев
30.03.2008
Этот заголовок содержит предикат для проверки, соответствует ли предоставленная строка обычному выражению.
namespace boost { namespace log { struct matches_fun; } }
Андрей Семашев
30.03.2008
Этот заголовок содержит объект функции, который ничего не делает.
namespace boost { namespace log { struct nop; } }
Андрей Семашев
19.01.2013
Этот заголовок содержит адаптер объекта функции, который сохраняет результат принятой функции для внешней переменной.
namespace boost { namespace log { template<typename FunT, typename AssigneeT> struct save_result_wrapper; template<typename FunT, typename AssigneeT> save_result_wrapper< FunT, AssigneeT > save_result(FunT const &, AssigneeT &); } }
Андрей Семашев
05.03.2016
Заголовок содержит объявление обертки имени системного объекта.
namespace boost { namespace log { namespace ipc { class object_name; } } }
Лингси Ли
Андрей Семашев
01.01.2016
Заголовок содержит объявление надежной очереди сообщений между процессами.
namespace boost { namespace log { namespace ipc { class reliable_message_queue; } } }
Андрей Семашев
06.11.2012
Этот заголовок включает в себя все манипуляторы.
Андрей Семашев
26.11.2012
Этот заголовок содержит манипулятор<add_value
>.
namespace boost { namespace log { template<typename RefT> class add_value_manip; template<typename CharT, typename RefT> basic_record_ostream< CharT > & operator<<(basic_record_ostream< CharT > &, add_value_manip< RefT > const &); template<typename T> add_value_manip< T && > add_value(attribute_name const &, T &&); template<typename DescriptorT, template< typename > class ActorT> add_value_manip< typename DescriptorT::value_type && > add_value(expressions::attribute_keyword< DescriptorT, ActorT > const &, typename DescriptorT::value_type &&); template<typename DescriptorT, template< typename > class ActorT> add_value_manip< typename DescriptorT::value_type & > add_value(expressions::attribute_keyword< DescriptorT, ActorT > const &, typename DescriptorT::value_type &); template<typename DescriptorT, template< typename > class ActorT> add_value_manip< typename DescriptorT::value_type const & > add_value(expressions::attribute_keyword< DescriptorT, ActorT > const &, typename DescriptorT::value_type const &); } }
Андрей Семашев
03.05.2013
Этот заголовок содержит<dump
>выходной манипулятор.
namespace boost { namespace log { class dump_manip; class bounded_dump_manip; template<typename CharT, typename TraitsT> std::basic_ostream< CharT, TraitsT > & operator<<(std::basic_ostream< CharT, TraitsT > &, dump_manip const &); template<typename CharT, typename TraitsT> std::basic_ostream< CharT, TraitsT > & operator<<(std::basic_ostream< CharT, TraitsT > &, bounded_dump_manip const &); template<typename T> unspecified dump(T *, std::size_t); template<typename T> dump_manip dump_elements(T *, std::size_t); template<typename T> unspecified dump(T *, std::size_t, std::size_t); template<typename T> bounded_dump_manip dump_elements(T *, std::size_t, std::size_t); } }
Андрей Семашев
06.11.2012
Этот заголовок содержит<to_log
>выходной манипулятор.
namespace boost { namespace log { template<typename T, typename TagT = void> class to_log_manip; template<typename StreamT, typename T, typename TagT> unspecified operator<<(StreamT &, to_log_manip< T, TagT >); template<typename T> to_log_manip< T > to_log(T const &); template<typename TagT, typename T> to_log_manip< T, TagT > to_log(T const &); } }
Заголовок определяет классы и макросы для разовых блоков.
Андрей Семашев
23.06.2010
BOOST_LOG_ONCE_BLOCK_INIT BOOST_LOG_ONCE_BLOCK_FLAG(flag_var) BOOST_LOG_ONCE_BLOCK()
namespace boost { namespace log { struct once_block_flag; } }
Андрей Семашев
01.01.2016
Заголовок определяет режимы открытия ресурсов.
namespace boost { namespace log { namespace open_mode { struct create_only_tag; struct open_only_tag; struct open_or_create_tag; struct boost::log::open_mode::create_only_tag create_only; struct boost::log::open_mode::open_only_tag open_only; struct boost::log::open_mode::open_or_create_tag open_or_create; } } }
Лингси Ли
Андрей Семашев
14.10.2015
Заголовок содержит обертку абстракции для разрешений безопасности.
namespace boost { namespace interprocess { } namespace log { class permissions; } }
Андрей Семашев
23.08.2009
Этот заголовок содержит предикаты заказа для регистрации записей.
namespace boost { namespace log { template<typename FunT = less> class abstract_ordering; template<typename ValueT, typename FunT = less> class attribute_value_ordering; template<typename ValueT, typename FunT> attribute_value_ordering< ValueT, FunT > make_attr_ordering(attribute_name const &, FunT const &); template<typename FunT> unspecified make_attr_ordering(attribute_name const &, FunT const &); } }
Андрей Семашев
16.02.2013
Этот заголовок включает в себя все помощники по настройке библиотеки.
Андрей Семашев
16.05.2008
Заголовок содержит реализацию функций удобства для регистрации обычно используемых атрибутов.
namespace boost { namespace log { void add_common_attributes(); } }
Андрей Семашев
16.05.2008
Заголовок содержит реализацию функций удобства для обеспечения возможности входа в консоль.
namespace boost { namespace log { template<typename CharT, typename... ArgsT> shared_ptr< sinks::synchronous_sink< sinks::basic_text_ostream_backend< CharT > >> add_console_log(std::basic_ostream< CharT > &, ArgsT...const &); template<typename CharT, typename... ArgsT> shared_ptr< sinks::synchronous_sink< sinks::basic_text_ostream_backend< CharT > >> add_console_log(ArgsT...const &); shared_ptr< sinks::synchronous_sink< sinks::text_ostream_backend >> add_console_log(); shared_ptr< sinks::synchronous_sink< sinks::wtext_ostream_backend >> wadd_console_log(); } }
Андрей Семашев
16.05.2008
Заголовок содержит реализацию функций удобства для включения входа в файл.
namespace boost { namespace log { template<typename... ArgsT> shared_ptr< sinks::synchronous_sink< sinks::text_file_backend > > add_file_log(ArgsT...const &); } }
Андрей Семашев
31.03.2008
Заголовок содержит определение функции парсера фильтра.
namespace boost { namespace log { template<typename CharT> struct filter_factory; template<typename CharT, typename AttributeValueT> class basic_filter_factory; template<typename CharT> void register_filter_factory(attribute_name const &, shared_ptr< filter_factory< CharT > > const &); template<typename FactoryT> boost::enable_if_c< is_base_and_derived< filter_factory< typename FactoryT::char_type >, FactoryT >::value >::type register_filter_factory(attribute_name const &, shared_ptr< FactoryT > const &); template<typename AttributeValueT, typename CharT> void register_simple_filter_factory(attribute_name const &); template<typename AttributeValueT> void register_simple_filter_factory(attribute_name const &); template<typename CharT, typename DescriptorT, template< typename > class ActorT> void register_simple_filter_factory(expressions::attribute_keyword< DescriptorT, ActorT > const &); template<typename CharT> filter parse_filter(const CharT *, const CharT *); template<typename CharT, typename TraitsT, typename AllocatorT> filter parse_filter(std::basic_string< CharT, TraitsT, AllocatorT > const &); template<typename CharT> filter parse_filter(const CharT *); } }
Андрей Семашев
07.04.2008
Заголовок содержит определение функции парсера форматтера, а также возможности для добавления поддержки пользовательских форматтеров.
namespace boost { namespace log { template<typename CharT> struct formatter_factory; template<typename CharT, typename AttributeValueT> class basic_formatter_factory; template<typename CharT> void register_formatter_factory(attribute_name const &, shared_ptr< formatter_factory< CharT > > const &); template<typename FactoryT> boost::enable_if_c< is_base_and_derived< formatter_factory< typename FactoryT::char_type >, FactoryT >::value >::type register_formatter_factory(attribute_name const &, shared_ptr< FactoryT > const &); template<typename AttributeValueT, typename CharT> void register_simple_formatter_factory(attribute_name const &); template<typename CharT> basic_formatter< CharT > parse_formatter(const CharT *, const CharT *); template<typename CharT, typename TraitsT, typename AllocatorT> basic_formatter< CharT > parse_formatter(std::basic_string< CharT, TraitsT, AllocatorT > const &); template<typename CharT> basic_formatter< CharT > parse_formatter(const CharT *); } }
Андрей Семашев
11.10.2009
Заголовок содержит определение средств, позволяющих инициализировать библиотеку из настроек.
namespace boost { namespace log { template<typename CharT> struct sink_factory; template<typename CharT> void init_from_settings(basic_settings_section< CharT > const &); template<typename CharT> void register_sink_factory(const char *, shared_ptr< sink_factory< CharT > > const &); template<typename CharT> void register_sink_factory(std::string const &, shared_ptr< sink_factory< CharT > > const &); template<typename FactoryT> boost::enable_if_c< is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >::value >::type register_sink_factory(const char *, shared_ptr< FactoryT > const &); template<typename FactoryT> boost::enable_if_c< is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >::value >::type register_sink_factory(std::string const &, shared_ptr< FactoryT > const &); } }
Андрей Семашев
22.03.2008
Заголовок содержит определение средств, позволяющих инициализировать библиотеку из файла настроек.
namespace boost { namespace log { template<typename CharT> void init_from_stream(std::basic_istream< CharT > &); } }
Андрей Семашев
11.10.2009
Заголовок содержит определение контейнера настроек библиотеки.
namespace boost { namespace log { template<typename CharT> class basic_settings_section; template<typename CharT> class basic_settings; typedef basic_settings< char > settings; // Convenience typedef for narrow-character logging. typedef basic_settings_section< char > settings_section; // Convenience typedef for narrow-character logging. typedef basic_settings< wchar_t > wsettings; // Convenience typedef for wide-character logging. typedef basic_settings_section< wchar_t > wsettings_section; // Convenience typedef for wide-character logging. template<typename CharT> void swap(basic_settings_section< CharT > &, basic_settings_section< CharT > &); } }
Андрей Семашев
20.07.2012
Заголовок содержит определение функции парсера параметров.
namespace boost { namespace log { template<typename CharT> basic_settings< CharT > parse_settings(std::basic_istream< CharT > &); } }
Андрей Семашев
30.05.2010
Заголовок содержит определение метафункции<strictest_lock
>, которая позволяет выбрать блокировку с самыми строгими требованиями доступа.
namespace boost { namespace log { template<typename LockT> struct thread_access_mode_of; template<typename MutexT> struct thread_access_mode_of<no_lock< MutexT >>; template<typename MutexT> struct thread_access_mode_of<lock_guard< MutexT >>; template<typename MutexT> struct thread_access_mode_of<shared_lock_guard< MutexT >>; template<typename MutexT> struct thread_access_mode_of<unique_lock< MutexT >>; template<typename MutexT> struct thread_access_mode_of<shared_lock< MutexT >>; template<typename MutexT> struct thread_access_mode_of<upgrade_lock< MutexT >>; template<typename MutexT> struct thread_access_mode_of<boost::log::aux::exclusive_lock_guard< MutexT >>; template<typename MutexT> struct thread_access_mode_of<boost::log::aux::shared_lock_guard< MutexT >>; template<typename... LocksT> struct strictest_lock; // Access modes for different types of locks. enum lock_access_mode { unlocked_access, shared_access, exclusive_access }; } }
Андрей Семашев
24.06.2007
Заголовок содержит реализацию постоянной струнной буквальной обертки.
namespace boost { namespace log { template<typename CharT, typename TraitsT> class basic_string_literal; template<typename CharT, typename StrmTraitsT, typename LitTraitsT> std::basic_ostream< CharT, StrmTraitsT > & operator<<(std::basic_ostream< CharT, StrmTraitsT > &, basic_string_literal< CharT, LitTraitsT > const &); template<typename CharT, typename TraitsT> constexpr void swap(basic_string_literal< CharT, TraitsT > &, basic_string_literal< CharT, TraitsT > &); template<typename T, std::size_t LenV> constexpr basic_string_literal< T > str_literal(T(&)); } }
Андрей Семашев
24.06.2007
Заголовок содержит прямое объявление постоянной струнной буквальной обертки.
namespace boost { namespace log { typedef basic_string_literal< char > string_literal; // String literal type for narrow characters. typedef basic_string_literal< wchar_t > wstring_literal; // String literal type for wide characters. } }
Андрей Семашев
13.03.2008
Заголовок содержит определение типов даты и времени, поддерживаемых библиотекой по умолчанию.
BOOST_LOG_NATIVE_DATE_TIME_TYPES() BOOST_LOG_NATIVE_DATE_TYPES() BOOST_LOG_BOOST_DATE_TIME_TYPES() BOOST_LOG_DATE_TIME_TYPES() BOOST_LOG_BOOST_DATE_TYPES() BOOST_LOG_DATE_TYPES() BOOST_LOG_NATIVE_TIME_DURATION_TYPES() BOOST_LOG_BOOST_TIME_DURATION_TYPES() BOOST_LOG_TIME_DURATION_TYPES() BOOST_LOG_BOOST_TIME_PERIOD_TYPES() BOOST_LOG_TIME_PERIOD_TYPES()
namespace boost { namespace log { typedef mpl::vector<> native_date_time_types; typedef mpl::vector<> boost_date_time_types; typedef mpl::vector<> date_time_types; typedef native_date_time_types native_date_types; typedef mpl::vector<> boost_date_types; typedef mpl::vector<> date_types; typedef native_date_time_types native_time_types; typedef boost_date_time_types boost_time_types; // An MPL-sequence of Boost time types. typedef date_time_types time_types; typedef mpl::vector<> native_time_duration_types; typedef mpl::vector<> boost_time_duration_types; typedef mpl::vector<> time_duration_types; typedef mpl::vector<> boost_time_period_types; typedef boost_time_period_types time_period_types; } }
Андрей Семашев
15.04.2007
Заголовок содержит реализацию диспетчера типа выполнения.
namespace boost { namespace log { class dynamic_type_dispatcher; } }
Андрей Семашев
19.05.2007
Заголовок содержит определение стандартных типов, поддерживаемых библиотекой по умолчанию.
BOOST_LOG_AUX_STANDARD_TYPE_WCHAR_T() BOOST_LOG_AUX_STANDARD_TYPE_CHAR16_T() BOOST_LOG_AUX_STANDARD_TYPE_CHAR32_T() BOOST_LOG_STANDARD_CHAR_TYPES() BOOST_LOG_AUX_STANDARD_LONG_LONG_TYPES() BOOST_LOG_STANDARD_INTEGRAL_TYPES() BOOST_LOG_STANDARD_FLOATING_POINT_TYPES() BOOST_LOG_STANDARD_ARITHMETIC_TYPES() BOOST_LOG_AUX_STANDARD_STRING_TYPES() BOOST_LOG_AUX_STANDARD_WSTRING_TYPES() BOOST_LOG_STANDARD_STRING_TYPES() BOOST_LOG_DEFAULT_ATTRIBUTE_VALUE_TYPES()
namespace boost { namespace log { typedef mpl::vector<> integral_types; typedef mpl::vector<> floating_point_types; typedef mpl::vector<> arithmetic_types; typedef arithmetic_types numeric_types; // Deprecated alias. typedef mpl::vector<> string_types; typedef default_attribute_value_types default_attribute_types; // Deprecated alias. typedef BOOST_PP_CAT(mpl::vector, BOOST_PP_SEQ_SIZE((bool)(signed char)(unsigned char)(short)(unsigned short)(int)(unsigned int)(long)(unsigned long)(char)(wchar_t)(char16_t)(char32_t)(float)(double)(long double)(std::string)(boost::log::string_literal)(std::wstring)(boost::log::wstring_literal))); } }
Андрей Семашев
15.04.2007
Заголовок содержит реализацию диспетчера типа компиляции-времени.
namespace boost { namespace log { template<typename T> class static_type_dispatcher; } }
Андрей Семашев
15.04.2007
Заголовок содержит определение общих типов диспетчерских интерфейсов.
namespace boost { namespace log { class type_dispatcher; } }
Андрей Семашев
15.04.2007
Заголовок содержит реализацию обертки информации типа.
namespace boost { namespace log { class type_info_wrapper; bool operator!=(type_info_wrapper const &, type_info_wrapper const &); bool operator<=(type_info_wrapper const &, type_info_wrapper const &); bool operator>(type_info_wrapper const &, type_info_wrapper const &); bool operator>=(type_info_wrapper const &, type_info_wrapper const &); void swap(type_info_wrapper &, type_info_wrapper &); std::string to_string(type_info_wrapper const &); } }
Андрей Семашев
30.04.2008
Заголовок содержит<BOOST_LOG_UNIQUE_IDENTIFIER_NAME
>макроопределение.
BOOST_LOG_UNIQUE_IDENTIFIER_NAME(prefix)
Андрей Семашев
10.05.2008
Заголовок содержит определение макроса для подавления предупреждений компилятора о неиспользуемых переменных.
BOOST_LOG_UNUSED_VARIABLE(type, var, initializer)
Андрей Семашев
27.07.2012
Заголовок содержит реализацию обертки отсчета значений.
namespace boost { namespace log { template<typename T, typename TagT> void swap(value_ref< T, TagT > &, value_ref< T, TagT > &); template<typename CharT, typename TraitsT, typename T, typename TagT> std::basic_ostream< CharT, TraitsT > & operator<<(std::basic_ostream< CharT, TraitsT > &, value_ref< T, TagT > const &); template<typename CharT, typename TraitsT, typename AllocatorT, typename T, typename TagT> basic_formatting_ostream< CharT, TraitsT, AllocatorT > & operator<<(basic_formatting_ostream< CharT, TraitsT, AllocatorT > &, value_ref< T, TagT > const &); template<typename T, typename TagT, typename U> bool operator==(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator==(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator==(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); template<typename T, typename TagT, typename U> bool operator!=(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator!=(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator!=(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); template<typename T, typename TagT, typename U> bool operator<(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator<(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator<(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); template<typename T, typename TagT, typename U> bool operator>(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator>(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator>(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); template<typename T, typename TagT, typename U> bool operator<=(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator<=(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator<=(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); template<typename T, typename TagT, typename U> bool operator>=(value_ref< T, TagT > const &, U const &); template<typename U, typename T, typename TagT> bool operator>=(U const &, value_ref< T, TagT > const &); template<typename T1, typename TagT1, typename T2, typename TagT2> bool operator>=(value_ref< T1, TagT1 > const &, value_ref< T2, TagT2 > const &); } }
Андрей Семашев
27.07.2012
Заголовок содержит переднюю декларацию обертки с указанием значения.
namespace boost { namespace log { template<typename T, typename TagT = void> class value_ref; } }
Статья Utilities раздела Chapter 1. Boost.Log v2 Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
реклама |