blob: c3e544cb00818bf325890eb58d8f1cdf40e43d3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// file : examples/cxx/hybrid/evolution/passthrough/unknown-type.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : not copyrighted - public domain
#ifndef UNKNOWN_TYPE_HXX
#define UNKNOWN_TYPE_HXX
#include "xml.hxx"
namespace transform
{
// Customized unknown_type. We add members that store the raw XML
// representation of an unknown transformation as well as the parsed
// element name and namespace from the substitution group.
//
class unknown_type: public unknown_type_base
{
public:
unknown_type ();
const xml::qname&
element_name () const
{
return name_;
}
void
element_name (const xml::qname& n)
{
name_ = n;
}
const xml::element&
content () const
{
return content_;
}
xml::element&
content ()
{
return content_;
}
private:
xml::qname name_;
xml::element content_;
};
}
#endif // UNKNOWN_TYPE_HXX
|