[Expat-discuss] Expat-discuss Digest, Vol 77, Issue 10
sdavid
s.david at tom.com
Mon Aug 28 13:06:23 CEST 2006
For Norman's problem:
Expat is a pure C xml parser and it build well with all known pop C
compiler. There's a lot of xml libs write by c++, so you don't have to wrap
it to c++ class, of course there's problem use a member of a object in
static method.
-----Original Message-----
From: expat-discuss-bounces+s.david=tom.com at libexpat.org
[mailto:expat-discuss-bounces+s.david=tom.com at libexpat.org] On Behalf Of
expat-discuss-request at libexpat.org
Sent: Monday, August 28, 2006 6:00 PM
To: expat-discuss at libexpat.org
Subject: Expat-discuss Digest, Vol 77, Issue 10
Send Expat-discuss mailing list submissions to
expat-discuss at libexpat.org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.libexpat.org/mailman/listinfo/expat-discuss
or, via email, send a message with subject or body 'help' to
expat-discuss-request at libexpat.org
You can reach the person managing the list at
expat-discuss-owner at libexpat.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Expat-discuss digest..."
Today's Topics:
1. New questions arised ;) (Norman Rosner)
----------------------------------------------------------------------
Message: 1
Date: Sun, 27 Aug 2006 19:42:14 +0200
From: Norman Rosner <jeckyll at mac.com>
Subject: [Expat-discuss] New questions arised ;)
To: expat-discuss at libexpat.org
Message-ID: <3A1C1556-EACA-43E9-A146-8BD48AAC8A37 at mac.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi Guys it's me again the newbie in expat :)
Now that i have figure out that i can't access member data elemts
from static function i hope that you guys can help me with answering
the question:
Is there any way how i can access them?
Heres the code:
struct Wrapper {
public:
bool LHS_is_on, RHS_is_on, rule_is_on;
static void XMLCALL startElement(void *userData, const XML_Char
*name, const XML_Char **atts)
{
if(strcmp(name, "LHS") == 0) {
LHS_is_on = true;
RHS_is_on, rule_is_on = false;
cout << "left" <<"\n";
}
// cout << name << "\n";
}
...
};
g++ says:
grammar.h:22: error: invalid use of member 'Wrapper::LHS_is_on' in
static member function
grammar.h:34: error: from this location
So please help me ;)
So i don't have a lot of knowledge about c++ it would be great if
your answers (hopefully there are any :)) would be as simple as
possible so i can understand it :)
Thanks a lot
norman
------------------------------
_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss
End of Expat-discuss Digest, Vol 77, Issue 10
*********************************************
More information about the Expat-discuss
mailing list