XMLPI.h

Go to the documentation of this file.
00001 /* -*-mode:c++; c-file-style: "gnu";-*- */
00002 /*
00003  *  $Id: XMLPI_8h-source.html,v 1.1 2008/01/19 21:58:37 sebdiaz Exp $
00004  *
00005  *  Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
00006  *                       2007 David Roberts
00007                      2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
00008  *  Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
00009  *
00010  *  This library is free software; you can redistribute it and/or
00011  *  modify it under the terms of the GNU Lesser General Public
00012  *  License as published by the Free Software Foundation; either
00013  *  version 3 of the License, or (at your option) any later version.
00014  *
00015  *  This library is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *  Lesser General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU Lesser General Public
00021  *  License along with this library; if not, write to the Free Software
00022  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 
00023  */
00024 #ifndef XMLPI_H
00025 #define XMLPI_H
00026 
00032 #include <string>
00033 
00034 #include <cgicc/CgiDefs.h>
00035 #include <cgicc/MStreamable.h>
00036 #include <cgicc/HTMLAttributeList.h>
00037 
00038 namespace cgicc {
00044 class XMLPI : public MStreamable {
00045         public:
00046         // ============================================================
00047     
00050     
00057         XMLPI(std::string name);
00058         
00064         virtual ~XMLPI();
00066         
00067         
00068         XMLPI& operator= (const XMLPI& element);
00069         inline std::string getName() const { return fName; }
00070         inline const HTMLAttributeList* getAttributes() const { return fAttributes; }
00071         void setAttributes(const HTMLAttributeList& attributes);
00072         XMLPI& set(const std::string& name);
00073         XMLPI& set(const std::string& name, const std::string& value);
00074         virtual void render(std::ostream& out) const;
00075         
00076         private:
00077         HTMLAttributeList* fAttributes;
00078         std::string fName;
00079 };
00080 }// namespace cgicc
00081 
00082 #endif

GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2004 Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Sat Jan 19 21:15:58 2008 for cgicc by doxygen 1.5.1