~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/srv/wax/shl/XsmHtml.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2011-03-16 21:31:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110316213118-gk4k3ez3e5d2huna
Tags: 2.0.0-1
* QA upload.
* New upstream release
* Debian source format is 3.0 (quilt)
* Fix debhelper-but-no-misc-depends
* Fix ancient-standards-version
* Fix package-contains-linda-override
* debhelper compatibility is 7
* Fix dh-clean-k-is-deprecated

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ---------------------------------------------------------------------------
 
2
// - XsmHtml.hpp                                                             -
 
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.                  -
 
7
// -                                                                         -
 
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
// ---------------------------------------------------------------------------
 
16
 
 
17
#ifndef  AFNIX_XSMHTML_HPP
 
18
#define  AFNIX_XSMHTML_HPP
 
19
 
 
20
#ifndef  AFNIX_XSMTREE_HPP
 
21
#include "XsmTree.hpp"
 
22
#endif
 
23
 
 
24
#ifndef  AFNIX_INPUTSTREAM_HPP
 
25
#include "InputStream.hpp"
 
26
#endif
 
27
 
 
28
namespace afnix {
 
29
 
 
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
 
35
  /// content type.
 
36
  /// @author amaury darsch
 
37
 
 
38
  class XsmHtml : public XsmTree {
 
39
  public:
 
40
    /// create a default document
 
41
    XsmHtml (void);
 
42
 
 
43
    /// create an document by name
 
44
    /// @param name the document file name
 
45
    XsmHtml (const String& name);
 
46
 
 
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);
 
51
 
 
52
    /// @return the class name
 
53
    String repr (void) const;
 
54
 
 
55
  private:
 
56
    // make the copy constructor private
 
57
    XsmHtml (const XsmHtml&);
 
58
    // make the assignment operator private
 
59
    XsmHtml& operator = (const XsmHtml&);
 
60
 
 
61
  public:
 
62
    /// create an object in a generic way
 
63
    /// @param argv the argument vector
 
64
    static Object* mknew (Vector* argv);
 
65
  };
 
66
}
 
67
 
 
68
#endif