Пример #1
0
void com::nealrame::audio::PrintTo (const format &fmt, ::std::ostream *os) {
	*os 	<< "{ "	<< "channels:"
			<< fmt.channel_count() << ", "
			<< "sample_rate: " << fmt.sample_rate() << ", "
			<< "bit_depth: " << fmt.bit_depth() 
		<< " }";
}
Пример #2
0
 inline std::string pretty_function_name_element::visit
 (
  format &f, 
  const log_param_t &log_param
  )
 {
   return f.accept(*this, log_param.m_func_sig);
 }
Пример #3
0
 void consume_trace(format &f, const log_param_t &log_param)
 {
   /* make here check to avoid producing a useless trace */
   if (log_param.m_mask > m_log_mask)
     return ;
   
   qualifier_list_t::const_iterator it = m_qualifier_list.begin();
   bool qualifier_present = false;
   for ( ; !qualifier_present && it !=  m_qualifier_list.end(); ++it)
     qualifier_present = (**it == *log_param.m_qualifier);
   
   if (!qualifier_present)
     return ;
   
   *m_output_stream << f.produce_trace(log_param) << std::flush;
 }
Пример #4
0
	bool format::operator == (const format & format_)const
	{
		return native_equals(format_.get_native_format());
	}
Пример #5
0
 inline std::string scope_element::visit(format &f, 
                                         const log_param_t &log_param)
 {
   return f.accept(*this, log_param.m_scope);
 }
Пример #6
0
//  Element functions definition ---------------------------------------------//
  inline std::string log_element::visit(format &f, 
                                        const log_param_t &log_param)
  {
    return f.accept(*this);
  }
Пример #7
0
 PoseGraphException (const format& error_string) : std::logic_error(error_string.str()) {};
Пример #8
0
 void logger::verb(const format &fmt)
 {
     verb(fmt.str());
 }
Пример #9
0
 void logger::info(const format &fmt)
 {
     info(fmt.str());
 }
Пример #10
0
 void logger::warn(const format &fmt)
 {
     warn(fmt.str());
 }
Пример #11
0
 void logger::error(const format &fmt)
 {
     error(fmt.str());
 }
Пример #12
0
 inline void print_ast(std::basic_ostream<CharT, Traits>& out, format const& fmt, unsigned indent = 4)
 {
     detail::ast_printer<CharT, Traits> visitor{out, 0, indent};
     for (auto const& content : fmt.contents())
         apply_visitor(visitor, content);
 }