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_trait s<TCHAR>&, TCHAR =
_T('\t'), bool = true)
=====================
what is that means
std::basic_ostream<TCHAR,std::char_traits<TCHAR>&
what is the following means?
TCHAR = _T('\t')
does the above function has 3 parameteres?
std::basic_ostream<TCHAR,std::char_traits<TCHAR>&
TCHAR = _T('\t')
bool = true
the 1st parameter is of type std::basic_ostream?
is the <TCHAR,std::char_traits<TCHAR> some kind of template? 7 2573
On Sun, 16 Nov 2008 02:55:21 -0800, Carl Forsman
<fa**********@yahoo.comwrote:
>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_trai ts<TCHAR>&, TCHAR = _T('\t'), bool = true) =====================
what is that means std::basic_ostream<TCHAR,std::char_traits<TCHAR >&
what is the following means? TCHAR = _T('\t')
does the above function has 3 parameteres? std::basic_ostream<TCHAR,std::char_traits<TCHAR >& TCHAR = _T('\t')
bool = true
the 1st parameter is of type std::basic_ostream? is the <TCHAR,std::char_traits<TCHAR> some kind of template?
the capture of manual for this function is here http://www.oniva.com/upload/1356/xml.jpg
On Sun, 16 Nov 2008 02:55:21 -0800, Carl Forsman
<fa**********@yahoo.comwrote:
>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_trai ts<TCHAR>&, TCHAR = _T('\t'), bool = true) =====================
what is that means std::basic_ostream<TCHAR,std::char_traits<TCHAR >&
what is the following means? TCHAR = _T('\t')
does the above function has 3 parameteres? std::basic_ostream<TCHAR,std::char_traits<TCHAR >& TCHAR = _T('\t')
bool = true
the 1st parameter is of type std::basic_ostream? is the <TCHAR,std::char_traits<TCHAR> some kind of template?
screen shot in VC++ http://www.oniva.com/upload/1356/xml1.jpg
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_trait s<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);
or
outer_xml(std::cout, '|', false)
--
Erik Wikström
On Sun, 16 Nov 2008 11:57:16 GMT, Erik Wikstr?m
<Er***********@telia.comwrote:
>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_trai ts<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)
On Sun, 16 Nov 2008 11:57:16 GMT, Erik Wikstr?m
<Er***********@telia.comwrote:
>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_trai ts<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);
or
outer_xml(std::cout, '|', false)
I tried the one parameter but VC++ has error saying I cannot have only
1 parameter
then I tried the 3 parameter and I got the following error http://www.oniva.com/upload/1356/xml2.jpg
On 2008-11-16 13:19, Carl Forsman wrote:
On Sun, 16 Nov 2008 11:57:16 GMT, Erik Wikstr?m
<Er***********@telia.comwrote:
>>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_tra its<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
You need to create an ofstream (if you do not know these things you
really should take some time to learn basic C++):
std::ofstream f("c:\test.xml");
pug::outer_xml(f);
--
Erik Wikström
On 2008-11-16 13:28, Carl Forsman wrote:
On Sun, 16 Nov 2008 11:57:16 GMT, Erik Wikstr?m
<Er***********@telia.comwrote:
>>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_tra its<TCHAR>&, TCHAR = _T('\t'), bool = true) =====================
>>An example of how to use this function would be:
outer_xml(std::cout);
or
outer_xml(std::cout, '|', false)
I tried the one parameter but VC++ has error saying I cannot have only
1 parameter
then I tried the 3 parameter and I got the following error http://www.oniva.com/upload/1356/xml2.jpg
Seems to me like the function does not take the parameters you specified
above, or you need the _T, i.e. "outer_xml(std::cout, _T('|'), false);"
--
Erik Wikström This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Oplec |
last post by:
Hi,
I'm learning C++ as a hobby using The C++ Programming Language : Special
Edition by Bjarne Stroustrup. I'm working on chpater 13 exercises that
deal with templates. Exercise 13.9 asks for me...
|
by: nikola |
last post by:
Hi all,
I was working with a simple function template to find the min of two values.
But since I would like the two values to be different (type) I dont know
what kind of value (type) it will...
|
by: Gianni Mariani |
last post by:
The spirit of this arguably pointless exercise, is that the
numeric_limits<T> class could be replaced with a totally generic
template of compile-time, template computed constants.
The problem is...
|
by: Rudy Ray Moore |
last post by:
Whenever I get any error with Vc++7.1/.net/2003, it is followed by huge
ammounts of "template assistance" error messaging referencing template code
(MTL) that has nothing to do with the error.
...
|
by: Alfonso Morra |
last post by:
I have a class declared as ff:
class __declspec(dllexport) A {
public:
A() ;
A(const A&)
A& operator=(const A&) ;
~A() ;
void doThis(void) ;
|
by: aaragon |
last post by:
Hi everyone. A very simple question. I would like to know what is
better in terms of performance. I want to use a simple function to
obtain the minimum of two values. One way could be using a...
|
by: Hamilton Woods |
last post by:
Diehards,
I developed a template matrix class back around 1992 using Borland C++ 4.5
(ancestor of C++ Builder) and haven't touched it until a few days ago. I
pulled it from the freezer and...
|
by: charles.lobo |
last post by:
Hi,
I have recently begun using templates in C++ and have found it to be
quite useful. However, hearing stories of code bloat and assorted
problems I decided to write a couple of small programs...
|
by: Leo jay |
last post by:
i'd like to implement a class template to convert binary numbers to
decimal at compile time.
and my test cases are:
BOOST_STATIC_ASSERT((bin<1111,1111,1111,1111>::value == 65535));...
|
by: Gary Nastrasio |
last post by:
I'm currently reading Andrei Alexandrescu's book "Modern C++ Design" and
I'm a bit confused by one bit of template syntax in chapter 1.
Here is a code example:
template <class CreationPolicy>...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |