1
// ---------------------------------------------------------------------------
3
// - afnix:wax service - xsm html document class definition -
4
// ---------------------------------------------------------------------------
5
// - This program is free software; you can redistribute it and/or modify -
6
// - it provided that this copyright notice is kept intact. -
8
// - This program is distributed in the hope that it will be useful, but -
9
// - without any warranty; without even the implied warranty of -
10
// - merchantability or fitness for a particular purpose. In no event shall -
11
// - the copyright holder be liable for any direct, indirect, incidental or -
12
// - special damages arising in any way out of the use of this software. -
13
// ---------------------------------------------------------------------------
14
// - copyright (c) 1999-2011 amaury darsch -
15
// ---------------------------------------------------------------------------
17
#ifndef AFNIX_XSMHTML_HPP
18
#define AFNIX_XSMHTML_HPP
20
#ifndef AFNIX_XSMTREE_HPP
21
#include "XsmTree.hpp"
24
#ifndef AFNIX_INPUTSTREAM_HPP
25
#include "InputStream.hpp"
30
/// The XsmHtml class is the document class that maintains a xsm html
31
/// tree along with its associated list of nodes and other useful
32
/// information. The class is similar to the XsmDocument object but
33
/// provides specific support for the html environment.In particular,
34
/// special care is taken with the meta tag that might affect the
36
/// @author amaury darsch
38
class XsmHtml : public XsmTree {
40
/// create a default document
43
/// create an document by name
44
/// @param name the document file name
45
XsmHtml (const String& name);
47
/// create an document by name and stream
48
/// @param name the document name
49
/// @param is the input stream to parse
50
XsmHtml (const String& name, InputStream* is);
52
/// @return the class name
53
String repr (void) const;
56
// make the copy constructor private
57
XsmHtml (const XsmHtml&);
58
// make the assignment operator private
59
XsmHtml& operator = (const XsmHtml&);
62
/// create an object in a generic way
63
/// @param argv the argument vector
64
static Object* mknew (Vector* argv);