Carl Forsman
11/16/2008 12:19:00 PM
On Sun, 16 Nov 2008 11:57:16 GMT, Erik Wikstr?m
<Erik-wikstrom@telia.com> wrote:
>On 2008-11-16 11:55, Carl Forsman wrote:
>> pug::xml_node::outer_xml Function
>> Stream output. Recursively writes the internal xml_node_struct
>> structure to the given stream.
>>
>> =====================
>> Public void
>> outer_xml(std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &, TCHAR =
>> _T('\t'), bool = true)
>> =====================
>>
>> what is that means
>> std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &
>
>A reference to normal ostream object for TCHAR (which is a Windows macro
>which expands to either char or some other type for unicode).
>
>> what is the following means?
>> TCHAR = _T('\t')
>
>The default delimiter?
>
>> does the above function has 3 parameteres?
>> std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &
>> TCHAR = _T('\t')
>> bool = true
>
>Yes
>
>> the 1st parameter is of type std::basic_ostream?
>
>Yes
>
>> is the <TCHAR,std::char_traits<TCHAR>> some kind of template?
>
>Not quite, basic_ostream is a templat which takes two parameters, a char
>type (TCHAR), and char-traits for the char-type (std::char_type<TCHAR>),
>notice that std::char_traits is a template itself.
>
>An example of how to use this function would be:
>
> outer_xml(std::cout);
how to output to a file like c:/test.xml
do I write -
outer_xml(std::cout("c:/test.xml"); // not sure about syntax to output
to file
>
>or
>
> outer_xml(std::cout, '|', false)