xml_output.cpp File Reference

#include <sstream>
#include <iostream>
#include "op_xml_out.h"
#include "xml_output.h"
Include dependency graph for xml_output.cpp:

Go to the source code of this file.

Defines

#define MAX_XML_BUF   16384

Functions

string tag_name (tag_t tag)
string open_element (tag_t tag, bool with_attrs)
string close_element (tag_t tag, bool has_nested)
string init_attr (tag_t attr, size_t value)
string init_attr (tag_t attr, double value)
string init_attr (tag_t attr, string const &str)

Variables

static char buf [MAX_XML_BUF]

Detailed Description

utility routines for writing XML

Remarks:
Copyright 2006 OProfile authors
Read the file COPYING
Author:
Dave Nomura

Definition in file xml_output.cpp.


Define Documentation

#define MAX_XML_BUF   16384

Definition at line 19 of file xml_output.cpp.

Referenced by close_element(), init_attr(), and open_element().


Function Documentation

string close_element ( tag_t  tag,
bool  has_nested 
)

Definition at line 41 of file xml_output.cpp.

References buf, close_xml_element(), and MAX_XML_BUF.

Referenced by xml_utils::get_timer_setup(), process_info::output(), thread_info::output(), binary_info::output(), module_info::output(), and format_output::xml_formatter::output_symbol_details().

Here is the call graph for this function:

Here is the caller graph for this function:

string init_attr ( tag_t  attr,
string const &  str 
)

Definition at line 74 of file xml_output.cpp.

References buf, init_xml_str_attr(), and MAX_XML_BUF.

Here is the call graph for this function:

string init_attr ( tag_t  attr,
double  value 
)

Definition at line 63 of file xml_output.cpp.

References buf, init_xml_dbl_attr(), and MAX_XML_BUF.

Here is the call graph for this function:

string init_attr ( tag_t  attr,
size_t  value 
)

Definition at line 52 of file xml_output.cpp.

References buf, init_xml_int_attr(), and MAX_XML_BUF.

Referenced by xml_utils::add_option(), xml_utils::get_timer_setup(), process_info::output(), thread_info::output(), binary_info::output(), module_info::output(), and format_output::xml_formatter::output_symbol_details().

Here is the call graph for this function:

Here is the caller graph for this function:

string open_element ( tag_t  tag,
bool  with_attrs 
)

Definition at line 30 of file xml_output.cpp.

References buf, MAX_XML_BUF, and open_xml_element().

Referenced by xml_utils::get_timer_setup(), process_info::output(), thread_info::output(), binary_info::output(), module_info::output(), and format_output::xml_formatter::output_symbol_details().

Here is the call graph for this function:

Here is the caller graph for this function:

string tag_name ( tag_t  tag  ) 

Definition at line 22 of file xml_output.cpp.

References xml_tag_name().

Here is the call graph for this function:


Variable Documentation

char buf[MAX_XML_BUF] [static]

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1