XMLPI.h
Go to the documentation of this file.
1/* -*-mode:c++; c-file-style: "gnu";-*- */
2/*
3 * $Id: XMLPI.h,v 1.2 2014/04/23 20:55:10 sebdiaz Exp $
4 *
5 * Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
6 * 2007 David Roberts
7 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
8 * Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 3 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
23 */
24#ifndef XMLPI_H
25#define XMLPI_H
32#include <string>
33
34#include "CgiDefs.h"
35#include "MStreamable.h"
36#include "HTMLAttributeList.h"
37
38 namespace cgicc {
44 class XMLPI : public MStreamable {
45 public:
46 // ============================================================
47
50
57 XMLPI(std::string name);
58
64 virtual ~XMLPI();
66
67
68 XMLPI& operator= (const XMLPI& element);
69 inline std::string getName() const { return fName; }
70 inline const HTMLAttributeList* getAttributes() const { return fAttributes; }
71 void setAttributes(const HTMLAttributeList& attributes);
72 XMLPI& set(const std::string& name);
73 XMLPI& set(const std::string& name, const std::string& value);
74 virtual void render(std::ostream& out) const;
75
76 private:
77 HTMLAttributeList* fAttributes;
78 std::string fName;
79};
80}// namespace cgicc
81
82#endif
CgiDefs.h
Platform and operating system specific macro definitions.
HTMLAttributeList.h
Class containing a list of HTMLAttribute objects.
MStreamable.h
Abstract base class for all streamable objects.
cgicc::HTMLAttributeList
An expandable list of HTMLAttribute objects.
Definition: HTMLAttributeList.h:70
cgicc::MStreamable
Mix-in streamable interface.
Definition: MStreamable.h:67
cgicc::XMLPI
Class that abstracts a XMLPI.
Definition: XMLPI.h:44
cgicc::XMLPI::~XMLPI
virtual ~XMLPI()
Destructor.
cgicc::XMLPI::XMLPI
XMLPI(std::string name)
Constructor.
cgicc::XMLPI::render
virtual void render(std::ostream &out) const
Write this object to a stream.
cgicc
The namespace containing the cgicc library.
Definition: Cgicc.h:52