5
* Created by Andreas Vox on 21.09.06.
6
* Copyright 2006 under GPL2. All rights reserved.
15
#include "desaxe_conf.h"
16
#include "saxhandler.h"
17
//#include "digester.h"
23
/** Interface class for any object which wants to use deSaXe to load from
29
Writes an XML representation of this object
31
virtual void saxx(SaxHandler &, const Xml_string& /* elemtag */) const = 0;
33
Writes an XML representation of this object using the default element tag, see below
35
virtual void saxx(SaxHandler & ) const = 0;
38
Element tag which is usually used to serialize this object. "" means no elem is created by saxx()
40
static const Xml_string saxxDefaultElem;
42
Fills the digester with rules wich ensure that an object which was
43
saved via saxx() will be reconstructed on top of the digester stack.
44
The prefix pattern shall be used to create patterns which constrain
45
the added rules to this context.
46
Unfortunately there are no virtual static functions, so this is just a dummy
47
serving as a template.
49
static void desaxeRules(const Xml_string& /* prefixPattern */, desaxe::Digester & /* ruleset */, const Xml_string /* elemtag */ = saxxDefaultElem) {}